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.001635/0.001635, allocations: 118.2 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001816/0.001816, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.387/1.387, allocations: 227.4 MB / 246.9 MB, free: 10.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001087/0.001087, allocations: 67.89 kB / 358.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2528/0.2539, allocations: 50.54 MB / 409.2 MB, free: 1.605 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.0133/0.2672, allocations: 15.31 MB / 424.5 MB, free: 2.234 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02563/0.2929, allocations: 20.78 MB / 445.3 MB, free: 13.38 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002437/0.2954, allocations: 91.25 kB / 445.4 MB, free: 13.29 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003088/0.2985, allocations: 1.268 MB / 446.7 MB, free: 12.02 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01179/0.3103, allocations: 2.344 MB / 449 MB, free: 9.656 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006924/0.3173, allocations: 1.443 MB / 450.5 MB, free: 8.203 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01658/0.3339, allocations: 6.679 MB / 457.1 MB, free: 1.504 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001311/0.3353, allocations: 473.5 kB / 457.6 MB, free: 1.012 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002843/0.3382, allocations: 1.135 MB / 458.7 MB, free: 15.87 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002588/0.3408, allocations: 1.153 MB / 459.9 MB, free: 14.71 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003157/0.3411, allocations: 76 kB / 460 MB, free: 14.64 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00763/0.3488, allocations: 1.479 MB / 461.4 MB, free: 13.16 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007645/0.3496, allocations: 329.5 kB / 461.8 MB, free: 12.83 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002824/0.3524, allocations: 1.432 MB / 463.2 MB, free: 11.39 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009691/0.3621, allocations: 3.985 MB / 467.2 MB, free: 7.391 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.3622, allocations: 0 / 467.2 MB, free: 7.391 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3622, allocations: 0 / 467.2 MB, free: 7.391 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.879e-05/0.3623, allocations: 4 kB / 467.2 MB, free: 7.387 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.009214/0.3715, allocations: 3.818 MB / 471 MB, free: 3.488 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.621e-05/0.3716, allocations: 11.97 kB / 471 MB, free: 3.477 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007356/0.3723, allocations: 414.9 kB / 471.4 MB, free: 3.066 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006211/0.3785, allocations: 2.471 MB / 473.9 MB, free: 0.5234 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.318e-05/0.3786, allocations: 37 kB / 473.9 MB, free: 500 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002139/0.3789, allocations: 51.91 kB / 474 MB, free: 448 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002394/0.3813, allocations: 0.7343 MB / 474.7 MB, free: 15.7 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.769e-05/0.3813, allocations: 0 / 474.7 MB, free: 15.7 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001267/0.3815, allocations: 23.92 kB / 474.7 MB, free: 15.67 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.096e-05/0.3815, allocations: 16 kB / 474.8 MB, free: 15.66 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002944/0.3845, allocations: 0.8202 MB / 475.6 MB, free: 14.84 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008907/0.3934, allocations: 3.094 MB / 478.7 MB, free: 11.66 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002276/0.3957, allocations: 0.5674 MB / 479.2 MB, free: 11.08 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001875/0.3976, allocations: 0.6477 MB / 479.9 MB, free: 10.43 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05178/0.4494, allocations: 30.76 MB / 0.4987 GB, free: 7.414 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001293/0.4508, allocations: 361.6 kB / 0.499 GB, free: 7.051 MB / 430.1 MB Notification: Performance of pre-optimization done (n=49): time 4.178e-06/0.4508, allocations: 0 / 0.499 GB, free: 7.051 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.004322/0.4551, allocations: 1.112 MB / 0.5001 GB, free: 5.93 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.352e-05/0.4552, allocations: 55.41 kB / 0.5002 GB, free: 5.863 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006234/0.4615, allocations: 3.094 MB / 0.5032 GB, free: 2.77 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000151/0.4617, allocations: 37.69 kB / 0.5032 GB, free: 2.727 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00219/0.4639, allocations: 1.573 MB / 0.5048 GB, free: 1.145 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003615/0.4642, allocations: 169.7 kB / 0.5049 GB, free: 0.9766 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004978/0.4648, allocations: 226.1 kB / 0.5051 GB, free: 0.75 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001831/0.465, allocations: 341.9 kB / 0.5055 GB, free: 420 kB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00104/0.466, allocations: 241.9 kB / 0.5057 GB, free: 180 kB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001437/0.4675, allocations: 0.5982 MB / 0.5063 GB, free: 15.39 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002566/0.4701, allocations: 0.8973 MB / 0.5072 GB, free: 14.32 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.801e-05/0.4701, allocations: 7.938 kB / 0.5072 GB, free: 14.32 MB / 446.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.003856/0.474, allocations: 1.249 MB / 0.5084 GB, free: 13.06 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.356e-05/0.474, allocations: 10.81 kB / 0.5084 GB, free: 13.05 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000165/0.4742, allocations: 83.98 kB / 0.5085 GB, free: 12.97 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.077e-05/0.4743, allocations: 24.03 kB / 0.5085 GB, free: 12.95 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00126/0.4755, allocations: 199.6 kB / 0.5087 GB, free: 12.75 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.049e-05/0.4756, allocations: 27.91 kB / 0.5087 GB, free: 12.73 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001942/0.4775, allocations: 111 kB / 0.5088 GB, free: 12.62 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000161/0.4777, allocations: 64 kB / 0.5089 GB, free: 12.55 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.001295/0.479, allocations: 461.3 kB / 0.5093 GB, free: 12.09 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006979/0.4797, allocations: 395.1 kB / 0.5097 GB, free: 11.7 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004284/0.484, allocations: 1.207 MB / 0.5109 GB, free: 10.48 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.23e-05/0.4841, allocations: 8 kB / 0.5109 GB, free: 10.47 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.12e-05/0.4841, allocations: 4 kB / 0.5109 GB, free: 10.46 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.102e-05/0.4841, allocations: 3.984 kB / 0.5109 GB, free: 10.46 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005499/0.4896, allocations: 2.143 MB / 0.513 GB, free: 8.254 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000144/0.4898, allocations: 68 kB / 0.513 GB, free: 8.188 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008018/0.4906, allocations: 91.92 kB / 0.5131 GB, free: 8.098 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.155e-06/0.4907, allocations: 0 / 0.5131 GB, free: 8.098 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.485e-05/0.4908, allocations: 36.05 kB / 0.5132 GB, free: 8.062 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.285e-05/0.4908, allocations: 11.92 kB / 0.5132 GB, free: 8.051 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.4908, allocations: 0 / 0.5132 GB, free: 8.051 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003781/0.4946, allocations: 1.329 MB / 0.5145 GB, free: 6.691 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00121/0.4958, allocations: 492 kB / 0.5149 GB, free: 6.188 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004668/0.4963, allocations: 15.98 kB / 0.515 GB, free: 6.172 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001266/0.4976, allocations: 32.03 kB / 0.515 GB, free: 6.141 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002384/0.4978, allocations: 63.88 kB / 0.5151 GB, free: 6.078 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001158/0.498, allocations: 36 kB / 0.5151 GB, free: 6.043 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004391/0.5024, allocations: 2.014 MB / 0.5171 GB, free: 4.035 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.5024, allocations: 0 / 0.5171 GB, free: 4.035 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002399/0.5048, allocations: 0.5934 MB / 0.5176 GB, free: 3.441 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.001725/0.5066, allocations: 0.77 MB / 0.5184 GB, free: 2.664 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002714/0.5093, allocations: 0.8052 MB / 0.5192 GB, free: 1.832 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/0.5093, allocations: 3.938 kB / 0.5192 GB, free: 1.828 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001349/0.5107, allocations: 448.2 kB / 0.5196 GB, free: 1.367 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004634/0.5153, allocations: 0.6432 MB / 0.5202 GB, free: 0.7188 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009586/0.525, allocations: 4.5 MB / 0.5246 GB, free: 12.18 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001282/0.5263, allocations: 1.706 MB / 0.5263 GB, free: 10.45 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001111/0.5274, allocations: 365.3 kB / 0.5266 GB, free: 10.09 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002932/0.5277, allocations: 155.4 kB / 0.5268 GB, free: 9.934 MB / 462.1 MB Notification: Performance of SimCode: time 6.81e-07/0.5277, allocations: 0 / 0.5268 GB, free: 9.934 MB / 462.1 MB Notification: Performance of Templates: time 0.2429/0.7706, allocations: 32.13 MB / 0.5582 GB, free: 116.5 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)