Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2.2_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.2.2_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.0008523/0.0008525, allocations: 88.53 kB / 16.31 MB, free: 6.449 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.0009394/0.0009394, allocations: 183 kB / 17.21 MB, free: 6.316 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.409/1.409, allocations: 205.4 MB / 223.4 MB, free: 5.297 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.0004997/0.0004997, allocations: 12 kB / 280.1 MB, free: 12.68 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.248/0.2485, allocations: 47.6 MB / 327.7 MB, free: 1.461 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.01942/0.268, allocations: 17.84 MB / 345.6 MB, free: 1.602 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01348/0.2815, allocations: 5.587 MB / 351.2 MB, free: 12 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003925/0.2855, allocations: 107.5 kB / 351.3 MB, free: 11.89 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004196/0.2897, allocations: 0.9899 MB / 352.3 MB, free: 10.89 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006715/0.2965, allocations: 1.585 MB / 353.9 MB, free: 9.301 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003432/0.2999, allocations: 0.8226 MB / 354.7 MB, free: 8.477 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01042/0.3103, allocations: 6.153 MB / 360.8 MB, free: 2.297 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007929/0.3183, allocations: 3.561 MB / 364.4 MB, free: 14.68 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004134/0.3225, allocations: 2 MB / 366.4 MB, free: 12.67 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005099/0.3276, allocations: 2.661 MB / 369 MB, free: 10 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002082/0.3297, allocations: 324 kB / 369.4 MB, free: 9.684 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003295/0.333, allocations: 0.57 MB / 369.9 MB, free: 9.113 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00246/0.3355, allocations: 1.367 MB / 371.3 MB, free: 7.742 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002435/0.338, allocations: 1.132 MB / 372.4 MB, free: 6.602 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01097/0.349, allocations: 8.36 MB / 380.8 MB, free: 14.22 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.883e-06/0.349, allocations: 4 kB / 380.8 MB, free: 14.21 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.575e-06/0.349, allocations: 0 / 380.8 MB, free: 14.21 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.000401/0.3494, allocations: 0 / 380.8 MB, free: 14.21 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.01615/0.3656, allocations: 5.584 MB / 386.4 MB, free: 8.551 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.458e-05/0.3656, allocations: 12.03 kB / 386.4 MB, free: 8.539 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005477/0.3711, allocations: 1.012 MB / 387.4 MB, free: 7.52 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007596/0.3788, allocations: 3.186 MB / 390.6 MB, free: 4.258 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004928/0.3793, allocations: 394.3 kB / 391 MB, free: 3.871 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001842/0.3812, allocations: 0.5076 MB / 391.5 MB, free: 3.363 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01967/0.4008, allocations: 6.747 MB / 398.2 MB, free: 12.55 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001402/0.401, allocations: 19.83 kB / 398.3 MB, free: 12.53 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000497/0.4015, allocations: 204 kB / 398.4 MB, free: 12.33 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002375/0.4018, allocations: 242.2 kB / 398.7 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01217/0.414, allocations: 5.732 MB / 404.4 MB, free: 6.348 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04031/0.4543, allocations: 21.19 MB / 425.6 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009018/0.4634, allocations: 8.56 MB / 434.2 MB, free: 7.145 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00389/0.4673, allocations: 2.12 MB / 436.3 MB, free: 5.02 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0132/0.4805, allocations: 5.956 MB / 442.2 MB, free: 14.93 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.724e-05/0.4807, allocations: 56.56 kB / 442.3 MB, free: 14.86 MB / 382.1 MB Notification: Performance of pre-optimization done (n=205): time 5.42e-06/0.4807, allocations: 4 kB / 442.3 MB, free: 14.86 MB / 382.1 MB Notification: Performance of matching and sorting (n=222): time 0.02326/0.5039, allocations: 10.39 MB / 452.7 MB, free: 4.23 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.513e-05/0.5041, allocations: 73.41 kB / 452.8 MB, free: 4.145 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006296/0.5104, allocations: 2.888 MB / 455.7 MB, free: 1.246 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003044/0.5107, allocations: 61.7 kB / 455.7 MB, free: 1.18 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.2033/0.714, allocations: 2.349 MB / 458.1 MB, free: 106.3 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001072/0.7151, allocations: 0.7714 MB / 458.8 MB, free: 105.8 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002065/0.7153, allocations: 58.09 kB / 458.9 MB, free: 105.8 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002125/0.7156, allocations: 421.9 kB / 459.3 MB, free: 105.5 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002822/0.7184, allocations: 1.273 MB / 460.6 MB, free: 105.5 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002689/0.7211, allocations: 2.184 MB / 462.8 MB, free: 104 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00249/0.7236, allocations: 1.653 MB / 464.4 MB, free: 103.3 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.227e-05/0.7236, allocations: 8.219 kB / 464.4 MB, free: 103.3 MB / 382.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.006544/0.7302, allocations: 4.454 MB / 468.9 MB, free: 101.4 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.667e-05/0.7302, allocations: 16.38 kB / 468.9 MB, free: 101.4 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.233e-05/0.7303, allocations: 31.5 kB / 468.9 MB, free: 101.4 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001079/0.7314, allocations: 0.5115 MB / 469.4 MB, free: 101.2 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002343/0.7337, allocations: 0.6992 MB / 470.1 MB, free: 101.1 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006375/0.7401, allocations: 9.323 MB / 479.5 MB, free: 93.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002854/0.743, allocations: 187.5 kB / 479.6 MB, free: 93.21 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002482/0.7433, allocations: 128.7 kB / 479.8 MB, free: 93.18 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 (linear and non-linear blocks): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(3,100.0%) 11,(1,100.0%) 3,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003085/0.7464, allocations: 1.514 MB / 481.3 MB, free: 92.37 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005839/0.7469, allocations: 311.9 kB / 481.6 MB, free: 92.21 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005606/0.7526, allocations: 3.899 MB / 485.5 MB, free: 89.87 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.402e-05/0.7526, allocations: 20 kB / 485.5 MB, free: 89.85 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.13e-05/0.7526, allocations: 8 kB / 485.5 MB, free: 89.84 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.796e-05/0.7526, allocations: 11.95 kB / 485.5 MB, free: 89.83 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01163/0.7643, allocations: 8.505 MB / 494 MB, free: 81.19 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.108e-05/0.7643, allocations: 7.938 kB / 494 MB, free: 81.18 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001411/0.7657, allocations: 379.5 kB / 494.4 MB, free: 80.81 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001535/0.7673, allocations: 0.7196 MB / 495.1 MB, free: 80.07 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001343/0.7674, allocations: 63.97 kB / 495.2 MB, free: 80 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01022/0.7777, allocations: 15.2 MB / 0.4984 GB, free: 63.76 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/0.7777, allocations: 4 kB / 0.4984 GB, free: 63.76 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007443/0.7852, allocations: 5.583 MB / 0.5039 GB, free: 58.04 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001437/0.7866, allocations: 0.661 MB / 0.5045 GB, free: 57.36 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003864/0.787, allocations: 52 kB / 0.5046 GB, free: 57.3 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00129/0.7883, allocations: 147.9 kB / 0.5047 GB, free: 57.16 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003456/0.7887, allocations: 165.7 kB / 0.5049 GB, free: 57 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001198/0.7888, allocations: 71.97 kB / 0.5049 GB, free: 56.93 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002643/0.7914, allocations: 1.94 MB / 0.5068 GB, free: 54.99 MB / 382.1 MB Notification: Performance of sort global known variables: time 2e-07/0.7915, allocations: 0 / 0.5068 GB, free: 54.99 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003121/0.7946, allocations: 0.9322 MB / 0.5078 GB, free: 54.06 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 (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(1,100.0%) 5,(3,100.0%) 11,(1,100.0%) 3,(1,100.0%) 1,(2,100.0%) 1,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004724/0.7951, allocations: 213.7 kB / 0.508 GB, free: 53.85 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005265/0.8003, allocations: 3.965 MB / 0.5118 GB, free: 49.79 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.733e-06/0.8004, allocations: 0 / 0.5118 GB, free: 49.79 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003211/0.8036, allocations: 2.67 MB / 0.5144 GB, free: 47.03 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003896/0.8075, allocations: 0.8158 MB / 0.5152 GB, free: 46.22 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01796/0.8255, allocations: 11.4 MB / 0.5264 GB, free: 34.75 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002563/0.8281, allocations: 3.294 MB / 0.5296 GB, free: 31.42 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002774/0.8309, allocations: 0.7578 MB / 0.5303 GB, free: 30.66 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005585/0.8314, allocations: 223.4 kB / 0.5305 GB, free: 30.44 MB / 382.1 MB Notification: Performance of SimCode: time 1.443e-06/0.8315, allocations: 0 / 0.5305 GB, free: 30.44 MB / 382.1 MB Notification: Performance of Templates: time 0.07614/0.9076, allocations: 43.79 MB / 0.5733 GB, free: 2.586 MB / 398.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe 2>&1)