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.00105/0.00105, allocations: 115.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001123/0.001123, allocations: 207.5 kB / 19.36 MB, free: 3.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.342/1.342, allocations: 227.4 MB / 247.5 MB, free: 10.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001284/0.001284, allocations: 62.23 kB / 308.4 MB, free: 15.86 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09232/0.09362, allocations: 50.53 MB / 358.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.1569/0.2505, allocations: 14.7 MB / 373.6 MB, free: 9.719 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01823/0.2688, allocations: 20.72 MB / 394.3 MB, free: 15.93 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001792/0.2706, allocations: 89.5 kB / 394.4 MB, free: 15.88 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003225/0.2739, allocations: 1.23 MB / 395.6 MB, free: 15.23 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007865/0.2818, allocations: 2.311 MB / 397.9 MB, free: 13.82 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005296/0.2871, allocations: 1.438 MB / 399.4 MB, free: 12.99 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01112/0.2982, allocations: 6.561 MB / 405.9 MB, free: 9.926 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008474/0.2991, allocations: 458.8 kB / 406.4 MB, free: 9.691 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001633/0.3007, allocations: 1.09 MB / 407.5 MB, free: 9.156 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001147/0.3019, allocations: 1.111 MB / 408.6 MB, free: 8.504 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000156/0.3021, allocations: 74.88 kB / 408.7 MB, free: 8.504 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004217/0.3063, allocations: 1.479 MB / 410.1 MB, free: 7.609 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003635/0.3067, allocations: 325.6 kB / 410.5 MB, free: 7.289 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001349/0.308, allocations: 1.366 MB / 411.8 MB, free: 5.914 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004577/0.3126, allocations: 3.775 MB / 415.6 MB, free: 2.125 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.3126, allocations: 7.938 kB / 415.6 MB, free: 2.117 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.3126, allocations: 0 / 415.6 MB, free: 2.117 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.518e-05/0.3127, allocations: 0 / 415.6 MB, free: 2.117 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.004962/0.3177, allocations: 3.674 MB / 419.3 MB, free: 14.37 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.356e-05/0.3177, allocations: 8.031 kB / 419.3 MB, free: 14.36 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004186/0.3181, allocations: 400.5 kB / 419.7 MB, free: 13.96 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003203/0.3213, allocations: 2.414 MB / 422.1 MB, free: 11.47 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.939e-05/0.3214, allocations: 37 kB / 422.1 MB, free: 11.43 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001197/0.3215, allocations: 59.91 kB / 422.2 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001244/0.3227, allocations: 0.7304 MB / 422.9 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.526e-05/0.3228, allocations: 0 / 422.9 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.469e-05/0.3228, allocations: 23.94 kB / 422.9 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.88e-05/0.3229, allocations: 23.92 kB / 423 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00149/0.3244, allocations: 0.8163 MB / 423.8 MB, free: 9.77 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004654/0.329, allocations: 3.051 MB / 426.8 MB, free: 6.637 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001117/0.3302, allocations: 0.5674 MB / 427.4 MB, free: 6.055 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000939/0.3311, allocations: 0.6459 MB / 428.1 MB, free: 5.406 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02879/0.3599, allocations: 30.76 MB / 458.8 MB, free: 2.402 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006932/0.3606, allocations: 362.4 kB / 459.2 MB, free: 2.035 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.244e-06/0.3607, allocations: 0 / 459.2 MB, free: 2.035 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002045/0.3627, allocations: 1.093 MB / 460.3 MB, free: 0.9336 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.231e-05/0.3628, allocations: 63.39 kB / 460.3 MB, free: 0.8594 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003237/0.366, allocations: 2.935 MB / 463.3 MB, free: 13.91 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.279e-05/0.3661, allocations: 33.7 kB / 463.3 MB, free: 13.88 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001153/0.3672, allocations: 1.482 MB / 464.8 MB, free: 12.38 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001381/0.3674, allocations: 169.6 kB / 464.9 MB, free: 12.21 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002811/0.3677, allocations: 234.1 kB / 465.2 MB, free: 11.98 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001224/0.3678, allocations: 334 kB / 465.5 MB, free: 11.65 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005394/0.3683, allocations: 245.8 kB / 465.7 MB, free: 11.41 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007534/0.3691, allocations: 0.5942 MB / 466.3 MB, free: 10.64 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001327/0.3704, allocations: 0.9013 MB / 467.2 MB, free: 9.562 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.748e-06/0.3705, allocations: 7.938 kB / 467.2 MB, free: 9.555 MB / 382.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001917/0.3724, allocations: 1.223 MB / 468.5 MB, free: 8.324 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.122e-05/0.3724, allocations: 16 kB / 468.5 MB, free: 8.309 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001107/0.3725, allocations: 80 kB / 468.5 MB, free: 8.23 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.535e-05/0.3726, allocations: 16 kB / 468.6 MB, free: 8.215 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007044/0.3733, allocations: 203.6 kB / 468.8 MB, free: 8.016 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.086e-05/0.3733, allocations: 23.92 kB / 468.8 MB, free: 7.992 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008824/0.3742, allocations: 114.9 kB / 468.9 MB, free: 7.879 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001002/0.3743, allocations: 68 kB / 469 MB, free: 7.812 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.0006251/0.3749, allocations: 441.3 kB / 469.4 MB, free: 7.371 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003233/0.3753, allocations: 379.4 kB / 469.8 MB, free: 6.996 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002411/0.3777, allocations: 1.189 MB / 471 MB, free: 5.797 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.003e-06/0.3777, allocations: 4 kB / 471 MB, free: 5.793 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.3777, allocations: 4 kB / 471 MB, free: 5.789 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.3777, allocations: 0 / 471 MB, free: 5.789 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003269/0.381, allocations: 2.1 MB / 473.1 MB, free: 3.621 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001047/0.3811, allocations: 71.98 kB / 473.1 MB, free: 3.551 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000455/0.3816, allocations: 91.92 kB / 473.2 MB, free: 3.461 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.979e-06/0.3816, allocations: 4 kB / 473.2 MB, free: 3.457 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001355/0.3817, allocations: 39.98 kB / 473.3 MB, free: 3.418 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.031e-06/0.3818, allocations: 7.938 kB / 473.3 MB, free: 3.41 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.3818, allocations: 0 / 473.3 MB, free: 3.41 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002101/0.3839, allocations: 1.293 MB / 474.6 MB, free: 2.086 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007857/0.3847, allocations: 476.3 kB / 475 MB, free: 1.598 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002718/0.3849, allocations: 12 kB / 475 MB, free: 1.586 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006635/0.3856, allocations: 27.97 kB / 475.1 MB, free: 1.559 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001436/0.3858, allocations: 67.88 kB / 475.1 MB, free: 1.492 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.21e-05/0.3858, allocations: 36 kB / 475.2 MB, free: 1.457 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002331/0.3882, allocations: 1.907 MB / 477.1 MB, free: 15.55 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.3882, allocations: 0 / 477.1 MB, free: 15.55 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001281/0.3895, allocations: 0.5894 MB / 477.7 MB, free: 14.96 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.001025/0.3905, allocations: 0.7778 MB / 478.4 MB, free: 14.18 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001445/0.392, allocations: 0.7984 MB / 479.2 MB, free: 13.35 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.215e-06/0.392, allocations: 0 / 479.2 MB, free: 13.35 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007365/0.3927, allocations: 443.1 kB / 479.7 MB, free: 12.89 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002214/0.395, allocations: 0.6229 MB / 480.3 MB, free: 12.27 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005581/0.4005, allocations: 4.293 MB / 484.6 MB, free: 7.938 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00113/0.4017, allocations: 1.661 MB / 486.3 MB, free: 6.25 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008747/0.4026, allocations: 357.1 kB / 486.6 MB, free: 5.895 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002172/0.4028, allocations: 155.4 kB / 486.8 MB, free: 5.742 MB / 398.1 MB Notification: Performance of SimCode: time 4.81e-07/0.4028, allocations: 0 / 486.8 MB, free: 5.742 MB / 398.1 MB Notification: Performance of Templates: time 0.04866/0.4515, allocations: 31.22 MB / 0.5058 GB, free: 6.652 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 gbode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1)