Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="empty",numberOfIntervals=3998,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Inverter") translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="empty",numberOfIntervals=3998,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001106/0.001106, allocations: 104.5 kB / 17.06 MB, free: 6.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001265/0.001265, allocations: 195 kB / 18 MB, free: 5.219 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.319/1.319, allocations: 205.1 MB / 223.9 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001357/0.001357, allocations: 43.94 kB / 327.9 MB, free: 3.324 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09866/0.1, allocations: 46.62 MB / 374.5 MB, free: 4.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.2252/0.3253, allocations: 7.704 MB / 382.2 MB, free: 9.715 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02073/0.346, allocations: 18.52 MB / 400.7 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001532/0.3476, allocations: 60.91 kB / 400.8 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002877/0.3506, allocations: 0.8247 MB / 401.6 MB, free: 11.99 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006491/0.3571, allocations: 1.774 MB / 403.4 MB, free: 10.93 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004944/0.362, allocations: 1.286 MB / 404.6 MB, free: 10.24 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005768/0.3678, allocations: 3.181 MB / 407.8 MB, free: 9.078 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004329/0.3683, allocations: 218.5 kB / 408 MB, free: 8.969 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001216/0.3695, allocations: 0.5291 MB / 408.6 MB, free: 8.754 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008014/0.3703, allocations: 0.5496 MB / 409.1 MB, free: 8.484 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.777e-05/0.3704, allocations: 40.5 kB / 409.2 MB, free: 8.484 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004204/0.3746, allocations: 1.129 MB / 410.3 MB, free: 8.266 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002225/0.3749, allocations: 168.2 kB / 410.5 MB, free: 8.152 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008507/0.3758, allocations: 0.6782 MB / 411.1 MB, free: 7.727 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004007/0.3798, allocations: 2.237 MB / 413.4 MB, free: 6.332 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.3798, allocations: 0.9688 kB / 413.4 MB, free: 6.332 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.3798, allocations: 0 / 413.4 MB, free: 6.332 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.372e-05/0.3798, allocations: 0 / 413.4 MB, free: 6.332 MB / 334.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.003379/0.3832, allocations: 2.013 MB / 415.4 MB, free: 4.793 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.943e-05/0.3833, allocations: 9.75 kB / 415.4 MB, free: 4.793 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002451/0.3835, allocations: 193 kB / 415.6 MB, free: 4.695 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002081/0.3856, allocations: 1.369 MB / 417 MB, free: 3.602 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.908e-05/0.3857, allocations: 23.8 kB / 417 MB, free: 3.59 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.124e-05/0.3858, allocations: 24.97 kB / 417 MB, free: 3.582 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009394/0.3867, allocations: 423.7 kB / 417.4 MB, free: 3.336 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.274e-05/0.3867, allocations: 0 / 417.4 MB, free: 3.336 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.399e-05/0.3868, allocations: 14.7 kB / 417.4 MB, free: 3.324 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.957e-05/0.3868, allocations: 14.69 kB / 417.4 MB, free: 3.316 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001109/0.3879, allocations: 473.6 kB / 417.9 MB, free: 3.129 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00312/0.391, allocations: 1.627 MB / 419.5 MB, free: 1.953 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001034/0.3921, allocations: 380 kB / 419.9 MB, free: 1.746 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008079/0.3929, allocations: 414.8 kB / 420.3 MB, free: 1.559 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01779/0.4107, allocations: 15.23 MB / 435.5 MB, free: 376 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006352/0.4114, allocations: 267 kB / 435.8 MB, free: 96 kB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 2.414e-06/0.4114, allocations: 0 / 435.8 MB, free: 96 kB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.002293/0.4137, allocations: 0.8368 MB / 436.6 MB, free: 15.23 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.268e-05/0.4138, allocations: 59.41 kB / 436.7 MB, free: 15.16 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001757/0.4155, allocations: 1.468 MB / 438.2 MB, free: 13.65 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.385e-05/0.4156, allocations: 33.7 kB / 438.2 MB, free: 13.61 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005903/0.4162, allocations: 0.7188 MB / 438.9 MB, free: 12.89 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001029/0.4163, allocations: 94.73 kB / 439 MB, free: 12.79 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001911/0.4165, allocations: 130 kB / 439.1 MB, free: 12.66 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001172/0.4166, allocations: 322 kB / 439.4 MB, free: 12.34 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004688/0.4171, allocations: 165 kB / 439.6 MB, free: 12.18 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000667/0.4178, allocations: 364.2 kB / 440 MB, free: 11.73 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001048/0.4188, allocations: 0.5372 MB / 440.5 MB, free: 11.1 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.438e-06/0.4188, allocations: 0 / 440.5 MB, free: 11.1 MB / 366.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001645/0.4205, allocations: 0.751 MB / 441.2 MB, free: 10.34 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.245e-05/0.4205, allocations: 11.98 kB / 441.3 MB, free: 10.33 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.058e-05/0.4206, allocations: 44 kB / 441.3 MB, free: 10.29 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003397/0.4209, allocations: 137.2 kB / 441.4 MB, free: 10.15 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004186/0.4214, allocations: 107.8 kB / 441.5 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006585/0.422, allocations: 0.6802 MB / 442.2 MB, free: 9.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009444/0.423, allocations: 71.41 kB / 442.3 MB, free: 9.27 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.575e-05/0.4231, allocations: 40.05 kB / 442.3 MB, free: 9.23 MB / 366.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.0004883/0.4236, allocations: 273.7 kB / 442.6 MB, free: 8.953 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002734/0.4238, allocations: 185.8 kB / 442.8 MB, free: 8.77 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001819/0.4257, allocations: 0.7471 MB / 443.5 MB, free: 8.016 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.152e-06/0.4257, allocations: 4 kB / 443.5 MB, free: 8.012 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/0.4257, allocations: 0 / 443.5 MB, free: 8.012 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.674e-06/0.4257, allocations: 3.984 kB / 443.5 MB, free: 8.008 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002567/0.4283, allocations: 1.319 MB / 444.9 MB, free: 6.617 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.586e-05/0.4284, allocations: 40 kB / 444.9 MB, free: 6.578 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000277/0.4286, allocations: 39.95 kB / 444.9 MB, free: 6.539 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002616/0.4289, allocations: 128.8 kB / 445.1 MB, free: 6.41 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.779e-05/0.429, allocations: 20 kB / 445.1 MB, free: 6.391 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005828/0.4296, allocations: 0.6733 MB / 445.7 MB, free: 5.691 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.4296, allocations: 8.016 kB / 445.8 MB, free: 5.684 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001542/0.4311, allocations: 0.72 MB / 446.5 MB, free: 4.934 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000657/0.4318, allocations: 278.7 kB / 446.7 MB, free: 4.641 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001423/0.4319, allocations: 8 kB / 446.8 MB, free: 4.633 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004172/0.4324, allocations: 31.95 kB / 446.8 MB, free: 4.602 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001259/0.4325, allocations: 39.97 kB / 446.8 MB, free: 4.562 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.078e-05/0.4326, allocations: 19.98 kB / 446.8 MB, free: 4.543 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001239/0.4338, allocations: 0.9653 MB / 447.8 MB, free: 3.559 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.4338, allocations: 0 / 447.8 MB, free: 3.559 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009626/0.4348, allocations: 335.8 kB / 448.1 MB, free: 3.23 MB / 366.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.0008756/0.4357, allocations: 0.58 MB / 448.7 MB, free: 2.641 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001375/0.4371, allocations: 0.5083 MB / 449.2 MB, free: 2.121 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.4371, allocations: 4.125 kB / 449.2 MB, free: 2.117 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006767/0.4378, allocations: 287.2 kB / 449.5 MB, free: 1.824 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001163/0.4389, allocations: 271.8 kB / 449.8 MB, free: 1.559 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00367/0.4426, allocations: 2.206 MB / 452 MB, free: 15.31 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006854/0.4433, allocations: 1.157 MB / 453.1 MB, free: 14.12 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005654/0.4439, allocations: 199.9 kB / 453.3 MB, free: 13.93 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001371/0.444, allocations: 87.44 kB / 453.4 MB, free: 13.84 MB / 382.1 MB Notification: Performance of SimCode: time 7.92e-07/0.444, allocations: 0 / 453.4 MB, free: 13.84 MB / 382.1 MB Notification: Performance of Templates: time 0.03553/0.4796, allocations: 20.27 MB / 473.7 MB, free: 9.555 MB / 398.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Inverter.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1)