Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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.InvertersApartRecord,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007918/0.007918, allocations: 100.1 kB / 15.73 MB, free: 6.473 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.001914/0.001914, allocations: 194.8 kB / 16.67 MB, free: 6.379 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.435/1.435, allocations: 205.1 MB / 222.5 MB, free: 4.543 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.001084/0.001084, allocations: 45.81 kB / 326.5 MB, free: 14.41 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08874/0.08983, allocations: 46.63 MB / 373.2 MB, free: 1.465 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.0136/0.1035, allocations: 14.03 MB / 387.2 MB, free: 3.375 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0233/0.1268, allocations: 19.73 MB / 406.9 MB, free: 15.56 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002565/0.1294, allocations: 87.25 kB / 407 MB, free: 15.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003134/0.1326, allocations: 1.209 MB / 408.2 MB, free: 14.26 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007643/0.1403, allocations: 2.285 MB / 410.5 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004141/0.1444, allocations: 1.396 MB / 411.9 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008902/0.1533, allocations: 6.341 MB / 418.2 MB, free: 4.191 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006334/0.154, allocations: 461.1 kB / 418.7 MB, free: 3.715 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001119/0.1551, allocations: 1.003 MB / 419.7 MB, free: 2.707 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001048/0.1562, allocations: 1.094 MB / 420.8 MB, free: 1.605 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001517/0.1563, allocations: 76 kB / 420.9 MB, free: 1.531 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003108/0.1595, allocations: 1.156 MB / 422 MB, free: 384 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003101/0.1598, allocations: 325.6 kB / 422.3 MB, free: 56 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001243/0.161, allocations: 1.378 MB / 423.7 MB, free: 14.66 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00445/0.1655, allocations: 3.802 MB / 427.5 MB, free: 10.85 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.1655, allocations: 0 / 427.5 MB, free: 10.85 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.1655, allocations: 0 / 427.5 MB, free: 10.85 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.597e-05/0.1656, allocations: 3.938 kB / 427.5 MB, free: 10.85 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.004842/0.1704, allocations: 3.697 MB / 431.2 MB, free: 7.074 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.74e-05/0.1705, allocations: 12.03 kB / 431.2 MB, free: 7.062 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000412/0.1709, allocations: 395.1 kB / 431.6 MB, free: 6.672 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003089/0.174, allocations: 2.426 MB / 434 MB, free: 4.172 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.478e-05/0.174, allocations: 44.94 kB / 434.1 MB, free: 4.125 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001387/0.1742, allocations: 48 kB / 434.1 MB, free: 4.078 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001289/0.1755, allocations: 0.7343 MB / 434.9 MB, free: 3.336 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.54e-05/0.1755, allocations: 0 / 434.9 MB, free: 3.336 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.661e-05/0.1756, allocations: 20 kB / 434.9 MB, free: 3.316 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.359e-05/0.1756, allocations: 19.98 kB / 434.9 MB, free: 3.297 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001555/0.1772, allocations: 0.8202 MB / 435.7 MB, free: 2.48 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004774/0.182, allocations: 3.071 MB / 438.8 MB, free: 15.31 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001159/0.1831, allocations: 0.579 MB / 439.4 MB, free: 14.72 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009608/0.1841, allocations: 0.6438 MB / 440 MB, free: 14.08 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.198/0.3822, allocations: 30.16 MB / 470.2 MB, free: 59.61 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006863/0.3829, allocations: 359.7 kB / 470.5 MB, free: 59.39 MB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 2.425e-06/0.3829, allocations: 0.9062 kB / 470.5 MB, free: 59.39 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.001994/0.3849, allocations: 1.105 MB / 471.6 MB, free: 59.09 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.244e-05/0.3849, allocations: 57.78 kB / 471.7 MB, free: 59.03 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003804/0.3888, allocations: 2.953 MB / 474.6 MB, free: 57.5 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.566e-05/0.3889, allocations: 40.12 kB / 474.7 MB, free: 57.46 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001436/0.3903, allocations: 1.498 MB / 476.2 MB, free: 56.15 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001803/0.3905, allocations: 167.8 kB / 476.3 MB, free: 56.01 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004268/0.3909, allocations: 229.9 kB / 476.6 MB, free: 55.89 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.389e-05/0.391, allocations: 342.7 kB / 476.9 MB, free: 55.56 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008418/0.3919, allocations: 243.4 kB / 477.1 MB, free: 55.46 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009806/0.3929, allocations: 0.6014 MB / 477.7 MB, free: 54.87 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001801/0.3947, allocations: 0.8922 MB / 478.6 MB, free: 54.16 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.028e-05/0.3947, allocations: 9.234 kB / 478.6 MB, free: 54.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002975/0.3977, allocations: 1.225 MB / 479.9 MB, free: 53.59 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.944e-05/0.3978, allocations: 11.84 kB / 479.9 MB, free: 53.59 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001453/0.3979, allocations: 90.42 kB / 480 MB, free: 53.58 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.189e-05/0.398, allocations: 23.56 kB / 480 MB, free: 53.58 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001018/0.399, allocations: 196.5 kB / 480.2 MB, free: 53.53 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.79e-05/0.399, allocations: 23.66 kB / 480.2 MB, free: 53.52 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001622/0.4007, allocations: 113.7 kB / 480.3 MB, free: 53.45 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001358/0.4008, allocations: 63.09 kB / 480.4 MB, free: 53.45 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.000988/0.4018, allocations: 431.4 kB / 480.8 MB, free: 53.14 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004321/0.4023, allocations: 383.3 kB / 481.2 MB, free: 52.95 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003351/0.4056, allocations: 1.208 MB / 482.4 MB, free: 52.39 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.146e-05/0.4057, allocations: 7.562 kB / 482.4 MB, free: 52.39 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.4057, allocations: 3.391 kB / 482.4 MB, free: 52.39 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.816e-06/0.4057, allocations: 7.797 kB / 482.4 MB, free: 52.38 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004199/0.4099, allocations: 2.102 MB / 484.5 MB, free: 51.06 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001287/0.41, allocations: 74.36 kB / 484.6 MB, free: 51.05 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006911/0.4108, allocations: 96.36 kB / 484.7 MB, free: 51.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.955e-06/0.4108, allocations: 1.656 kB / 484.7 MB, free: 51.02 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.195e-05/0.4109, allocations: 33.38 kB / 484.7 MB, free: 51.01 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.702e-06/0.4109, allocations: 5.484 kB / 484.7 MB, free: 51.01 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.4109, allocations: 1.375 kB / 484.7 MB, free: 51.01 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002824/0.4137, allocations: 1.305 MB / 486 MB, free: 50.06 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008678/0.4146, allocations: 480.2 kB / 486.5 MB, free: 49.57 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004437/0.4151, allocations: 12 kB / 486.5 MB, free: 49.55 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00117/0.4162, allocations: 23.97 kB / 486.5 MB, free: 49.53 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002046/0.4165, allocations: 63.94 kB / 486.6 MB, free: 49.47 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000101/0.4166, allocations: 36 kB / 486.6 MB, free: 49.43 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003339/0.4199, allocations: 1.921 MB / 488.5 MB, free: 47.52 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4199, allocations: 4.062 kB / 488.5 MB, free: 47.51 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002047/0.422, allocations: 0.5855 MB / 489.1 MB, free: 46.95 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.00132/0.4233, allocations: 0.7743 MB / 489.9 MB, free: 46.29 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002027/0.4254, allocations: 0.814 MB / 490.7 MB, free: 45.45 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.889e-06/0.4254, allocations: 4 kB / 490.7 MB, free: 45.45 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009594/0.4264, allocations: 447.2 kB / 491.2 MB, free: 44.99 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002777/0.4292, allocations: 0.5208 MB / 491.7 MB, free: 44.48 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007387/0.4366, allocations: 4.331 MB / 496 MB, free: 40.14 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001022/0.4376, allocations: 1.661 MB / 497.7 MB, free: 38.45 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001399/0.439, allocations: 365 kB / 498 MB, free: 38.1 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003021/0.4394, allocations: 151.4 kB / 498.2 MB, free: 37.95 MB / 382.1 MB Notification: Performance of SimCode: time 7.41e-07/0.4394, allocations: 4 kB / 498.2 MB, free: 37.95 MB / 382.1 MB Notification: Performance of Templates: time 0.06516/0.5045, allocations: 31.38 MB / 0.5171 GB, free: 6.531 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile (rm -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1)