Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=3000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=3000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.0009271/0.0009271, allocations: 170.2 kB / 12.72 MB, free: 2.594 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.167/1.167, allocations: 170.6 MB / 183.8 MB, free: 11.42 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001627/0.001627, allocations: 107.5 kB / 223.2 MB, free: 4.039 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.456e-05/2.458e-05, allocations: 0 / 268.9 MB, free: 20.91 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06868/0.06872, allocations: 38.77 MB / 307.6 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3254/0.3942, allocations: 112.3 MB / 419.9 MB, free: 12.65 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002388/0.3945, allocations: 85.08 kB / 420 MB, free: 12.61 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4351/0.8296, allocations: 110.7 MB / 0.5183 GB, free: 70.1 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.8296, allocations: 0 / 0.5183 GB, free: 70.1 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0004244/0.83, allocations: 130.8 kB / 0.5184 GB, free: 70.07 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1292 * Number of variables: 1292 Notification: Performance of Generate backend data structure: time 0.01421/0.8442, allocations: 4.742 MB / 0.5231 GB, free: 65.63 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.695e-05/0.8443, allocations: 12.03 kB / 0.5231 GB, free: 65.62 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003999/0.8483, allocations: 0.7429 MB / 0.5238 GB, free: 64.87 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007555/0.8559, allocations: 3.454 MB / 0.5272 GB, free: 61.38 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002831/0.8562, allocations: 368.3 kB / 0.5275 GB, free: 61.02 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001566/0.8578, allocations: 0.493 MB / 0.528 GB, free: 60.54 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01511/0.8729, allocations: 6.28 MB / 0.5342 GB, free: 54.05 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000163/0.8731, allocations: 11.91 kB / 0.5342 GB, free: 54.04 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005867/0.8737, allocations: 211 kB / 0.5344 GB, free: 53.83 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001973/0.8739, allocations: 221.8 kB / 0.5346 GB, free: 53.61 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009985/0.8839, allocations: 4.857 MB / 0.5393 GB, free: 48.75 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03435/0.9183, allocations: 19.98 MB / 0.5588 GB, free: 28.44 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003947/0.9223, allocations: 3.966 MB / 0.5627 GB, free: 24.17 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002254/0.9246, allocations: 1.74 MB / 0.5644 GB, free: 22.43 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003374/0.925, allocations: 146.6 kB / 0.5646 GB, free: 22.27 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.475e-05/0.925, allocations: 56.56 kB / 0.5646 GB, free: 22.2 MB / 346.7 MB Notification: Performance of pre-optimization done (n=215): time 3.858e-06/0.925, allocations: 0 / 0.5646 GB, free: 22.2 MB / 346.7 MB Notification: Performance of matching and sorting (n=259): time 0.02409/0.9491, allocations: 10.85 MB / 0.5752 GB, free: 11.25 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.09e-05/0.9492, allocations: 77.45 kB / 0.5753 GB, free: 11.16 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003763/0.953, allocations: 2.383 MB / 0.5776 GB, free: 8.762 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000413/0.9534, allocations: 65.7 kB / 0.5777 GB, free: 8.691 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001125/0.9545, allocations: 2.222 MB / 0.5798 GB, free: 6.453 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007016/0.9552, allocations: 0.8895 MB / 0.5807 GB, free: 5.57 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001493/0.9554, allocations: 64 kB / 0.5808 GB, free: 5.508 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001393/0.9555, allocations: 436.4 kB / 0.5812 GB, free: 5.074 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001729/0.9573, allocations: 1.342 MB / 0.5825 GB, free: 3.73 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002039/0.9593, allocations: 2.187 MB / 0.5846 GB, free: 1.176 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2048/1.164, allocations: 1.749 MB / 0.5863 GB, free: 61.2 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.041e-05/1.164, allocations: 8.25 kB / 0.5863 GB, free: 61.2 MB / 346.7 MB Notification: Performance of matching and sorting (n=396) (initialization): time 0.009129/1.173, allocations: 4.892 MB / 0.5911 GB, free: 60.91 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.045e-05/1.173, allocations: 18.03 kB / 0.5911 GB, free: 60.91 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.098e-05/1.173, allocations: 30.72 kB / 0.5912 GB, free: 60.91 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002331/1.176, allocations: 0.9649 MB / 0.5921 GB, free: 60.86 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002668/1.178, allocations: 0.6751 MB / 0.5928 GB, free: 60.86 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01229/1.191, allocations: 12.93 MB / 0.6054 GB, free: 54.43 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002929/1.194, allocations: 181.8 kB / 0.6056 GB, free: 54.43 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005/1.194, allocations: 126.8 kB / 0.6057 GB, free: 54.43 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 118 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (339): * Single equations (assignments): 332 * 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 {(6,72.2%) 22,(1,100.0%) 1,(4,93.8%) 18,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005213/1.195, allocations: 290.8 kB / 0.606 GB, free: 54.32 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004965/1.195, allocations: 327.5 kB / 0.6063 GB, free: 54.32 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006622/1.202, allocations: 4.349 MB / 0.6105 GB, free: 53.87 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.71e-05/1.202, allocations: 27.12 kB / 0.6106 GB, free: 53.87 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.471e-05/1.202, allocations: 14.22 kB / 0.6106 GB, free: 53.87 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.422e-05/1.202, allocations: 13.92 kB / 0.6106 GB, free: 53.87 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01557/1.218, allocations: 9.902 MB / 0.6203 GB, free: 52.19 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.406e-05/1.218, allocations: 5.469 kB / 0.6203 GB, free: 52.19 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001895/1.22, allocations: 399.5 kB / 0.6206 GB, free: 52.18 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002915/1.223, allocations: 1.059 MB / 0.6217 GB, free: 51.88 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002361/1.223, allocations: 61.22 kB / 0.6217 GB, free: 51.84 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01438/1.237, allocations: 16.59 MB / 0.6379 GB, free: 39.4 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.865e-06/1.237, allocations: 8.688 kB / 0.6379 GB, free: 39.4 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008853/1.246, allocations: 6.664 MB / 0.6444 GB, free: 35.91 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00158/1.248, allocations: 0.6929 MB / 0.6451 GB, free: 35.47 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003743/1.248, allocations: 52.59 kB / 0.6452 GB, free: 35.43 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001422/1.25, allocations: 153.5 kB / 0.6453 GB, free: 35.4 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000428/1.25, allocations: 202.7 kB / 0.6455 GB, free: 35.37 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001498/1.25, allocations: 72.11 kB / 0.6456 GB, free: 35.35 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.00241/1.253, allocations: 1.806 MB / 0.6473 GB, free: 34.63 MB / 346.7 MB Notification: Performance of sort global known variables: time 2e-07/1.253, allocations: 0 / 0.6473 GB, free: 34.63 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.003243/1.256, allocations: 1.014 MB / 0.6483 GB, free: 34.53 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 13 (vfController.x,smrM.inertiaRotor.w,smrM.stator.port_n.Phi.re,smrM.stator.port_n.Phi.im,smrM.stator.strayReluctance.Phi.re,smrM.stator.strayReluctance.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (198): * Single equations (assignments): 191 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(6,72.2%) 22,(4,93.8%) 18,(1,100.0%) 4,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006999/1.256, allocations: 0.4987 MB / 0.6488 GB, free: 34.35 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.005928/1.262, allocations: 4.467 MB / 0.6532 GB, free: 32.18 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.893e-06/1.262, allocations: 3.219 kB / 0.6532 GB, free: 32.18 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003986/1.266, allocations: 2.911 MB / 0.656 GB, free: 30.58 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003276/1.27, allocations: 0.7766 MB / 0.6568 GB, free: 30.38 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01122/1.281, allocations: 7.977 MB / 0.6646 GB, free: 23.32 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002513/1.284, allocations: 3.405 MB / 0.6679 GB, free: 20.73 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.002261/1.286, allocations: 0.6912 MB / 0.6686 GB, free: 20.25 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005678/1.286, allocations: 209.1 kB / 0.6688 GB, free: 20.05 MB / 346.7 MB Notification: Performance of SimCode: time 1.403e-06/1.286, allocations: 0 / 0.6688 GB, free: 20.05 MB / 346.7 MB Notification: Performance of Templates: time 0.08019/1.367, allocations: 51.81 MB / 0.7194 GB, free: 8.941 MB / 378.7 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe 2>&1)