Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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 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.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=3998,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001125/0.001125, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001302/0.001302, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.325/1.325, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001126/0.001126, allocations: 67.88 kB / 358.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2767/0.2778, allocations: 50.55 MB / 409.2 MB, free: 1.617 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.01092/0.2888, allocations: 8.021 MB / 417.3 MB, free: 9.555 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01972/0.3085, allocations: 19.47 MB / 436.7 MB, free: 6.016 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001201/0.3098, allocations: 63.44 kB / 436.8 MB, free: 5.953 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002209/0.312, allocations: 0.8515 MB / 437.6 MB, free: 5.098 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00504/0.3171, allocations: 1.791 MB / 439.4 MB, free: 3.297 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003822/0.3209, allocations: 1.35 MB / 440.8 MB, free: 1.941 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004684/0.3256, allocations: 3.284 MB / 444.1 MB, free: 14.65 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003433/0.326, allocations: 224.6 kB / 444.3 MB, free: 14.4 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006225/0.3266, allocations: 0.5677 MB / 444.8 MB, free: 13.83 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005953/0.3272, allocations: 0.5551 MB / 445.4 MB, free: 13.27 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.136e-05/0.3273, allocations: 44 kB / 445.4 MB, free: 13.23 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003082/0.3304, allocations: 1.451 MB / 446.9 MB, free: 11.78 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001505/0.3305, allocations: 174.8 kB / 447.1 MB, free: 11.61 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005353/0.3311, allocations: 0.6754 MB / 447.7 MB, free: 10.93 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002666/0.3338, allocations: 2.223 MB / 450 MB, free: 8.695 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/0.3338, allocations: 0 / 450 MB, free: 8.695 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3338, allocations: 0 / 450 MB, free: 8.695 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.689e-05/0.3338, allocations: 0 / 450 MB, free: 8.695 MB / 366.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.002999/0.3368, allocations: 2.012 MB / 452 MB, free: 6.621 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.774e-05/0.3369, allocations: 12.03 kB / 452 MB, free: 6.609 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002095/0.3371, allocations: 189.7 kB / 452.2 MB, free: 6.422 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001852/0.3389, allocations: 1.35 MB / 453.5 MB, free: 5 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.329e-05/0.339, allocations: 20.56 kB / 453.5 MB, free: 4.98 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.123e-05/0.3391, allocations: 27.94 kB / 453.6 MB, free: 4.953 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009162/0.34, allocations: 437.2 kB / 454 MB, free: 4.523 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.497e-05/0.34, allocations: 3.938 kB / 454 MB, free: 4.52 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.321e-05/0.3401, allocations: 12 kB / 454 MB, free: 4.508 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.579e-05/0.3401, allocations: 11.98 kB / 454 MB, free: 4.496 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001103/0.3412, allocations: 474.1 kB / 454.5 MB, free: 4.031 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002726/0.3439, allocations: 1.607 MB / 456.1 MB, free: 2.352 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009426/0.3449, allocations: 375.3 kB / 456.5 MB, free: 1.977 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007543/0.3456, allocations: 409.8 kB / 456.9 MB, free: 1.574 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01531/0.361, allocations: 15.52 MB / 472.4 MB, free: 15.9 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006324/0.3616, allocations: 259.2 kB / 472.6 MB, free: 15.64 MB / 398.1 MB Notification: Performance of pre-optimization done (n=29): time 2.094e-06/0.3617, allocations: 0 / 472.6 MB, free: 15.64 MB / 398.1 MB Notification: Performance of matching and sorting (n=29): time 0.002125/0.3638, allocations: 0.8485 MB / 473.5 MB, free: 14.76 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.322e-05/0.3638, allocations: 59.34 kB / 473.5 MB, free: 14.69 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001575/0.3654, allocations: 1.455 MB / 475 MB, free: 13.2 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.436e-05/0.3655, allocations: 37.64 kB / 475 MB, free: 13.15 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005576/0.366, allocations: 0.7148 MB / 475.8 MB, free: 12.43 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.594e-05/0.3661, allocations: 98.72 kB / 475.9 MB, free: 12.33 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000167/0.3663, allocations: 126 kB / 476 MB, free: 12.2 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000105/0.3664, allocations: 330 kB / 476.3 MB, free: 11.88 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004636/0.3669, allocations: 157 kB / 476.5 MB, free: 11.72 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005675/0.3675, allocations: 359.5 kB / 476.8 MB, free: 11.28 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001057/0.3685, allocations: 0.5294 MB / 477.3 MB, free: 10.66 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.539e-06/0.3685, allocations: 0 / 477.3 MB, free: 10.66 MB / 398.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001542/0.3701, allocations: 0.7508 MB / 478.1 MB, free: 9.895 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.677e-05/0.3701, allocations: 8.844 kB / 478.1 MB, free: 9.887 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.055e-05/0.3702, allocations: 43.94 kB / 478.1 MB, free: 9.844 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003244/0.3705, allocations: 140.7 kB / 478.3 MB, free: 9.703 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004175/0.371, allocations: 107.8 kB / 478.4 MB, free: 9.598 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006289/0.3716, allocations: 0.6928 MB / 479.1 MB, free: 8.879 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005645/0.3722, allocations: 71.56 kB / 479.1 MB, free: 8.809 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.564e-05/0.3722, allocations: 32 kB / 479.2 MB, free: 8.777 MB / 398.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.0004848/0.3727, allocations: 273.6 kB / 479.4 MB, free: 8.5 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001888/0.3729, allocations: 189.7 kB / 479.6 MB, free: 8.312 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001822/0.3748, allocations: 0.7425 MB / 480.4 MB, free: 7.559 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.011e-06/0.3748, allocations: 0 / 480.4 MB, free: 7.559 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.815e-06/0.3748, allocations: 4 kB / 480.4 MB, free: 7.555 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/0.3748, allocations: 4 kB / 480.4 MB, free: 7.551 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002267/0.3771, allocations: 1.311 MB / 481.7 MB, free: 6.168 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.75e-05/0.3771, allocations: 36 kB / 481.7 MB, free: 6.133 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002506/0.3774, allocations: 47.89 kB / 481.8 MB, free: 6.086 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002535/0.3777, allocations: 120.9 kB / 481.9 MB, free: 5.965 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.848e-05/0.3777, allocations: 23.94 kB / 481.9 MB, free: 5.941 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005853/0.3783, allocations: 0.6695 MB / 482.6 MB, free: 5.246 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.684e-06/0.3783, allocations: 3.938 kB / 482.6 MB, free: 5.242 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001347/0.3797, allocations: 0.7091 MB / 483.3 MB, free: 4.504 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004252/0.3801, allocations: 282.7 kB / 483.6 MB, free: 4.207 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001277/0.3802, allocations: 8 kB / 483.6 MB, free: 4.199 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000414/0.3807, allocations: 31.95 kB / 483.6 MB, free: 4.168 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001152/0.3808, allocations: 43.91 kB / 483.6 MB, free: 4.125 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.342e-05/0.3808, allocations: 19.98 kB / 483.7 MB, free: 4.105 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001146/0.382, allocations: 0.9571 MB / 484.6 MB, free: 3.129 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.382, allocations: 0 / 484.6 MB, free: 3.129 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008572/0.3829, allocations: 323.8 kB / 484.9 MB, free: 2.812 MB / 398.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.0009092/0.3838, allocations: 0.5846 MB / 485.5 MB, free: 2.219 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001311/0.3851, allocations: 0.5229 MB / 486 MB, free: 1.688 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.3851, allocations: 0 / 486 MB, free: 1.688 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006596/0.3858, allocations: 291.2 kB / 486.3 MB, free: 1.391 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0013/0.3871, allocations: 310.9 kB / 486.6 MB, free: 1.082 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00315/0.3903, allocations: 2.206 MB / 488.8 MB, free: 14.84 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006207/0.3909, allocations: 1.153 MB / 490 MB, free: 13.65 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004835/0.3914, allocations: 199.9 kB / 490.2 MB, free: 13.45 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001409/0.3915, allocations: 87.44 kB / 490.3 MB, free: 13.37 MB / 414.1 MB Notification: Performance of SimCode: time 1.542e-06/0.3915, allocations: 0 / 490.3 MB, free: 13.37 MB / 414.1 MB Notification: Performance of Templates: time 0.03166/0.4232, allocations: 20.21 MB / 0.4985 GB, free: 9.25 MB / 430.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.makefile (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1)