Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.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.FundamentalWave.Examples.BasicMachines.SMR_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001168/0.001168, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.00134/0.00134, allocations: 191.7 kB / 16.25 MB, free: 6.629 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.377/1.377, allocations: 205.1 MB / 222.1 MB, free: 4.746 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.001102/0.001102, allocations: 47.92 kB / 278.2 MB, free: 12.69 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1956/0.1967, allocations: 46.63 MB / 324.9 MB, free: 1.938 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.01947/0.2162, allocations: 19.95 MB / 344.8 MB, free: 88 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01262/0.2288, allocations: 5.85 MB / 350.7 MB, free: 10.21 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003874/0.2328, allocations: 107.5 kB / 350.8 MB, free: 10.11 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00431/0.2371, allocations: 1.165 MB / 351.9 MB, free: 8.938 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006644/0.2438, allocations: 1.706 MB / 353.6 MB, free: 7.223 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003508/0.2473, allocations: 1.127 MB / 354.8 MB, free: 6.094 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.008642/0.256, allocations: 6.208 MB / 361 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006675/0.2627, allocations: 5.363 MB / 366.3 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004095/0.2668, allocations: 2.749 MB / 369.1 MB, free: 7.652 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004765/0.2716, allocations: 3.398 MB / 372.5 MB, free: 4.242 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001855/0.2735, allocations: 0.7773 MB / 373.3 MB, free: 3.465 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002738/0.2763, allocations: 1.078 MB / 374.3 MB, free: 2.387 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001778/0.2781, allocations: 1.936 MB / 376.3 MB, free: 456 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005325/0.2834, allocations: 3.345 MB / 379.6 MB, free: 13.08 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01134/0.2948, allocations: 10.18 MB / 389.8 MB, free: 2.871 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.2948, allocations: 0 / 389.8 MB, free: 2.871 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.502e-06/0.2948, allocations: 3.938 kB / 389.8 MB, free: 2.867 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002412/0.2951, allocations: 0 / 389.8 MB, free: 2.867 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.01852/0.3136, allocations: 6.578 MB / 396.4 MB, free: 12.21 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.171e-05/0.3137, allocations: 8.031 kB / 396.4 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004689/0.3184, allocations: 1.013 MB / 397.4 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00592/0.3243, allocations: 3.275 MB / 400.7 MB, free: 7.828 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003556/0.3247, allocations: 394.8 kB / 401.1 MB, free: 7.441 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008962/0.3256, allocations: 0.4998 MB / 401.6 MB, free: 6.941 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01172/0.3373, allocations: 6.779 MB / 408.3 MB, free: 96 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001101/0.3375, allocations: 7.906 kB / 408.4 MB, free: 88 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000482/0.338, allocations: 212 kB / 408.6 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002188/0.3382, allocations: 242.2 kB / 408.8 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00988/0.3481, allocations: 5.74 MB / 414.5 MB, free: 9.891 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03688/0.385, allocations: 21.11 MB / 435.6 MB, free: 4.281 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008495/0.3935, allocations: 8.538 MB / 444.2 MB, free: 10.79 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003345/0.3969, allocations: 2.124 MB / 446.3 MB, free: 8.66 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01022/0.4072, allocations: 5.927 MB / 452.2 MB, free: 2.594 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.998e-05/0.4072, allocations: 60.56 kB / 452.3 MB, free: 2.527 MB / 382.1 MB Notification: Performance of pre-optimization done (n=205): time 4.799e-06/0.4073, allocations: 4 kB / 452.3 MB, free: 2.523 MB / 382.1 MB Notification: Performance of matching and sorting (n=222): time 0.2437/0.6509, allocations: 10.27 MB / 462.6 MB, free: 104.8 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.945e-05/0.651, allocations: 77.16 kB / 462.6 MB, free: 104.7 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003488/0.6545, allocations: 2.901 MB / 465.5 MB, free: 103.6 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001594/0.6547, allocations: 73.05 kB / 465.6 MB, free: 103.6 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001128/0.6558, allocations: 2.35 MB / 468 MB, free: 101.8 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004338/0.6563, allocations: 0.7702 MB / 468.7 MB, free: 101.2 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006605/0.6569, allocations: 0.5096 MB / 469.2 MB, free: 100.9 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.714e-05/0.657, allocations: 309 kB / 469.5 MB, free: 100.6 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001725/0.6587, allocations: 1.26 MB / 470.8 MB, free: 100.2 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001965/0.6607, allocations: 2.183 MB / 473 MB, free: 98.58 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003652/0.6643, allocations: 3.672 MB / 476.7 MB, free: 96.22 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.211e-05/0.6644, allocations: 7.781 kB / 476.7 MB, free: 96.22 MB / 382.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.005878/0.6703, allocations: 4.444 MB / 481.1 MB, free: 93.29 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.209e-05/0.6703, allocations: 18.97 kB / 481.1 MB, free: 93.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.634e-05/0.6703, allocations: 28 kB / 481.2 MB, free: 93.24 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009856/0.6713, allocations: 0.51 MB / 481.7 MB, free: 92.71 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002149/0.6735, allocations: 0.6942 MB / 482.4 MB, free: 92.02 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006309/0.6798, allocations: 10.19 MB / 492.6 MB, free: 81.16 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002607/0.6824, allocations: 167.7 kB / 492.7 MB, free: 80.99 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001944/0.6826, allocations: 132 kB / 492.8 MB, free: 80.86 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 129 * 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 (348): * Single equations (assignments): 341 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 5 * 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): 5 systems {(3,11,100.0%), (1,3,100.0%), (1,1,100.0%), (1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002556/0.6852, allocations: 1.52 MB / 494.4 MB, free: 79.33 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006823/0.6859, allocations: 312.2 kB / 494.7 MB, free: 79.02 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00526/0.6912, allocations: 3.874 MB / 498.5 MB, free: 75.05 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.961e-05/0.6912, allocations: 23.98 kB / 498.6 MB, free: 75.03 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.26e-05/0.6912, allocations: 8 kB / 498.6 MB, free: 75.02 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.768e-05/0.6912, allocations: 7.969 kB / 498.6 MB, free: 75.01 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01059/0.7018, allocations: 8.505 MB / 0.4952 GB, free: 66.38 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.246e-06/0.7019, allocations: 4 kB / 0.4952 GB, free: 66.37 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001436/0.7033, allocations: 375.5 kB / 0.4956 GB, free: 66 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001502/0.7048, allocations: 0.7312 MB / 0.4963 GB, free: 65.25 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001305/0.705, allocations: 63.92 kB / 0.4963 GB, free: 65.19 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0101/0.7151, allocations: 16.63 MB / 0.5126 GB, free: 47.48 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.7151, allocations: 7.938 kB / 0.5126 GB, free: 47.47 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007187/0.7223, allocations: 5.538 MB / 0.518 GB, free: 41.79 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001462/0.7238, allocations: 0.6611 MB / 0.5186 GB, free: 41.11 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004301/0.7242, allocations: 59.92 kB / 0.5187 GB, free: 41.05 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001482/0.7257, allocations: 123.9 kB / 0.5188 GB, free: 40.93 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004253/0.7262, allocations: 173.6 kB / 0.519 GB, free: 40.76 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001232/0.7263, allocations: 67.97 kB / 0.519 GB, free: 40.69 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002295/0.7286, allocations: 1.967 MB / 0.521 GB, free: 38.73 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.7286, allocations: 0 / 0.521 GB, free: 38.73 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003195/0.7318, allocations: 0.9285 MB / 0.5219 GB, free: 37.8 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 13 (vfController.x,smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],loadInertiaM.phi,loadInertiaE.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 (185): * Single equations (assignments): 177 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,5,100.0%), (3,11,100.0%), (1,3,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005204/0.7323, allocations: 257.1 kB / 0.5221 GB, free: 37.55 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.009019/0.7414, allocations: 5.398 MB / 0.5274 GB, free: 32.08 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.925e-06/0.7414, allocations: 3.938 kB / 0.5274 GB, free: 32.07 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003078/0.7445, allocations: 2.653 MB / 0.53 GB, free: 29.32 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003886/0.7484, allocations: 0.8407 MB / 0.5308 GB, free: 28.48 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01363/0.762, allocations: 11.74 MB / 0.5423 GB, free: 16.7 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002203/0.7643, allocations: 3.302 MB / 0.5455 GB, free: 13.36 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00245/0.7667, allocations: 0.7539 MB / 0.5462 GB, free: 12.61 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00058/0.7673, allocations: 223.4 kB / 0.5464 GB, free: 12.39 MB / 382.1 MB Notification: Performance of SimCode: time 7.51e-07/0.7673, allocations: 0 / 0.5464 GB, free: 12.39 MB / 382.1 MB Notification: Performance of Templates: time 0.07756/0.8449, allocations: 47.25 MB / 0.5926 GB, free: 13.09 MB / 430.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe 2>&1)