Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001292/0.001292, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00113/0.00113, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.373/1.373, allocations: 227.4 MB / 247.5 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001297/0.001297, allocations: 58.97 kB / 308.4 MB, free: 15.93 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09972/0.101, allocations: 50.53 MB / 358.9 MB, free: 13.38 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.1972/0.2982, allocations: 14.71 MB / 373.6 MB, free: 9.695 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02205/0.3203, allocations: 20.72 MB / 394.3 MB, free: 15.96 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002541/0.3229, allocations: 93.72 kB / 394.4 MB, free: 15.91 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003563/0.3265, allocations: 1.23 MB / 395.6 MB, free: 15.27 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009711/0.3362, allocations: 2.299 MB / 397.9 MB, free: 13.86 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007461/0.3437, allocations: 1.44 MB / 399.4 MB, free: 13.03 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01479/0.3586, allocations: 6.561 MB / 405.9 MB, free: 9.965 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001093/0.3597, allocations: 470 kB / 406.4 MB, free: 9.719 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00218/0.3619, allocations: 1.082 MB / 407.5 MB, free: 9.191 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001217/0.3632, allocations: 1.11 MB / 408.6 MB, free: 8.539 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001781/0.3633, allocations: 76.06 kB / 408.7 MB, free: 8.539 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006308/0.3697, allocations: 1.475 MB / 410.1 MB, free: 7.684 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004347/0.3701, allocations: 325.6 kB / 410.5 MB, free: 7.363 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002078/0.3722, allocations: 1.374 MB / 411.8 MB, free: 5.98 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007162/0.3794, allocations: 3.767 MB / 415.6 MB, free: 2.199 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.416e-06/0.3794, allocations: 8 kB / 415.6 MB, free: 2.191 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.3794, allocations: 0 / 415.6 MB, free: 2.191 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.802e-05/0.3795, allocations: 0 / 415.6 MB, free: 2.191 MB / 318.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.006144/0.3856, allocations: 3.674 MB / 419.3 MB, free: 14.44 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.621e-05/0.3857, allocations: 12.03 kB / 419.3 MB, free: 14.43 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004389/0.3861, allocations: 395.1 kB / 419.7 MB, free: 14.04 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003564/0.3897, allocations: 2.422 MB / 422.1 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.687e-05/0.3898, allocations: 33 kB / 422.1 MB, free: 11.5 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001492/0.3899, allocations: 59.89 kB / 422.2 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001386/0.3913, allocations: 0.7226 MB / 422.9 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.495e-05/0.3913, allocations: 0 / 422.9 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.877e-05/0.3914, allocations: 20 kB / 422.9 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.622e-05/0.3914, allocations: 23.98 kB / 423 MB, free: 10.67 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001529/0.393, allocations: 0.8202 MB / 423.8 MB, free: 9.848 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005117/0.3981, allocations: 3.051 MB / 426.8 MB, free: 6.715 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001118/0.3993, allocations: 0.5752 MB / 427.4 MB, free: 6.125 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009951/0.4003, allocations: 0.6454 MB / 428 MB, free: 5.477 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03083/0.4311, allocations: 30.75 MB / 458.8 MB, free: 2.477 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000747/0.4319, allocations: 361.6 kB / 459.1 MB, free: 2.109 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 3.166e-06/0.4319, allocations: 0 / 459.1 MB, free: 2.109 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002288/0.4342, allocations: 1.097 MB / 460.2 MB, free: 1.004 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.469e-05/0.4343, allocations: 59.41 kB / 460.3 MB, free: 0.9336 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003478/0.4378, allocations: 2.939 MB / 463.2 MB, free: 13.98 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.212e-05/0.4378, allocations: 29.7 kB / 463.3 MB, free: 13.95 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001324/0.4392, allocations: 1.482 MB / 464.7 MB, free: 12.46 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001462/0.4393, allocations: 169.6 kB / 464.9 MB, free: 12.29 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002822/0.4396, allocations: 230.1 kB / 465.1 MB, free: 12.06 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001285/0.4397, allocations: 341.9 kB / 465.5 MB, free: 11.72 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005351/0.4403, allocations: 245.8 kB / 465.7 MB, free: 11.48 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007776/0.4411, allocations: 0.602 MB / 466.3 MB, free: 10.7 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001376/0.4425, allocations: 0.8896 MB / 467.2 MB, free: 9.637 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.037e-05/0.4425, allocations: 8.812 kB / 467.2 MB, free: 9.629 MB / 382.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002137/0.4446, allocations: 1.23 MB / 468.4 MB, free: 8.391 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.581e-05/0.4447, allocations: 12 kB / 468.5 MB, free: 8.379 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001085/0.4448, allocations: 87.92 kB / 468.5 MB, free: 8.293 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.644e-05/0.4448, allocations: 16 kB / 468.6 MB, free: 8.277 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006898/0.4455, allocations: 199.7 kB / 468.8 MB, free: 8.082 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.067e-05/0.4456, allocations: 24.16 kB / 468.8 MB, free: 8.059 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009854/0.4465, allocations: 118.9 kB / 468.9 MB, free: 7.941 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001057/0.4467, allocations: 67.69 kB / 469 MB, free: 7.879 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.0006919/0.4474, allocations: 441.3 kB / 469.4 MB, free: 7.438 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003372/0.4477, allocations: 379.4 kB / 469.8 MB, free: 7.062 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002444/0.4502, allocations: 1.188 MB / 470.9 MB, free: 5.863 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.848e-06/0.4502, allocations: 4 kB / 471 MB, free: 5.859 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.4502, allocations: 0 / 471 MB, free: 5.859 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.4502, allocations: 3.984 kB / 471 MB, free: 5.855 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003157/0.4534, allocations: 2.096 MB / 473.1 MB, free: 3.691 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.513e-05/0.4535, allocations: 68 kB / 473.1 MB, free: 3.625 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004479/0.4539, allocations: 95.92 kB / 473.2 MB, free: 3.531 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.624e-06/0.4539, allocations: 4 kB / 473.2 MB, free: 3.527 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.788e-05/0.454, allocations: 31.98 kB / 473.2 MB, free: 3.496 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.466e-06/0.454, allocations: 0 / 473.2 MB, free: 3.496 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.997e-06/0.454, allocations: 7.938 kB / 473.3 MB, free: 3.488 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002055/0.4561, allocations: 1.293 MB / 474.5 MB, free: 2.164 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008249/0.4569, allocations: 476.3 kB / 475 MB, free: 1.676 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002787/0.4572, allocations: 15.98 kB / 475 MB, free: 1.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006484/0.4579, allocations: 35.89 kB / 475.1 MB, free: 1.625 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001455/0.458, allocations: 59.89 kB / 475.1 MB, free: 1.566 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.999e-05/0.4581, allocations: 39.98 kB / 475.2 MB, free: 1.527 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002329/0.4605, allocations: 1.903 MB / 477.1 MB, free: 15.62 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4605, allocations: 4.062 kB / 477.1 MB, free: 15.62 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001277/0.4617, allocations: 0.5894 MB / 477.7 MB, free: 15.03 MB / 398.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.001056/0.4628, allocations: 0.7777 MB / 478.4 MB, free: 14.25 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001514/0.4643, allocations: 0.8062 MB / 479.2 MB, free: 13.41 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.4644, allocations: 0 / 479.2 MB, free: 13.41 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000714/0.4651, allocations: 439 kB / 479.7 MB, free: 12.96 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00223/0.4673, allocations: 0.6179 MB / 480.3 MB, free: 12.34 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0056/0.4729, allocations: 4.286 MB / 484.6 MB, free: 8.023 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001036/0.474, allocations: 1.661 MB / 486.2 MB, free: 6.336 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001001/0.475, allocations: 361.1 kB / 486.6 MB, free: 5.977 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002158/0.4752, allocations: 147.4 kB / 486.7 MB, free: 5.832 MB / 398.1 MB Notification: Performance of SimCode: time 7.62e-07/0.4752, allocations: 0 / 486.7 MB, free: 5.832 MB / 398.1 MB Notification: Performance of Templates: time 0.05255/0.5278, allocations: 31.24 MB / 0.5058 GB, free: 6.727 MB / 430.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1)