Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.InvertersExtendedModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007985/0.007985, allocations: 100.7 kB / 15.73 MB, free: 6.062 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.002214/0.002214, allocations: 194.3 kB / 16.67 MB, free: 5.973 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.422/1.422, allocations: 205.1 MB / 222.5 MB, free: 4.5 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.001147/0.001147, allocations: 54.83 kB / 326.5 MB, free: 14.29 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09781/0.09896, allocations: 46.63 MB / 373.2 MB, free: 1.316 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01461/0.1136, allocations: 14.6 MB / 387.8 MB, free: 2.656 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02203/0.1357, allocations: 19.8 MB / 407.6 MB, free: 14.78 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002703/0.1384, allocations: 99.19 kB / 407.7 MB, free: 14.68 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003432/0.1419, allocations: 1.236 MB / 408.9 MB, free: 13.44 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009607/0.1516, allocations: 2.332 MB / 411.2 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004667/0.1563, allocations: 1.389 MB / 412.6 MB, free: 9.691 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01076/0.167, allocations: 6.461 MB / 419.1 MB, free: 3.207 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008666/0.1679, allocations: 485.6 kB / 419.5 MB, free: 2.707 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001533/0.1695, allocations: 1.03 MB / 420.6 MB, free: 1.672 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001112/0.1706, allocations: 1.122 MB / 421.7 MB, free: 0.543 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001715/0.1708, allocations: 76 kB / 421.8 MB, free: 480 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003661/0.1745, allocations: 1.163 MB / 422.9 MB, free: 15.3 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003579/0.1748, allocations: 341.4 kB / 423.3 MB, free: 14.97 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001419/0.1763, allocations: 1.44 MB / 424.7 MB, free: 13.52 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005186/0.1815, allocations: 4.029 MB / 428.7 MB, free: 9.473 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.1815, allocations: 0 / 428.7 MB, free: 9.473 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1815, allocations: 0 / 428.7 MB, free: 9.473 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.881e-05/0.1816, allocations: 0 / 428.7 MB, free: 9.473 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.005683/0.1873, allocations: 3.985 MB / 432.7 MB, free: 5.41 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.562e-05/0.1873, allocations: 12.03 kB / 432.7 MB, free: 5.398 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004322/0.1877, allocations: 437.2 kB / 433.2 MB, free: 4.969 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003569/0.1913, allocations: 2.511 MB / 435.7 MB, free: 2.391 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.505e-05/0.1914, allocations: 44.92 kB / 435.7 MB, free: 2.344 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001294/0.1915, allocations: 51.95 kB / 435.8 MB, free: 2.293 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001311/0.1928, allocations: 0.7304 MB / 436.5 MB, free: 1.555 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.556e-05/0.1929, allocations: 0 / 436.5 MB, free: 1.555 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.608e-05/0.1929, allocations: 20 kB / 436.5 MB, free: 1.535 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.962e-05/0.193, allocations: 19.98 kB / 436.5 MB, free: 1.516 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001572/0.1945, allocations: 0.8241 MB / 437.4 MB, free: 0.6953 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005361/0.1999, allocations: 3.119 MB / 440.5 MB, free: 13.49 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001217/0.2012, allocations: 0.5791 MB / 441.1 MB, free: 12.9 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009899/0.2022, allocations: 0.6554 MB / 441.7 MB, free: 12.24 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2109/0.4131, allocations: 30.18 MB / 471.9 MB, free: 57.82 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007475/0.4139, allocations: 360.2 kB / 472.2 MB, free: 57.61 MB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 2.895e-06/0.4139, allocations: 0 / 472.2 MB, free: 57.61 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.002251/0.4162, allocations: 1.142 MB / 473.4 MB, free: 57.3 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.622e-05/0.4162, allocations: 61.23 kB / 473.4 MB, free: 57.23 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003417/0.4196, allocations: 3.106 MB / 476.6 MB, free: 55.64 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.531e-05/0.4197, allocations: 37.55 kB / 476.6 MB, free: 55.6 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008939/0.4206, allocations: 1.592 MB / 478.2 MB, free: 54.23 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001021/0.4207, allocations: 172.8 kB / 478.3 MB, free: 54.1 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002298/0.4209, allocations: 236.6 kB / 478.6 MB, free: 53.98 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.365e-05/0.421, allocations: 329.9 kB / 478.9 MB, free: 53.65 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005862/0.4216, allocations: 247.4 kB / 479.1 MB, free: 53.55 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006101/0.4222, allocations: 0.6048 MB / 479.7 MB, free: 52.96 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001148/0.4234, allocations: 0.9 MB / 480.6 MB, free: 52.25 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.086e-05/0.4234, allocations: 3.938 kB / 480.7 MB, free: 52.25 MB / 382.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001748/0.4252, allocations: 1.266 MB / 481.9 MB, free: 51.66 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.19e-05/0.4252, allocations: 11.75 kB / 481.9 MB, free: 51.66 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.204e-05/0.4253, allocations: 78.78 kB / 482 MB, free: 51.65 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.84e-05/0.4253, allocations: 23.44 kB / 482 MB, free: 51.65 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006428/0.426, allocations: 200.6 kB / 482.2 MB, free: 51.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.09e-05/0.426, allocations: 32.8 kB / 482.3 MB, free: 51.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008808/0.4269, allocations: 110.9 kB / 482.4 MB, free: 51.54 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.797e-05/0.427, allocations: 67.91 kB / 482.4 MB, free: 51.53 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * 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 (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.0005469/0.4275, allocations: 463.7 kB / 482.9 MB, free: 51.21 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002631/0.4278, allocations: 422.1 kB / 483.3 MB, free: 50.99 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002147/0.43, allocations: 1.226 MB / 484.5 MB, free: 50.41 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.312e-06/0.43, allocations: 3.438 kB / 484.5 MB, free: 50.41 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.43, allocations: 0 / 484.5 MB, free: 50.41 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.43, allocations: 0 / 484.5 MB, free: 50.41 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002821/0.4328, allocations: 2.16 MB / 486.7 MB, free: 49.06 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.337e-05/0.4329, allocations: 69.78 kB / 486.8 MB, free: 49.06 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004336/0.4334, allocations: 88.98 kB / 486.8 MB, free: 49.04 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.558e-06/0.4334, allocations: 7.828 kB / 486.9 MB, free: 49.03 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.577e-05/0.4334, allocations: 30.66 kB / 486.9 MB, free: 49.02 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/0.4334, allocations: 3.75 kB / 486.9 MB, free: 49.02 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.4334, allocations: 0 / 486.9 MB, free: 49.02 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00177/0.4352, allocations: 1.346 MB / 488.2 MB, free: 47.76 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006823/0.4359, allocations: 0.508 MB / 488.7 MB, free: 47.23 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002504/0.4362, allocations: 11.98 kB / 488.7 MB, free: 47.22 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000657/0.4368, allocations: 31.97 kB / 488.8 MB, free: 47.19 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001306/0.437, allocations: 64 kB / 488.8 MB, free: 47.13 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.434e-05/0.437, allocations: 36 kB / 488.9 MB, free: 47.09 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001821/0.4388, allocations: 2.025 MB / 490.9 MB, free: 45.08 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4389, allocations: 0 / 490.9 MB, free: 45.08 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001113/0.44, allocations: 0.5974 MB / 491.5 MB, free: 44.52 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.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 (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.0008236/0.4408, allocations: 0.7821 MB / 492.3 MB, free: 43.86 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001244/0.4421, allocations: 0.8102 MB / 493.1 MB, free: 43.03 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.4421, allocations: 0 / 493.1 MB, free: 43.03 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000603/0.4427, allocations: 451.2 kB / 493.5 MB, free: 42.56 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001461/0.4442, allocations: 0.5513 MB / 494.1 MB, free: 42.02 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004397/0.4486, allocations: 4.623 MB / 498.7 MB, free: 37.37 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000701/0.4493, allocations: 1.71 MB / 0.4887 GB, free: 35.63 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007856/0.4501, allocations: 363 kB / 0.489 GB, free: 35.28 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001801/0.4503, allocations: 151.4 kB / 0.4892 GB, free: 35.13 MB / 382.1 MB Notification: Performance of SimCode: time 5.61e-07/0.4503, allocations: 0 / 0.4892 GB, free: 35.13 MB / 382.1 MB Notification: Performance of Templates: time 0.04048/0.4907, allocations: 32.16 MB / 0.5206 GB, free: 2.922 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1)