Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.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.008382/0.008382, allocations: 99.56 kB / 15.73 MB, free: 6.059 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.001232/0.001232, allocations: 191.5 kB / 16.67 MB, free: 5.969 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.392/1.392, allocations: 205.1 MB / 222.5 MB, free: 4.535 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.001108/0.001108, allocations: 53.89 kB / 326.5 MB, free: 14.42 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08392/0.08503, allocations: 46.62 MB / 373.2 MB, free: 1.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01316/0.09824, allocations: 14.61 MB / 387.8 MB, free: 2.648 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02219/0.1205, allocations: 19.8 MB / 407.6 MB, free: 14.76 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002423/0.123, allocations: 95.19 kB / 407.7 MB, free: 14.67 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002932/0.1259, allocations: 1.228 MB / 408.9 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006598/0.1325, allocations: 2.304 MB / 411.2 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004013/0.1366, allocations: 1.389 MB / 412.6 MB, free: 9.715 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009809/0.1464, allocations: 6.46 MB / 419 MB, free: 3.234 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007852/0.1472, allocations: 473.6 kB / 419.5 MB, free: 2.746 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001343/0.1486, allocations: 1.018 MB / 420.5 MB, free: 1.723 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001088/0.1497, allocations: 1.114 MB / 421.6 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001822/0.1498, allocations: 72 kB / 421.7 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003763/0.1536, allocations: 1.159 MB / 422.9 MB, free: 15.37 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002938/0.1539, allocations: 337.5 kB / 423.2 MB, free: 15.04 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001192/0.1551, allocations: 1.44 MB / 424.6 MB, free: 13.59 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00493/0.1601, allocations: 4.028 MB / 428.7 MB, free: 9.543 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.1601, allocations: 7.938 kB / 428.7 MB, free: 9.535 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1601, allocations: 0 / 428.7 MB, free: 9.535 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.068e-05/0.1602, allocations: 3.984 kB / 428.7 MB, free: 9.531 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.005146/0.1653, allocations: 3.977 MB / 432.7 MB, free: 5.477 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.569e-05/0.1654, allocations: 8.031 kB / 432.7 MB, free: 5.469 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004317/0.1658, allocations: 441.2 kB / 433.1 MB, free: 5.035 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003129/0.1689, allocations: 2.522 MB / 435.6 MB, free: 2.445 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.958e-05/0.169, allocations: 40.94 kB / 435.7 MB, free: 2.402 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001312/0.1691, allocations: 51.95 kB / 435.7 MB, free: 2.352 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001301/0.1704, allocations: 0.7382 MB / 436.4 MB, free: 1.605 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.501e-05/0.1705, allocations: 3.938 kB / 436.4 MB, free: 1.602 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.422e-05/0.1705, allocations: 16 kB / 436.5 MB, free: 1.586 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.991e-05/0.1706, allocations: 19.98 kB / 436.5 MB, free: 1.566 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001539/0.1721, allocations: 0.8163 MB / 437.3 MB, free: 0.7539 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004628/0.1767, allocations: 3.122 MB / 440.4 MB, free: 13.54 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001179/0.1779, allocations: 0.5752 MB / 441 MB, free: 12.96 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009581/0.1789, allocations: 0.6515 MB / 441.6 MB, free: 12.3 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2064/0.3853, allocations: 30.18 MB / 471.8 MB, free: 57.9 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007147/0.386, allocations: 365 kB / 472.2 MB, free: 57.69 MB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 2.655e-06/0.386, allocations: 0 / 472.2 MB, free: 57.69 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.002145/0.3882, allocations: 1.142 MB / 473.3 MB, free: 57.38 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.32e-05/0.3882, allocations: 61.56 kB / 473.4 MB, free: 57.32 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003331/0.3916, allocations: 3.108 MB / 476.5 MB, free: 55.72 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.835e-05/0.3916, allocations: 37.67 kB / 476.5 MB, free: 55.68 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008823/0.3925, allocations: 1.585 MB / 478.1 MB, free: 54.31 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001052/0.3926, allocations: 186 kB / 478.3 MB, free: 54.18 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002363/0.3929, allocations: 228.7 kB / 478.5 MB, free: 54.06 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.218e-05/0.3929, allocations: 337.8 kB / 478.9 MB, free: 53.73 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005172/0.3935, allocations: 245.8 kB / 479.1 MB, free: 53.63 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000615/0.3941, allocations: 0.5975 MB / 479.7 MB, free: 53.04 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001151/0.3952, allocations: 0.895 MB / 480.6 MB, free: 52.34 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.492e-06/0.3953, allocations: 3.938 kB / 480.6 MB, free: 52.34 MB / 382.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001785/0.397, allocations: 1.269 MB / 481.9 MB, free: 51.74 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.837e-05/0.3971, allocations: 12.81 kB / 481.9 MB, free: 51.74 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.718e-05/0.3972, allocations: 86.61 kB / 482 MB, free: 51.73 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.388e-05/0.3972, allocations: 19.72 kB / 482 MB, free: 51.73 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006411/0.3979, allocations: 201.4 kB / 482.2 MB, free: 51.67 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.723e-05/0.3979, allocations: 23.66 kB / 482.2 MB, free: 51.67 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008809/0.3988, allocations: 115.4 kB / 482.3 MB, free: 51.62 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.756e-05/0.3989, allocations: 63.09 kB / 482.4 MB, free: 51.61 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.0005804/0.3995, allocations: 462.6 kB / 482.8 MB, free: 51.29 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002739/0.3998, allocations: 418.1 kB / 483.2 MB, free: 51.07 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002273/0.402, allocations: 1.231 MB / 484.5 MB, free: 50.51 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.494e-06/0.4021, allocations: 3.5 kB / 484.5 MB, free: 50.51 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.4021, allocations: 0 / 484.5 MB, free: 50.51 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.152e-06/0.4021, allocations: 3.984 kB / 484.5 MB, free: 50.51 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00277/0.4049, allocations: 2.153 MB / 486.6 MB, free: 49.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.611e-05/0.405, allocations: 72.52 kB / 486.7 MB, free: 49.15 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004459/0.4054, allocations: 92.55 kB / 486.8 MB, free: 49.12 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.829e-06/0.4054, allocations: 3.906 kB / 486.8 MB, free: 49.12 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.713e-05/0.4055, allocations: 26.78 kB / 486.8 MB, free: 49.12 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.988e-06/0.4055, allocations: 3.875 kB / 486.8 MB, free: 49.12 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.4055, allocations: 3.984 kB / 486.8 MB, free: 49.12 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001787/0.4073, allocations: 1.344 MB / 488.2 MB, free: 47.78 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004842/0.4078, allocations: 0.516 MB / 488.7 MB, free: 47.25 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002771/0.4081, allocations: 12 kB / 488.7 MB, free: 47.24 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006923/0.4088, allocations: 27.95 kB / 488.7 MB, free: 47.21 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001294/0.4089, allocations: 64.02 kB / 488.8 MB, free: 47.15 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.542e-05/0.409, allocations: 36 kB / 488.8 MB, free: 47.11 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001966/0.4109, allocations: 2.019 MB / 490.8 MB, free: 45.1 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4109, allocations: 2.844 kB / 490.8 MB, free: 45.1 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001183/0.4121, allocations: 0.6012 MB / 491.4 MB, free: 44.54 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.0009445/0.4131, allocations: 0.7856 MB / 492.2 MB, free: 43.88 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001383/0.4145, allocations: 0.81 MB / 493 MB, free: 43.04 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.4145, allocations: 0 / 493 MB, free: 43.04 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006194/0.4151, allocations: 455.7 kB / 493.5 MB, free: 42.57 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001603/0.4167, allocations: 0.5431 MB / 494 MB, free: 42.03 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004827/0.4216, allocations: 4.616 MB / 498.6 MB, free: 37.39 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006765/0.4223, allocations: 1.718 MB / 0.4886 GB, free: 35.64 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008194/0.4231, allocations: 358.1 kB / 0.489 GB, free: 35.3 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001817/0.4233, allocations: 159.4 kB / 0.4891 GB, free: 35.14 MB / 382.1 MB Notification: Performance of SimCode: time 6.22e-07/0.4233, allocations: 0 / 0.4891 GB, free: 35.14 MB / 382.1 MB Notification: Performance of Templates: time 0.04167/0.465, allocations: 32.18 MB / 0.5205 GB, free: 2.922 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile (rm -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1)