Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.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.007643/0.007643, allocations: 105.8 kB / 15.74 MB, free: 5.996 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.00167/0.00167, allocations: 194.4 kB / 16.67 MB, free: 5.918 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.492/1.492, allocations: 205.1 MB / 222.5 MB, free: 12.27 MB / 190.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.001247/0.001247, allocations: 59.92 kB / 326.5 MB, free: 3.301 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08673/0.08799, allocations: 46.62 MB / 373.2 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.1891/0.2772, allocations: 14.03 MB / 387.2 MB, free: 4.773 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0245/0.3017, allocations: 19.73 MB / 406.9 MB, free: 6.516 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00409/0.3058, allocations: 91.91 kB / 407 MB, free: 6.469 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005498/0.3114, allocations: 1.2 MB / 408.2 MB, free: 5.82 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009694/0.3212, allocations: 2.264 MB / 410.5 MB, free: 4.406 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006552/0.3278, allocations: 1.389 MB / 411.8 MB, free: 3.582 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01218/0.34, allocations: 6.343 MB / 418.2 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009467/0.3409, allocations: 465.5 kB / 418.6 MB, free: 420 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001858/0.3428, allocations: 1.002 MB / 419.6 MB, free: 15.94 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001553/0.3444, allocations: 1.085 MB / 420.7 MB, free: 15.31 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001703/0.3446, allocations: 79.56 kB / 420.8 MB, free: 15.31 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004062/0.3486, allocations: 1.158 MB / 422 MB, free: 14.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003226/0.349, allocations: 333.6 kB / 422.3 MB, free: 14.34 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001523/0.3505, allocations: 1.374 MB / 423.7 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005472/0.356, allocations: 3.798 MB / 427.5 MB, free: 9.141 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.693e-06/0.356, allocations: 4 kB / 427.5 MB, free: 9.137 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.356, allocations: 0 / 427.5 MB, free: 9.137 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.764e-05/0.3561, allocations: 0 / 427.5 MB, free: 9.137 MB / 350.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.005636/0.3617, allocations: 3.689 MB / 431.2 MB, free: 5.371 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.263e-05/0.3618, allocations: 8.031 kB / 431.2 MB, free: 5.363 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005198/0.3623, allocations: 403.1 kB / 431.6 MB, free: 4.965 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003739/0.3661, allocations: 2.434 MB / 434 MB, free: 2.457 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.436e-05/0.3661, allocations: 40.94 kB / 434 MB, free: 2.414 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001298/0.3663, allocations: 48 kB / 434.1 MB, free: 2.367 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001347/0.3676, allocations: 0.7382 MB / 434.8 MB, free: 1.621 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.506e-05/0.3676, allocations: 0 / 434.8 MB, free: 1.621 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.666e-05/0.3677, allocations: 16 kB / 434.8 MB, free: 1.605 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.44e-05/0.3677, allocations: 23.98 kB / 434.9 MB, free: 1.582 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001537/0.3693, allocations: 0.8124 MB / 435.7 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005601/0.3749, allocations: 3.071 MB / 438.7 MB, free: 13.61 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001222/0.3761, allocations: 0.5751 MB / 439.3 MB, free: 13.03 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001003/0.3772, allocations: 0.6477 MB / 440 MB, free: 12.38 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03594/0.4131, allocations: 30.17 MB / 470.1 MB, free: 10.11 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001086/0.4143, allocations: 361.5 kB / 470.5 MB, free: 9.738 MB / 398.1 MB Notification: Performance of pre-optimization done (n=49): time 4.298e-06/0.4143, allocations: 4 kB / 470.5 MB, free: 9.734 MB / 398.1 MB Notification: Performance of matching and sorting (n=49): time 0.003373/0.4177, allocations: 1.1 MB / 471.6 MB, free: 8.625 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.044e-05/0.4177, allocations: 59.41 kB / 471.7 MB, free: 8.555 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004742/0.4225, allocations: 2.952 MB / 474.6 MB, free: 5.594 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001152/0.4226, allocations: 33.7 kB / 474.6 MB, free: 5.555 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001249/0.4239, allocations: 1.497 MB / 476.1 MB, free: 4.047 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000198/0.4241, allocations: 165.7 kB / 476.3 MB, free: 3.883 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003251/0.4244, allocations: 234.1 kB / 476.5 MB, free: 3.648 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001354/0.4246, allocations: 341.9 kB / 476.9 MB, free: 3.309 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006229/0.4252, allocations: 237.9 kB / 477.1 MB, free: 3.074 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008097/0.426, allocations: 0.5981 MB / 477.7 MB, free: 2.301 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001417/0.4275, allocations: 0.8982 MB / 478.6 MB, free: 1.23 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.056e-05/0.4275, allocations: 4 kB / 478.6 MB, free: 1.227 MB / 398.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002289/0.4298, allocations: 1.237 MB / 479.8 MB, free: 15.98 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.665e-05/0.4298, allocations: 8 kB / 479.8 MB, free: 15.97 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001196/0.43, allocations: 87.92 kB / 479.9 MB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.027e-05/0.43, allocations: 23.98 kB / 479.9 MB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007266/0.4307, allocations: 208.1 kB / 480.1 MB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.186e-05/0.4308, allocations: 19.94 kB / 480.2 MB, free: 15.64 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001035/0.4318, allocations: 109.9 kB / 480.3 MB, free: 15.53 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001007/0.4319, allocations: 64 kB / 480.3 MB, free: 15.47 MB / 414.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.0007772/0.4327, allocations: 437.4 kB / 480.8 MB, free: 15.03 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003732/0.4331, allocations: 383.3 kB / 481.1 MB, free: 14.65 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002518/0.4356, allocations: 1.198 MB / 482.3 MB, free: 13.45 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.177e-05/0.4356, allocations: 7.984 kB / 482.3 MB, free: 13.44 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.4356, allocations: 11.94 kB / 482.4 MB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.571e-06/0.4357, allocations: 0 / 482.4 MB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003411/0.4391, allocations: 2.101 MB / 484.5 MB, free: 11.26 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.488e-05/0.4392, allocations: 71.98 kB / 484.5 MB, free: 11.19 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004985/0.4397, allocations: 95.86 kB / 484.6 MB, free: 11.1 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.04e-06/0.4397, allocations: 0 / 484.6 MB, free: 11.1 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.948e-05/0.4398, allocations: 35.98 kB / 484.7 MB, free: 11.06 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.41e-06/0.4398, allocations: 4 kB / 484.7 MB, free: 11.06 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.4398, allocations: 4.062 kB / 484.7 MB, free: 11.05 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002255/0.442, allocations: 1.293 MB / 486 MB, free: 9.73 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008753/0.4429, allocations: 484.2 kB / 486.4 MB, free: 9.234 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002491/0.4432, allocations: 8 kB / 486.4 MB, free: 9.227 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006594/0.4439, allocations: 39.95 kB / 486.5 MB, free: 9.188 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001466/0.444, allocations: 63.94 kB / 486.5 MB, free: 9.125 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.243e-05/0.4441, allocations: 39.94 kB / 486.6 MB, free: 9.086 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002516/0.4466, allocations: 1.92 MB / 488.5 MB, free: 7.168 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.4466, allocations: 0 / 488.5 MB, free: 7.168 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001391/0.448, allocations: 0.5856 MB / 489.1 MB, free: 6.582 MB / 414.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.001107/0.4491, allocations: 0.7854 MB / 489.9 MB, free: 5.789 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001627/0.4508, allocations: 0.8133 MB / 490.7 MB, free: 4.949 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.4508, allocations: 0 / 490.7 MB, free: 4.949 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007617/0.4516, allocations: 456 kB / 491.1 MB, free: 4.48 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001749/0.4533, allocations: 0.5096 MB / 491.6 MB, free: 3.973 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00591/0.4593, allocations: 4.328 MB / 496 MB, free: 15.61 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001076/0.4604, allocations: 1.669 MB / 497.6 MB, free: 13.91 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001041/0.4614, allocations: 361.3 kB / 498 MB, free: 13.55 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003329/0.4617, allocations: 151.4 kB / 498.1 MB, free: 13.4 MB / 430.1 MB Notification: Performance of SimCode: time 1.183e-06/0.4618, allocations: 0 / 498.1 MB, free: 13.4 MB / 430.1 MB Notification: Performance of Templates: time 0.05416/0.5159, allocations: 31.95 MB / 0.5177 GB, free: 13.39 MB / 462.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1)