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.001123/0.001123, 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.001314/0.001314, 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.338/1.338, allocations: 227.4 MB / 246.9 MB, free: 10.58 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009808/0.0009808, allocations: 59.89 kB / 358.7 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2444/0.2454, allocations: 50.55 MB / 409.2 MB, free: 1.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01352/0.259, allocations: 15.3 MB / 424.5 MB, free: 2.387 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02338/0.2824, allocations: 20.78 MB / 445.3 MB, free: 13.53 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002592/0.285, allocations: 95.25 kB / 445.4 MB, free: 13.43 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003324/0.2884, allocations: 1.265 MB / 446.7 MB, free: 12.16 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007529/0.296, allocations: 2.375 MB / 449.1 MB, free: 9.77 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004305/0.3003, allocations: 1.447 MB / 450.5 MB, free: 8.312 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009868/0.3102, allocations: 6.675 MB / 457.2 MB, free: 1.617 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008155/0.311, allocations: 477.5 kB / 457.6 MB, free: 1.121 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001517/0.3125, allocations: 1.139 MB / 458.8 MB, free: 15.98 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001133/0.3137, allocations: 1.153 MB / 459.9 MB, free: 14.82 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001489/0.3138, allocations: 72 kB / 460 MB, free: 14.75 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003791/0.3176, allocations: 1.483 MB / 461.5 MB, free: 13.26 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003393/0.318, allocations: 333.5 kB / 461.8 MB, free: 12.93 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00147/0.3195, allocations: 1.424 MB / 463.2 MB, free: 11.5 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005036/0.3245, allocations: 3.989 MB / 467.2 MB, free: 7.496 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.3245, allocations: 0 / 467.2 MB, free: 7.496 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3246, allocations: 4 kB / 467.2 MB, free: 7.492 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.91e-05/0.3246, allocations: 0 / 467.2 MB, free: 7.492 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.005476/0.3301, allocations: 3.818 MB / 471 MB, free: 3.594 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.95e-05/0.3301, allocations: 8.031 kB / 471.1 MB, free: 3.586 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004029/0.3306, allocations: 418.9 kB / 471.5 MB, free: 3.172 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003239/0.3338, allocations: 2.467 MB / 473.9 MB, free: 0.6328 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.164e-05/0.3338, allocations: 36.98 kB / 474 MB, free: 0.5977 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001333/0.334, allocations: 55.91 kB / 474 MB, free: 0.543 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001286/0.3353, allocations: 0.7343 MB / 474.8 MB, free: 15.8 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.483e-05/0.3353, allocations: 0 / 474.8 MB, free: 15.8 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.446e-05/0.3354, allocations: 20 kB / 474.8 MB, free: 15.78 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.031e-05/0.3354, allocations: 19.98 kB / 474.8 MB, free: 15.76 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00155/0.337, allocations: 0.8163 MB / 475.6 MB, free: 14.95 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004936/0.3419, allocations: 3.102 MB / 478.7 MB, free: 11.76 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001114/0.343, allocations: 0.5713 MB / 479.3 MB, free: 11.18 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009292/0.344, allocations: 0.6399 MB / 479.9 MB, free: 10.54 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02798/0.372, allocations: 30.77 MB / 0.4987 GB, free: 7.516 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007038/0.3727, allocations: 353.7 kB / 0.4991 GB, free: 7.16 MB / 430.1 MB Notification: Performance of pre-optimization done (n=49): time 2.695e-06/0.3727, allocations: 4 kB / 0.4991 GB, free: 7.156 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.00219/0.3749, allocations: 1.116 MB / 0.5002 GB, free: 6.031 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.822e-05/0.375, allocations: 59.41 kB / 0.5002 GB, free: 5.961 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003397/0.3784, allocations: 3.087 MB / 0.5032 GB, free: 2.875 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.261e-05/0.3784, allocations: 37.7 kB / 0.5033 GB, free: 2.832 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001215/0.3797, allocations: 1.569 MB / 0.5048 GB, free: 1.254 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001463/0.3798, allocations: 169.7 kB / 0.505 GB, free: 1.086 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000288/0.3801, allocations: 234.1 kB / 0.5052 GB, free: 0.8516 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000112/0.3802, allocations: 337.9 kB / 0.5055 GB, free: 0.5156 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000551/0.3808, allocations: 241.9 kB / 0.5057 GB, free: 288 kB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007522/0.3816, allocations: 0.602 MB / 0.5063 GB, free: 15.5 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001341/0.3829, allocations: 0.8974 MB / 0.5072 GB, free: 14.43 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.406e-06/0.3829, allocations: 7.938 kB / 0.5072 GB, free: 14.42 MB / 446.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002122/0.3851, allocations: 1.245 MB / 0.5084 GB, free: 13.17 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.486e-05/0.3851, allocations: 12 kB / 0.5084 GB, free: 13.16 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001139/0.3852, allocations: 88.14 kB / 0.5085 GB, free: 13.07 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.906e-05/0.3853, allocations: 16 kB / 0.5085 GB, free: 13.05 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006866/0.3859, allocations: 207.6 kB / 0.5087 GB, free: 12.85 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.18e-05/0.386, allocations: 19.94 kB / 0.5087 GB, free: 12.83 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009555/0.3869, allocations: 111 kB / 0.5089 GB, free: 12.72 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001056/0.3871, allocations: 71.98 kB / 0.5089 GB, free: 12.65 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.0007186/0.3878, allocations: 457.3 kB / 0.5094 GB, free: 12.2 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003541/0.3881, allocations: 395.1 kB / 0.5097 GB, free: 11.8 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002465/0.3906, allocations: 1.219 MB / 0.5109 GB, free: 10.57 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.344e-06/0.3906, allocations: 4 kB / 0.5109 GB, free: 10.56 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.3906, allocations: 0 / 0.5109 GB, free: 10.56 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.3907, allocations: 0 / 0.5109 GB, free: 10.56 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003186/0.3938, allocations: 2.143 MB / 0.513 GB, free: 8.355 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.301e-05/0.394, allocations: 72 kB / 0.5131 GB, free: 8.285 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004492/0.3944, allocations: 87.86 kB / 0.5132 GB, free: 8.199 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.12e-06/0.3944, allocations: 64 / 0.5132 GB, free: 8.199 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.744e-05/0.3945, allocations: 39.98 kB / 0.5132 GB, free: 8.16 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.3945, allocations: 4 kB / 0.5132 GB, free: 8.156 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.3945, allocations: 3.984 kB / 0.5132 GB, free: 8.152 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002077/0.3966, allocations: 1.321 MB / 0.5145 GB, free: 6.801 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006581/0.3973, allocations: 496 kB / 0.515 GB, free: 6.293 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002492/0.3975, allocations: 12 kB / 0.515 GB, free: 6.281 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006491/0.3982, allocations: 39.95 kB / 0.515 GB, free: 6.242 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001521/0.3983, allocations: 59.89 kB / 0.5151 GB, free: 6.184 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.181e-05/0.3984, allocations: 43.92 kB / 0.5151 GB, free: 6.141 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002387/0.4008, allocations: 2.007 MB / 0.5171 GB, free: 4.141 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.4008, allocations: 0 / 0.5171 GB, free: 4.141 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00126/0.4021, allocations: 0.5934 MB / 0.5177 GB, free: 3.547 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.001024/0.4031, allocations: 0.77 MB / 0.5184 GB, free: 2.77 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001504/0.4046, allocations: 0.8062 MB / 0.5192 GB, free: 1.938 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.4046, allocations: 0 / 0.5192 GB, free: 1.938 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007366/0.4054, allocations: 451.2 kB / 0.5196 GB, free: 1.473 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002275/0.4077, allocations: 0.651 MB / 0.5203 GB, free: 0.8164 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005777/0.4135, allocations: 4.504 MB / 0.5247 GB, free: 12.28 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001052/0.4145, allocations: 1.706 MB / 0.5263 GB, free: 10.54 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0009566/0.4155, allocations: 365.3 kB / 0.5267 GB, free: 10.18 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002152/0.4157, allocations: 147.4 kB / 0.5268 GB, free: 10.04 MB / 462.1 MB Notification: Performance of SimCode: time 4.71e-07/0.4157, allocations: 0 / 0.5268 GB, free: 10.04 MB / 462.1 MB Notification: Performance of Templates: time 0.2627/0.6785, allocations: 32.13 MB / 0.5582 GB, free: 116.6 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)