Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=3998,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter") translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=3998,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001291/0.001291, allocations: 114 kB / 17.83 MB, free: 5.207 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001356/0.001356, allocations: 205.9 kB / 18.78 MB, free: 4.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.479/1.479, allocations: 230.4 MB / 250 MB, free: 9.109 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001938/0.001938, allocations: 63.83 kB / 367.3 MB, free: 7.066 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2626/0.2646, allocations: 53.31 MB / 420.6 MB, free: 8.367 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.009283/0.2738, allocations: 8.072 MB / 428.7 MB, free: 268 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02244/0.2963, allocations: 19.52 MB / 448.2 MB, free: 12.67 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009251/0.2972, allocations: 67.44 kB / 448.3 MB, free: 12.61 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002304/0.2995, allocations: 0.8476 MB / 449.1 MB, free: 11.75 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005552/0.3051, allocations: 1.822 MB / 451 MB, free: 9.922 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00416/0.3092, allocations: 1.37 MB / 452.3 MB, free: 8.547 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005099/0.3143, allocations: 3.296 MB / 455.6 MB, free: 5.238 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002901/0.3146, allocations: 136.7 kB / 455.8 MB, free: 5.082 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007255/0.3153, allocations: 0.5638 MB / 456.3 MB, free: 4.516 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006692/0.316, allocations: 0.559 MB / 456.9 MB, free: 3.953 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.129e-05/0.3161, allocations: 40 kB / 456.9 MB, free: 3.914 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003481/0.3196, allocations: 1.451 MB / 458.4 MB, free: 2.461 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001751/0.3197, allocations: 174.8 kB / 458.5 MB, free: 2.289 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006523/0.3204, allocations: 0.6754 MB / 459.2 MB, free: 1.609 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003039/0.3234, allocations: 2.221 MB / 461.4 MB, free: 15.38 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.3234, allocations: 0 / 461.4 MB, free: 15.38 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.3234, allocations: 0 / 461.4 MB, free: 15.38 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.028e-05/0.3235, allocations: 0 / 461.4 MB, free: 15.38 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.002967/0.3264, allocations: 2.077 MB / 463.5 MB, free: 13.23 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.014e-05/0.3265, allocations: 12.03 kB / 463.5 MB, free: 13.22 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002339/0.3267, allocations: 202.7 kB / 463.7 MB, free: 13.02 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001861/0.3286, allocations: 1.363 MB / 465.1 MB, free: 11.59 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.584e-05/0.3286, allocations: 20.56 kB / 465.1 MB, free: 11.57 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8e-05/0.3287, allocations: 24 kB / 465.1 MB, free: 11.55 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009297/0.3296, allocations: 441.1 kB / 465.6 MB, free: 11.11 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.396e-05/0.3296, allocations: 3.938 kB / 465.6 MB, free: 11.11 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.453e-05/0.3297, allocations: 12 kB / 465.6 MB, free: 11.1 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.653e-05/0.3297, allocations: 11.98 kB / 465.6 MB, free: 11.09 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001123/0.3308, allocations: 474.1 kB / 466.1 MB, free: 10.62 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002935/0.3337, allocations: 1.623 MB / 467.7 MB, free: 8.926 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009435/0.3347, allocations: 339.4 kB / 468 MB, free: 8.582 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007359/0.3354, allocations: 365.8 kB / 468.4 MB, free: 8.223 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01757/0.353, allocations: 15.53 MB / 483.9 MB, free: 6.551 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007309/0.3537, allocations: 263.2 kB / 484.2 MB, free: 6.281 MB / 398.1 MB Notification: Performance of pre-optimization done (n=29): time 2.154e-06/0.3537, allocations: 4 kB / 484.2 MB, free: 6.277 MB / 398.1 MB Notification: Performance of matching and sorting (n=29): time 0.002192/0.3559, allocations: 0.8417 MB / 485 MB, free: 5.406 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.301e-05/0.356, allocations: 59.34 kB / 485.1 MB, free: 5.336 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00202/0.358, allocations: 1.455 MB / 486.5 MB, free: 3.844 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.857e-05/0.358, allocations: 29.7 kB / 486.5 MB, free: 3.809 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006893/0.3587, allocations: 0.7232 MB / 487.3 MB, free: 3.078 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.977e-05/0.3588, allocations: 103.2 kB / 487.4 MB, free: 2.977 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002036/0.359, allocations: 130.1 kB / 487.5 MB, free: 2.844 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001484/0.3592, allocations: 330 kB / 487.8 MB, free: 2.516 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004661/0.3596, allocations: 157 kB / 488 MB, free: 2.363 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006524/0.3603, allocations: 359.4 kB / 488.3 MB, free: 1.918 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001159/0.3614, allocations: 0.5332 MB / 488.9 MB, free: 1.293 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.111e-06/0.3614, allocations: 7.938 kB / 488.9 MB, free: 1.285 MB / 398.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001535/0.363, allocations: 0.7556 MB / 489.6 MB, free: 0.5195 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.142e-05/0.363, allocations: 8.844 kB / 489.6 MB, free: 0.5117 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.088e-05/0.3631, allocations: 36 kB / 489.7 MB, free: 488 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003235/0.3634, allocations: 140.8 kB / 489.8 MB, free: 344 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004093/0.3638, allocations: 103.8 kB / 489.9 MB, free: 240 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007236/0.3645, allocations: 0.6812 MB / 490.6 MB, free: 15.53 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006248/0.3651, allocations: 75.58 kB / 490.7 MB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.319e-05/0.3652, allocations: 32 kB / 490.7 MB, free: 15.42 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0004621/0.3657, allocations: 273.3 kB / 491 MB, free: 15.15 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002118/0.3659, allocations: 198.7 kB / 491.1 MB, free: 14.95 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001777/0.3676, allocations: 0.7348 MB / 491.9 MB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.073e-05/0.3677, allocations: 4 kB / 491.9 MB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.3677, allocations: 4 kB / 491.9 MB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.544e-06/0.3677, allocations: 7.969 kB / 491.9 MB, free: 14.19 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002433/0.3701, allocations: 1.315 MB / 493.2 MB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.486e-05/0.3702, allocations: 36 kB / 493.3 MB, free: 12.77 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002529/0.3704, allocations: 43.95 kB / 493.3 MB, free: 12.73 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002628/0.3707, allocations: 132.8 kB / 493.4 MB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.817e-05/0.3707, allocations: 24 kB / 493.4 MB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006673/0.3714, allocations: 0.6695 MB / 494.1 MB, free: 11.88 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.3714, allocations: 0 / 494.1 MB, free: 11.88 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001379/0.3728, allocations: 0.7141 MB / 494.8 MB, free: 11.13 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004347/0.3732, allocations: 291.7 kB / 495.1 MB, free: 10.83 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001593/0.3734, allocations: 8 kB / 495.1 MB, free: 10.82 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004147/0.3738, allocations: 27.95 kB / 495.1 MB, free: 10.79 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001352/0.3739, allocations: 43.84 kB / 495.2 MB, free: 10.75 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.783e-05/0.374, allocations: 27.98 kB / 495.2 MB, free: 10.72 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001416/0.3754, allocations: 0.9571 MB / 496.2 MB, free: 9.746 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3754, allocations: 0 / 496.2 MB, free: 9.746 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009695/0.3764, allocations: 331.6 kB / 496.5 MB, free: 9.422 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * 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 (21): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009323/0.3773, allocations: 0.5692 MB / 497.1 MB, free: 8.84 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001394/0.3787, allocations: 0.5044 MB / 497.6 MB, free: 8.324 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.3787, allocations: 0 / 497.6 MB, free: 8.324 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007222/0.3794, allocations: 283.1 kB / 497.9 MB, free: 8.035 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001218/0.3806, allocations: 311 kB / 498.2 MB, free: 7.727 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003747/0.3844, allocations: 2.246 MB / 0.4887 GB, free: 5.438 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007999/0.3852, allocations: 1.149 MB / 0.4898 GB, free: 4.258 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005386/0.3857, allocations: 207.8 kB / 0.49 GB, free: 4.051 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001711/0.3859, allocations: 87.42 kB / 0.4901 GB, free: 3.965 MB / 414.1 MB Notification: Performance of SimCode: time 7.62e-07/0.3859, allocations: 4 kB / 0.4901 GB, free: 3.961 MB / 414.1 MB Notification: Performance of Templates: time 0.03571/0.4216, allocations: 19.99 MB / 0.5096 GB, free: 128 kB / 430.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1)