Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.FourInverters.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.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.FourInverters") translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.FourInverters") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000893/0.0008931, allocations: 91.69 kB / 15.06 MB, free: 1.098 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.0009345/0.0009346, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.439/1.439, allocations: 205.4 MB / 222.1 MB, free: 5.645 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.0007457/0.0007458, allocations: 12 kB / 278.9 MB, free: 12.83 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2624/0.2632, allocations: 47.58 MB / 326.5 MB, free: 1.598 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02237/0.2856, allocations: 22.48 MB / 349 MB, free: 13.12 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02435/0.31, allocations: 19.51 MB / 368.5 MB, free: 9.555 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00365/0.3137, allocations: 59.62 kB / 368.5 MB, free: 9.496 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003541/0.3173, allocations: 1.239 MB / 369.8 MB, free: 8.246 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009688/0.327, allocations: 2.584 MB / 372.3 MB, free: 5.645 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004866/0.3319, allocations: 1.198 MB / 373.5 MB, free: 4.441 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.02236/0.3543, allocations: 11.57 MB / 385.1 MB, free: 8.832 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001982/0.3563, allocations: 0.791 MB / 385.9 MB, free: 8.004 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003127/0.3594, allocations: 1.601 MB / 387.5 MB, free: 6.395 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002769/0.3622, allocations: 1.871 MB / 389.4 MB, free: 4.512 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003367/0.3626, allocations: 76 kB / 389.4 MB, free: 4.438 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0045/0.3671, allocations: 1.105 MB / 390.5 MB, free: 3.332 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005349/0.3676, allocations: 0.5078 MB / 391.1 MB, free: 2.82 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001768/0.3694, allocations: 1.182 MB / 392.2 MB, free: 1.629 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004623/0.374, allocations: 4.806 MB / 397 MB, free: 12.8 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.374, allocations: 0 / 397 MB, free: 12.8 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.3741, allocations: 3.938 kB / 397 MB, free: 12.8 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001002/0.3742, allocations: 0 / 397 MB, free: 12.8 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.007912/0.3821, allocations: 5.901 MB / 402.9 MB, free: 6.812 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.521e-05/0.3821, allocations: 12.03 kB / 403 MB, free: 6.801 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006865/0.3828, allocations: 0.7487 MB / 403.7 MB, free: 6.043 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006133/0.389, allocations: 4.34 MB / 408.1 MB, free: 1.621 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.647e-05/0.389, allocations: 66 kB / 408.1 MB, free: 1.555 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002032/0.3892, allocations: 99.89 kB / 408.2 MB, free: 1.457 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00213/0.3914, allocations: 1.317 MB / 409.5 MB, free: 128 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.039e-05/0.3914, allocations: 0 / 409.5 MB, free: 128 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001149/0.3915, allocations: 36 kB / 409.6 MB, free: 92 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.194e-05/0.3916, allocations: 31.98 kB / 409.6 MB, free: 60 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002436/0.394, allocations: 1.527 MB / 411.1 MB, free: 14.53 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009147/0.4032, allocations: 5.677 MB / 416.8 MB, free: 8.758 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001735/0.405, allocations: 1.036 MB / 417.8 MB, free: 7.711 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001639/0.4066, allocations: 1.243 MB / 419.1 MB, free: 6.465 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2452/0.6519, allocations: 59.97 MB / 479 MB, free: 92.36 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009608/0.6529, allocations: 0.5775 MB / 479.6 MB, free: 92.05 MB / 382.1 MB Notification: Performance of pre-optimization done (n=85): time 4.218e-06/0.6529, allocations: 1.078 kB / 479.6 MB, free: 92.05 MB / 382.1 MB Notification: Performance of matching and sorting (n=85): time 0.003577/0.6565, allocations: 1.946 MB / 481.6 MB, free: 91.24 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.978e-05/0.6565, allocations: 63.47 kB / 481.6 MB, free: 91.18 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00612/0.6627, allocations: 5.557 MB / 487.2 MB, free: 86.1 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001473/0.6628, allocations: 37.7 kB / 487.2 MB, free: 86.06 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00174/0.6646, allocations: 2.942 MB / 490.2 MB, free: 83.12 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002304/0.6648, allocations: 298.6 kB / 490.5 MB, free: 82.84 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.962e-05/0.6649, allocations: 29.12 kB / 490.5 MB, free: 82.81 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.664e-05/0.665, allocations: 361.9 kB / 490.8 MB, free: 82.45 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007394/0.6657, allocations: 422.8 kB / 491.3 MB, free: 82.05 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008941/0.6667, allocations: 1.103 MB / 492.4 MB, free: 80.64 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008349/0.6675, allocations: 0.5726 MB / 492.9 MB, free: 80.11 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.037e-05/0.6675, allocations: 4 kB / 492.9 MB, free: 80.1 MB / 382.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.002845/0.6704, allocations: 2.25 MB / 495.2 MB, free: 77.87 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.415e-05/0.6704, allocations: 16 kB / 495.2 MB, free: 77.86 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001696/0.6706, allocations: 164 kB / 495.4 MB, free: 77.7 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.555e-05/0.6706, allocations: 36 kB / 495.4 MB, free: 77.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001021/0.6716, allocations: 367.3 kB / 495.8 MB, free: 77.3 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.714e-05/0.6717, allocations: 47.8 kB / 495.8 MB, free: 77.26 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001482/0.6732, allocations: 198.7 kB / 496 MB, free: 77.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001675/0.6733, allocations: 128 kB / 496.1 MB, free: 76.94 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.vin.counter,vin.counter,$PRE.v.counter,v.counter,$whenCondition2,$whenCondition1,$PRE.vin.T0,vin.T0,$PRE.vin.counter2,vin.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001126/0.6745, allocations: 0.7121 MB / 496.8 MB, free: 76.22 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004666/0.675, allocations: 0.7193 MB / 497.5 MB, free: 75.49 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004361/0.6793, allocations: 2.217 MB / 499.8 MB, free: 73.35 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.024e-05/0.6793, allocations: 8 kB / 499.8 MB, free: 73.34 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.642e-06/0.6794, allocations: 0 / 499.8 MB, free: 73.34 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.094e-06/0.6794, allocations: 7.812 kB / 499.8 MB, free: 73.34 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004404/0.6838, allocations: 3.661 MB / 0.4916 GB, free: 69.63 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001569/0.684, allocations: 144 kB / 0.4918 GB, free: 69.49 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006615/0.6846, allocations: 151.8 kB / 0.4919 GB, free: 69.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.937e-06/0.6846, allocations: 12.05 kB / 0.4919 GB, free: 69.33 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.72e-05/0.6847, allocations: 63.95 kB / 0.492 GB, free: 69.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.768e-06/0.6847, allocations: 0 / 0.492 GB, free: 69.27 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.6847, allocations: 7.938 kB / 0.492 GB, free: 69.26 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002664/0.6874, allocations: 2.219 MB / 0.4942 GB, free: 67.02 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001062/0.6885, allocations: 0.8229 MB / 0.495 GB, free: 66.17 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005068/0.689, allocations: 16 kB / 0.495 GB, free: 66.15 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001018/0.69, allocations: 51.91 kB / 0.495 GB, free: 66.1 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001643/0.6902, allocations: 96.48 kB / 0.4951 GB, free: 66.01 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000111/0.6903, allocations: 71.98 kB / 0.4952 GB, free: 65.94 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003859/0.6942, allocations: 3.563 MB / 0.4987 GB, free: 62.41 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.6942, allocations: 0 / 0.4987 GB, free: 62.41 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002101/0.6963, allocations: 1.09 MB / 0.4997 GB, free: 61.36 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (c1.vinternal,c2.vinternal,c3.vinternal,c4.vinternal) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001329/0.6976, allocations: 1.121 MB / 0.5008 GB, free: 60.49 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0021/0.6998, allocations: 1.467 MB / 0.5023 GB, free: 58.98 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.6998, allocations: 0 / 0.5023 GB, free: 58.98 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009344/0.7007, allocations: 0.7903 MB / 0.503 GB, free: 58.14 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002995/0.7037, allocations: 0.9412 MB / 0.504 GB, free: 57.2 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009263/0.713, allocations: 9.237 MB / 0.513 GB, free: 47.93 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00136/0.7144, allocations: 2.608 MB / 0.5155 GB, free: 45.29 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002306/0.7167, allocations: 0.6889 MB / 0.5162 GB, free: 44.6 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003357/0.7171, allocations: 279.4 kB / 0.5165 GB, free: 44.32 MB / 382.1 MB Notification: Performance of SimCode: time 2.004e-06/0.7171, allocations: 0 / 0.5165 GB, free: 44.32 MB / 382.1 MB Notification: Performance of Templates: time 0.0803/0.7974, allocations: 51.91 MB / 0.5672 GB, free: 8.34 MB / 398.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.FourInverters.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1)