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.0007874/0.0007874, allocations: 94.91 kB / 15.37 MB, free: 0.7266 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.0009203/0.0009207, allocations: 177.2 kB / 16.27 MB, free: 6.664 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.374/1.374, allocations: 205.4 MB / 222.5 MB, free: 5.562 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.0004812/0.0004812, allocations: 12 kB / 279.4 MB, free: 12.52 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2307/0.2312, allocations: 47.59 MB / 327 MB, free: 1.375 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.01983/0.251, allocations: 24.3 MB / 351.3 MB, free: 10.99 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02897/0.2801, allocations: 21.21 MB / 372.5 MB, free: 5.695 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003961/0.2841, allocations: 59.62 kB / 372.6 MB, free: 5.637 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004483/0.2886, allocations: 1.486 MB / 374.1 MB, free: 4.141 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01325/0.3018, allocations: 2.67 MB / 376.7 MB, free: 1.453 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00562/0.3075, allocations: 1.312 MB / 378.1 MB, free: 140 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01982/0.3274, allocations: 12.14 MB / 390.2 MB, free: 3.961 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001691/0.3291, allocations: 0.8297 MB / 391 MB, free: 3.094 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002888/0.332, allocations: 1.768 MB / 392.8 MB, free: 1.316 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002691/0.3347, allocations: 1.983 MB / 394.8 MB, free: 15.32 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000362/0.3351, allocations: 83.94 kB / 394.9 MB, free: 15.24 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003902/0.339, allocations: 1.159 MB / 396 MB, free: 14.08 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006191/0.3397, allocations: 0.5463 MB / 396.6 MB, free: 13.53 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002697/0.3424, allocations: 2.606 MB / 399.2 MB, free: 10.9 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007242/0.3496, allocations: 6.383 MB / 405.6 MB, free: 4.488 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.3496, allocations: 0 / 405.6 MB, free: 4.488 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.3497, allocations: 0 / 405.6 MB, free: 4.488 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001314/0.3498, allocations: 0 / 405.6 MB, free: 4.488 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.00841/0.3582, allocations: 5.823 MB / 411.4 MB, free: 14.57 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.847e-05/0.3583, allocations: 8.031 kB / 411.4 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000883/0.3592, allocations: 0.7487 MB / 412.1 MB, free: 13.81 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00695/0.3661, allocations: 4.664 MB / 416.8 MB, free: 9.055 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.558e-05/0.3662, allocations: 70 kB / 416.9 MB, free: 8.984 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002343/0.3665, allocations: 107.8 kB / 417 MB, free: 8.879 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002273/0.3687, allocations: 1.32 MB / 418.3 MB, free: 7.543 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.183e-05/0.3688, allocations: 3.984 kB / 418.3 MB, free: 7.539 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001249/0.3689, allocations: 36 kB / 418.3 MB, free: 7.504 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.928e-05/0.3689, allocations: 43.92 kB / 418.4 MB, free: 7.461 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002545/0.3715, allocations: 1.527 MB / 419.9 MB, free: 5.934 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009701/0.3812, allocations: 5.673 MB / 425.6 MB, free: 168 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001767/0.383, allocations: 1.032 MB / 426.6 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001626/0.3847, allocations: 1.247 MB / 427.9 MB, free: 13.87 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2356/0.6203, allocations: 59.97 MB / 487.8 MB, free: 84.51 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009358/0.6213, allocations: 0.585 MB / 488.4 MB, free: 83.96 MB / 382.1 MB Notification: Performance of pre-optimization done (n=85): time 3.797e-06/0.6213, allocations: 0 / 488.4 MB, free: 83.96 MB / 382.1 MB Notification: Performance of matching and sorting (n=85): time 0.00309/0.6244, allocations: 1.942 MB / 490.3 MB, free: 82.35 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.237e-05/0.6244, allocations: 71.33 kB / 490.4 MB, free: 82.27 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006295/0.6307, allocations: 5.62 MB / 496 MB, free: 76.68 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001802/0.6309, allocations: 41.7 kB / 496.1 MB, free: 76.64 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001789/0.6327, allocations: 2.936 MB / 499 MB, free: 73.7 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000319/0.6331, allocations: 302.2 kB / 499.3 MB, free: 73.4 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001393/0.6332, allocations: 121.5 kB / 499.4 MB, free: 73.28 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.17e-05/0.6333, allocations: 301.1 kB / 499.7 MB, free: 72.98 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008222/0.6341, allocations: 427.4 kB / 0.4884 GB, free: 72.57 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009717/0.6351, allocations: 1.113 MB / 0.4895 GB, free: 71.16 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001877/0.637, allocations: 1.656 MB / 0.4911 GB, free: 69.24 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.053e-05/0.637, allocations: 8 kB / 0.4911 GB, free: 69.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003461/0.6405, allocations: 2.26 MB / 0.4933 GB, free: 66.98 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.776e-05/0.6405, allocations: 12 kB / 0.4933 GB, free: 66.97 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001682/0.6407, allocations: 165.9 kB / 0.4935 GB, free: 66.81 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.606e-05/0.6407, allocations: 45.53 kB / 0.4935 GB, free: 66.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001112/0.6418, allocations: 367.4 kB / 0.4939 GB, free: 66.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.883e-05/0.6419, allocations: 43.86 kB / 0.4939 GB, free: 66.37 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001938/0.6438, allocations: 198.1 kB / 0.4941 GB, free: 66.18 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001582/0.644, allocations: 124 kB / 0.4942 GB, free: 66.06 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 (vin.counter,$PRE.vin.counter,v.counter,$PRE.v.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin.counter2,$PRE.vin.counter2,vin.T0,$PRE.vin.T0,$whenCondition1,$whenCondition2) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001298/0.6453, allocations: 0.7159 MB / 0.4949 GB, free: 65.34 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007945/0.6461, allocations: 0.7241 MB / 0.4957 GB, free: 64.61 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004894/0.651, allocations: 2.211 MB / 0.4978 GB, free: 62.45 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.082e-05/0.651, allocations: 11.98 kB / 0.4978 GB, free: 62.43 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.651, allocations: 0 / 0.4978 GB, free: 62.43 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.153e-06/0.6511, allocations: 0 / 0.4978 GB, free: 62.43 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005545/0.6566, allocations: 3.667 MB / 0.5014 GB, free: 58.72 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001396/0.6568, allocations: 136 kB / 0.5015 GB, free: 58.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007271/0.6575, allocations: 167.8 kB / 0.5017 GB, free: 58.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.857e-06/0.6575, allocations: 4 kB / 0.5017 GB, free: 58.42 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.151e-05/0.6576, allocations: 60.67 kB / 0.5018 GB, free: 58.36 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.952e-06/0.6576, allocations: 8 kB / 0.5018 GB, free: 58.36 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.6576, allocations: 0 / 0.5018 GB, free: 58.36 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003214/0.6609, allocations: 2.221 MB / 0.5039 GB, free: 56.1 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001366/0.6622, allocations: 0.8201 MB / 0.5047 GB, free: 55.25 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004912/0.6627, allocations: 15.62 kB / 0.5048 GB, free: 55.24 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001069/0.6638, allocations: 47.97 kB / 0.5048 GB, free: 55.2 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002094/0.664, allocations: 104.4 kB / 0.5049 GB, free: 55.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001092/0.6642, allocations: 68 kB / 0.505 GB, free: 55.03 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.004241/0.6684, allocations: 3.633 MB / 0.5085 GB, free: 51.43 MB / 382.1 MB Notification: Performance of sort global known variables: time 5.31e-07/0.6684, allocations: 0 / 0.5085 GB, free: 51.43 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00257/0.671, allocations: 1.084 MB / 0.5096 GB, free: 50.38 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00157/0.6726, allocations: 1.187 MB / 0.5107 GB, free: 49.46 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002164/0.6748, allocations: 1.471 MB / 0.5122 GB, free: 47.94 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.736e-06/0.6748, allocations: 0 / 0.5122 GB, free: 47.94 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000918/0.6757, allocations: 0.7943 MB / 0.5129 GB, free: 47.1 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004025/0.6797, allocations: 0.9216 MB / 0.5138 GB, free: 46.17 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01048/0.6902, allocations: 9.917 MB / 0.5235 GB, free: 36.21 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001373/0.6916, allocations: 2.604 MB / 0.5261 GB, free: 33.58 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002486/0.6941, allocations: 0.6927 MB / 0.5267 GB, free: 32.89 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003391/0.6945, allocations: 279.4 kB / 0.527 GB, free: 32.61 MB / 382.1 MB Notification: Performance of SimCode: time 9.71e-07/0.6945, allocations: 3.938 kB / 0.527 GB, free: 32.61 MB / 382.1 MB Notification: Performance of Templates: time 0.08924/0.7837, allocations: 53.55 MB / 0.5793 GB, free: 10.98 MB / 414.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)