Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001064/0.001064, allocations: 111.3 kB / 15.23 MB, free: 0.6602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001297/0.001297, allocations: 193.9 kB / 16.14 MB, free: 6.707 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.3/1.3, allocations: 205.1 MB / 222 MB, free: 4.781 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001093/0.001093, allocations: 44.27 kB / 278.1 MB, free: 12.76 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1903/0.1914, allocations: 46.63 MB / 324.7 MB, free: 1.965 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.03601/0.2274, allocations: 39.27 MB / 364 MB, free: 12.75 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01971/0.2472, allocations: 10.45 MB / 374.4 MB, free: 2.27 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007265/0.2545, allocations: 243.1 kB / 374.7 MB, free: 2.031 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01798/0.2725, allocations: 8.004 MB / 382.7 MB, free: 9.992 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01215/0.2847, allocations: 3.321 MB / 386 MB, free: 6.656 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006889/0.2916, allocations: 2.222 MB / 388.2 MB, free: 4.43 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01694/0.3085, allocations: 13.65 MB / 401.9 MB, free: 6.723 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03081/0.3394, allocations: 20.62 MB / 422.5 MB, free: 1.961 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009388/0.3488, allocations: 6.063 MB / 428.5 MB, free: 11.88 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01203/0.3609, allocations: 7.676 MB / 436.2 MB, free: 4.176 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004376/0.3653, allocations: 1.312 MB / 437.5 MB, free: 2.863 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006218/0.3715, allocations: 1.703 MB / 439.2 MB, free: 1.16 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004161/0.3757, allocations: 3.447 MB / 442.7 MB, free: 13.7 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01063/0.3864, allocations: 7.105 MB / 449.8 MB, free: 6.566 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3089/0.6953, allocations: 25.77 MB / 475.6 MB, free: 43.96 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.788e-06/0.6953, allocations: 0 / 475.6 MB, free: 43.96 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.6953, allocations: 0 / 475.6 MB, free: 43.96 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000742/0.6961, allocations: 2.281 kB / 475.6 MB, free: 43.96 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3512 * Number of variables: 3512 Notification: Performance of Generate backend data structure: time 0.04241/0.7385, allocations: 15.62 MB / 491.2 MB, free: 37.23 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.7385, allocations: 11.5 kB / 491.2 MB, free: 37.23 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04692/0.7855, allocations: 9.093 MB / 0.4886 GB, free: 33.71 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01598/0.8015, allocations: 7.458 MB / 0.4958 GB, free: 30.05 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007314/0.8023, allocations: 0.9451 MB / 0.4968 GB, free: 29.11 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005772/0.808, allocations: 1.251 MB / 0.498 GB, free: 27.88 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04597/0.854, allocations: 20.15 MB / 0.5177 GB, free: 7.691 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003505/0.8544, allocations: 23.17 kB / 0.5177 GB, free: 7.672 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002196/0.8566, allocations: 0.5201 MB / 0.5182 GB, free: 7.172 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004903/0.8571, allocations: 0.7321 MB / 0.5189 GB, free: 6.441 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03844/0.8955, allocations: 18.97 MB / 0.5374 GB, free: 3.461 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1174/1.013, allocations: 63.41 MB / 0.5994 GB, free: 3.484 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2157/1.229, allocations: 56.95 MB / 0.655 GB, free: 125.6 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007521/1.236, allocations: 4.123 MB / 0.659 GB, free: 125.5 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01798/1.254, allocations: 11.39 MB / 0.6701 GB, free: 122 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.671e-05/1.254, allocations: 72.09 kB / 0.6702 GB, free: 121.9 MB / 478.1 MB Notification: Performance of pre-optimization done (n=349): time 5.551e-06/1.254, allocations: 5.938 kB / 0.6702 GB, free: 121.9 MB / 478.1 MB Notification: Performance of matching and sorting (n=389): time 0.03577/1.29, allocations: 18.13 MB / 0.6879 GB, free: 114.4 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.159e-05/1.29, allocations: 95.86 kB / 0.688 GB, free: 114.3 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006882/1.297, allocations: 5.459 MB / 0.6933 GB, free: 112.3 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005451/1.298, allocations: 85.27 kB / 0.6934 GB, free: 112.3 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002571/1.3, allocations: 5.888 MB / 0.6992 GB, free: 107.5 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001216/1.302, allocations: 1.374 MB / 0.7005 GB, free: 106.3 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001791/1.303, allocations: 1.508 MB / 0.702 GB, free: 104.9 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 4.456e-05/1.303, allocations: 301.1 kB / 0.7023 GB, free: 104.6 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003706/1.307, allocations: 3.085 MB / 0.7053 GB, free: 102 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004783/1.312, allocations: 6.757 MB / 0.7119 GB, free: 94.09 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009017/1.321, allocations: 10.58 MB / 0.7222 GB, free: 82.45 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.09e-05/1.321, allocations: 39.94 kB / 0.7223 GB, free: 82.41 MB / 478.1 MB Notification: Performance of matching and sorting (n=982) (initialization): time 0.01454/1.336, allocations: 10.79 MB / 0.7328 GB, free: 72.23 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.548e-05/1.336, allocations: 68.05 kB / 0.7329 GB, free: 72.16 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001055/1.336, allocations: 124 kB / 0.733 GB, free: 72.04 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002137/1.338, allocations: 0.9729 MB / 0.7339 GB, free: 71.05 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004954/1.343, allocations: 1.813 MB / 0.7357 GB, free: 69.23 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008824/1.352, allocations: 9.544 MB / 0.745 GB, free: 59.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006629/1.358, allocations: 451.2 kB / 0.7454 GB, free: 58.86 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001094/1.359, allocations: 420 kB / 0.7458 GB, free: 58.45 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 572 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (933): * Single equations (assignments): 928 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007009/1.366, allocations: 4.453 MB / 0.7502 GB, free: 53.98 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001129/1.368, allocations: 0.5363 MB / 0.7507 GB, free: 53.44 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009212/1.377, allocations: 6.528 MB / 0.7571 GB, free: 46.88 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.105e-05/1.377, allocations: 40 kB / 0.7571 GB, free: 46.84 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.4e-05/1.377, allocations: 11.94 kB / 0.7571 GB, free: 46.82 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.944e-05/1.377, allocations: 19.92 kB / 0.7572 GB, free: 46.8 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02392/1.401, allocations: 15.97 MB / 0.7728 GB, free: 30.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.208e-05/1.401, allocations: 4 kB / 0.7728 GB, free: 30.8 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002988/1.404, allocations: 0.7532 MB / 0.7735 GB, free: 30.05 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002033/1.406, allocations: 0.7923 MB / 0.7743 GB, free: 29.24 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002471/1.406, allocations: 91.92 kB / 0.7744 GB, free: 29.15 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007736/1.414, allocations: 8.659 MB / 0.7828 GB, free: 20.09 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/1.414, allocations: 4 kB / 0.7828 GB, free: 20.09 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01201/1.426, allocations: 9.527 MB / 0.7921 GB, free: 10.45 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002499/1.429, allocations: 1.072 MB / 0.7932 GB, free: 9.355 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008846/1.429, allocations: 75.89 kB / 0.7932 GB, free: 9.281 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002303/1.432, allocations: 219.8 kB / 0.7935 GB, free: 9.066 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005181/1.432, allocations: 266.7 kB / 0.7937 GB, free: 8.805 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002382/1.432, allocations: 112 kB / 0.7938 GB, free: 8.695 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004672/1.437, allocations: 3.595 MB / 0.7973 GB, free: 5.125 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.41e-07/1.437, allocations: 0 / 0.7973 GB, free: 5.125 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.006532/1.444, allocations: 1.987 MB / 0.7993 GB, free: 3.141 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (368): * Single equations (assignments): 363 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005407/1.444, allocations: 256.9 kB / 0.7995 GB, free: 2.891 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.1862/1.63, allocations: 8.05 MB / 0.8074 GB, free: 163 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.326e-06/1.63, allocations: 1.531 kB / 0.8074 GB, free: 163 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005173/1.636, allocations: 3.53 MB / 0.8108 GB, free: 162.3 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006515/1.642, allocations: 1.236 MB / 0.812 GB, free: 162.2 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03883/1.681, allocations: 26.23 MB / 0.8376 GB, free: 148.6 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008565/1.69, allocations: 7.597 MB / 0.8451 GB, free: 143.8 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.006767/1.696, allocations: 2.363 MB / 0.8474 GB, free: 142.2 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001341/1.698, allocations: 430.8 kB / 0.8478 GB, free: 141.8 MB / 478.1 MB Notification: Performance of SimCode: time 8.32e-07/1.698, allocations: 0 / 0.8478 GB, free: 141.8 MB / 478.1 MB Notification: Performance of Templates: time 0.1173/1.815, allocations: 75.7 MB / 0.9217 GB, free: 68.93 MB / 478.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile (rm -f Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1)