Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.InvertersExtendedModel,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.InvertersExtendedModel") translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,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.InvertersExtendedModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001434/0.001434, allocations: 121.5 kB / 17.78 MB, free: 5.242 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001839/0.001839, allocations: 203.9 kB / 18.73 MB, free: 4.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.322/1.322, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001044/0.001044, allocations: 59.89 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2576/0.2586, allocations: 50.55 MB / 409.2 MB, free: 1.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01257/0.2713, allocations: 15.31 MB / 424.5 MB, free: 2.207 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02195/0.2932, allocations: 20.78 MB / 445.3 MB, free: 13.35 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002046/0.2953, allocations: 91.25 kB / 445.4 MB, free: 13.26 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003037/0.2984, allocations: 1.263 MB / 446.7 MB, free: 11.99 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006699/0.3051, allocations: 2.344 MB / 449 MB, free: 9.633 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004446/0.3096, allocations: 1.443 MB / 450.5 MB, free: 8.18 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009617/0.3192, allocations: 6.683 MB / 457.1 MB, free: 1.477 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008126/0.32, allocations: 469.5 kB / 457.6 MB, free: 0.9883 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001762/0.3218, allocations: 1.127 MB / 458.7 MB, free: 15.86 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001476/0.3233, allocations: 1.141 MB / 459.9 MB, free: 14.71 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001979/0.3235, allocations: 72 kB / 459.9 MB, free: 14.64 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004282/0.3278, allocations: 1.483 MB / 461.4 MB, free: 13.15 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003085/0.3281, allocations: 329.5 kB / 461.7 MB, free: 12.83 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001314/0.3295, allocations: 1.436 MB / 463.2 MB, free: 11.38 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004887/0.3344, allocations: 4.005 MB / 467.2 MB, free: 7.359 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.3344, allocations: 0 / 467.2 MB, free: 7.359 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3344, allocations: 0 / 467.2 MB, free: 7.359 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.922e-05/0.3344, allocations: 0 / 467.2 MB, free: 7.359 MB / 382.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.004743/0.3392, allocations: 3.961 MB / 471.1 MB, free: 3.316 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.625e-05/0.3392, allocations: 12.03 kB / 471.2 MB, free: 3.305 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003775/0.3396, allocations: 433.3 kB / 471.6 MB, free: 2.879 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00288/0.3425, allocations: 2.506 MB / 474.1 MB, free: 312 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.72e-05/0.3425, allocations: 40.94 kB / 474.1 MB, free: 272 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001104/0.3427, allocations: 55.95 kB / 474.2 MB, free: 216 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00128/0.3439, allocations: 0.7265 MB / 474.9 MB, free: 15.48 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.381e-05/0.344, allocations: 0 / 474.9 MB, free: 15.48 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.627e-05/0.344, allocations: 20 kB / 474.9 MB, free: 15.46 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.029e-05/0.3441, allocations: 19.98 kB / 474.9 MB, free: 15.44 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00152/0.3456, allocations: 0.8163 MB / 475.8 MB, free: 14.62 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004447/0.3501, allocations: 3.114 MB / 478.9 MB, free: 11.43 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001153/0.3512, allocations: 0.5829 MB / 479.5 MB, free: 10.83 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009307/0.3522, allocations: 0.6477 MB / 480.1 MB, free: 10.18 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02733/0.3795, allocations: 30.75 MB / 0.4989 GB, free: 7.176 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000736/0.3803, allocations: 369.7 kB / 0.4992 GB, free: 6.805 MB / 430.1 MB Notification: Performance of pre-optimization done (n=49): time 2.284e-06/0.3803, allocations: 0 / 0.4992 GB, free: 6.805 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.002106/0.3824, allocations: 1.126 MB / 0.5003 GB, free: 5.668 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.223e-05/0.3825, allocations: 63.41 kB / 0.5004 GB, free: 5.594 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003494/0.386, allocations: 3.087 MB / 0.5034 GB, free: 2.508 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 4.382e-05/0.386, allocations: 33.7 kB / 0.5034 GB, free: 2.469 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001354/0.3874, allocations: 1.585 MB / 0.505 GB, free: 0.875 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001474/0.3875, allocations: 178.5 kB / 0.5052 GB, free: 0.6992 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003004/0.3878, allocations: 226.4 kB / 0.5054 GB, free: 484 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001282/0.388, allocations: 341.9 kB / 0.5057 GB, free: 136 kB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005635/0.3886, allocations: 241.9 kB / 0.5059 GB, free: 15.9 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007785/0.3893, allocations: 0.6059 MB / 0.5065 GB, free: 15.11 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00137/0.3907, allocations: 0.9013 MB / 0.5074 GB, free: 14.04 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.674e-06/0.3907, allocations: 3.938 kB / 0.5074 GB, free: 14.04 MB / 446.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001952/0.3927, allocations: 1.259 MB / 0.5086 GB, free: 12.77 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.319e-05/0.3927, allocations: 12 kB / 0.5087 GB, free: 12.76 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001034/0.3928, allocations: 80 kB / 0.5087 GB, free: 12.68 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.027e-05/0.3929, allocations: 16 kB / 0.5087 GB, free: 12.67 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006894/0.3936, allocations: 203.6 kB / 0.5089 GB, free: 12.47 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.65e-05/0.3936, allocations: 23.92 kB / 0.509 GB, free: 12.45 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009588/0.3946, allocations: 115.5 kB / 0.5091 GB, free: 12.33 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001145/0.3947, allocations: 60 kB / 0.5091 GB, free: 12.27 MB / 446.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.0006705/0.3954, allocations: 461.3 kB / 0.5096 GB, free: 11.81 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003524/0.3957, allocations: 425.3 kB / 0.51 GB, free: 11.39 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002414/0.3982, allocations: 1.215 MB / 0.5112 GB, free: 10.16 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.256e-06/0.3982, allocations: 4 kB / 0.5112 GB, free: 10.16 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.3982, allocations: 0 / 0.5112 GB, free: 10.16 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.311e-06/0.3982, allocations: 3.984 kB / 0.5112 GB, free: 10.15 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003177/0.4014, allocations: 2.147 MB / 0.5133 GB, free: 7.941 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.23e-05/0.4015, allocations: 68 kB / 0.5133 GB, free: 7.875 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004487/0.4019, allocations: 99.91 kB / 0.5134 GB, free: 7.777 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.172e-06/0.4019, allocations: 4 kB / 0.5134 GB, free: 7.773 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.27e-05/0.402, allocations: 28 kB / 0.5135 GB, free: 7.746 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.402, allocations: 0 / 0.5135 GB, free: 7.746 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.402, allocations: 0 / 0.5135 GB, free: 7.746 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002175/0.4042, allocations: 1.358 MB / 0.5148 GB, free: 6.359 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006093/0.4048, allocations: 0.4982 MB / 0.5153 GB, free: 5.84 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002645/0.4051, allocations: 12 kB / 0.5153 GB, free: 5.828 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006543/0.4058, allocations: 27.97 kB / 0.5153 GB, free: 5.801 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001372/0.4059, allocations: 63.88 kB / 0.5154 GB, free: 5.738 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.269e-05/0.406, allocations: 36 kB / 0.5154 GB, free: 5.703 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002222/0.4082, allocations: 2.007 MB / 0.5174 GB, free: 3.703 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4082, allocations: 8.062 kB / 0.5174 GB, free: 3.695 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001154/0.4094, allocations: 0.5969 MB / 0.518 GB, free: 3.098 MB / 446.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.001014/0.4104, allocations: 0.7774 MB / 0.5187 GB, free: 2.312 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001474/0.4119, allocations: 0.8062 MB / 0.5195 GB, free: 1.48 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.4119, allocations: 4.062 kB / 0.5195 GB, free: 1.477 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007243/0.4126, allocations: 439 kB / 0.5199 GB, free: 1.023 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002308/0.4149, allocations: 0.6549 MB / 0.5206 GB, free: 372 kB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005486/0.4204, allocations: 4.598 MB / 0.5251 GB, free: 11.72 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009854/0.4214, allocations: 1.706 MB / 0.5267 GB, free: 9.984 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0008549/0.4223, allocations: 365.3 kB / 0.5271 GB, free: 9.621 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002061/0.4225, allocations: 151.4 kB / 0.5272 GB, free: 9.473 MB / 462.1 MB Notification: Performance of SimCode: time 4e-07/0.4225, allocations: 0 / 0.5272 GB, free: 9.473 MB / 462.1 MB Notification: Performance of Templates: time 0.2236/0.6461, allocations: 32.15 MB / 0.5586 GB, free: 117 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1)