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.001381/0.001381, allocations: 115.5 kB / 17.78 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.001696/0.001696, allocations: 204.6 kB / 18.73 MB, free: 4.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.382/1.382, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002043/0.002043, allocations: 63.89 kB / 358.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2494/0.2514, allocations: 50.54 MB / 409.2 MB, free: 1.625 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.008278/0.2598, allocations: 8.036 MB / 417.3 MB, free: 9.551 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02074/0.2805, allocations: 19.46 MB / 436.7 MB, free: 6.016 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001144/0.2817, allocations: 63.44 kB / 436.8 MB, free: 5.953 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002143/0.2839, allocations: 0.8515 MB / 437.6 MB, free: 5.098 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00525/0.2892, allocations: 1.814 MB / 439.5 MB, free: 3.273 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003816/0.293, allocations: 1.354 MB / 440.8 MB, free: 1.914 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004821/0.2978, allocations: 3.292 MB / 444.1 MB, free: 14.61 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003478/0.2982, allocations: 216.6 kB / 444.3 MB, free: 14.38 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006611/0.2989, allocations: 0.5677 MB / 444.9 MB, free: 13.8 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005366/0.2994, allocations: 0.5551 MB / 445.4 MB, free: 13.25 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.113e-05/0.2995, allocations: 44 kB / 445.5 MB, free: 13.2 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003473/0.303, allocations: 1.455 MB / 446.9 MB, free: 11.75 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000178/0.3032, allocations: 166.8 kB / 447.1 MB, free: 11.58 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006542/0.3038, allocations: 0.6831 MB / 447.8 MB, free: 10.89 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002925/0.3068, allocations: 2.215 MB / 450 MB, free: 8.672 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.3068, allocations: 0 / 450 MB, free: 8.672 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.3068, allocations: 4 kB / 450 MB, free: 8.668 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.572e-05/0.3068, allocations: 0 / 450 MB, free: 8.668 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.002831/0.3097, allocations: 2.004 MB / 452 MB, free: 6.602 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.769e-05/0.3097, allocations: 12.03 kB / 452 MB, free: 6.59 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002166/0.3099, allocations: 193.7 kB / 452.2 MB, free: 6.398 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001734/0.3117, allocations: 1.346 MB / 453.6 MB, free: 4.98 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.316e-05/0.3117, allocations: 28.48 kB / 453.6 MB, free: 4.953 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.427e-05/0.3118, allocations: 28 kB / 453.6 MB, free: 4.926 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008464/0.3126, allocations: 429.1 kB / 454 MB, free: 4.504 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.295e-05/0.3127, allocations: 3.938 kB / 454 MB, free: 4.5 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.357e-05/0.3127, allocations: 19.98 kB / 454.1 MB, free: 4.48 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.493e-05/0.3127, allocations: 12 kB / 454.1 MB, free: 4.469 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001041/0.3138, allocations: 466.1 kB / 454.5 MB, free: 4.012 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002551/0.3164, allocations: 1.611 MB / 456.1 MB, free: 2.328 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008443/0.3172, allocations: 371.4 kB / 456.5 MB, free: 1.957 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006972/0.3179, allocations: 413.8 kB / 456.9 MB, free: 1.551 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01406/0.332, allocations: 15.53 MB / 472.4 MB, free: 15.88 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005796/0.3326, allocations: 259.2 kB / 472.7 MB, free: 15.61 MB / 398.1 MB Notification: Performance of pre-optimization done (n=29): time 2.285e-06/0.3326, allocations: 0 / 472.7 MB, free: 15.61 MB / 398.1 MB Notification: Performance of matching and sorting (n=29): time 0.001928/0.3346, allocations: 0.8407 MB / 473.5 MB, free: 14.74 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.674e-05/0.3346, allocations: 63.34 kB / 473.6 MB, free: 14.66 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001554/0.3362, allocations: 1.455 MB / 475 MB, free: 13.17 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.239e-05/0.3362, allocations: 33.7 kB / 475.1 MB, free: 13.13 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005382/0.3367, allocations: 0.7226 MB / 475.8 MB, free: 12.4 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.489e-05/0.3368, allocations: 90.73 kB / 475.9 MB, free: 12.31 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001717/0.337, allocations: 126 kB / 476 MB, free: 12.18 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.902e-05/0.3371, allocations: 326 kB / 476.3 MB, free: 11.86 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004397/0.3376, allocations: 161 kB / 476.5 MB, free: 11.7 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005169/0.3381, allocations: 359.4 kB / 476.8 MB, free: 11.26 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009512/0.3391, allocations: 0.5294 MB / 477.4 MB, free: 10.64 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.478e-06/0.3391, allocations: 0 / 477.4 MB, free: 10.64 MB / 398.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001393/0.3405, allocations: 0.7587 MB / 478.1 MB, free: 9.867 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.897e-05/0.3405, allocations: 14.59 kB / 478.1 MB, free: 9.855 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.985e-05/0.3406, allocations: 36 kB / 478.2 MB, free: 9.82 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00031/0.3409, allocations: 145.5 kB / 478.3 MB, free: 9.676 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003916/0.3413, allocations: 107.8 kB / 478.4 MB, free: 9.57 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005923/0.3419, allocations: 0.685 MB / 479.1 MB, free: 8.859 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005124/0.3424, allocations: 71.56 kB / 479.2 MB, free: 8.789 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.619e-05/0.3425, allocations: 35.94 kB / 479.2 MB, free: 8.754 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.0003571/0.3428, allocations: 277.6 kB / 479.5 MB, free: 8.473 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001696/0.343, allocations: 189.7 kB / 479.7 MB, free: 8.285 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001691/0.3447, allocations: 0.7348 MB / 480.4 MB, free: 7.539 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.688e-06/0.3447, allocations: 0 / 480.4 MB, free: 7.539 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.479e-06/0.3447, allocations: 4 kB / 480.4 MB, free: 7.535 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.3447, allocations: 0 / 480.4 MB, free: 7.535 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00202/0.3468, allocations: 1.322 MB / 481.7 MB, free: 6.145 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.205e-05/0.3468, allocations: 36 kB / 481.8 MB, free: 6.109 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002449/0.3471, allocations: 47.94 kB / 481.8 MB, free: 6.062 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002378/0.3473, allocations: 124.8 kB / 481.9 MB, free: 5.938 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.991e-05/0.3474, allocations: 23.92 kB / 481.9 MB, free: 5.914 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00053/0.3479, allocations: 0.6657 MB / 482.6 MB, free: 5.223 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.25e-06/0.3479, allocations: 11.86 kB / 482.6 MB, free: 5.211 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001219/0.3492, allocations: 0.7053 MB / 483.3 MB, free: 4.477 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003526/0.3495, allocations: 274.7 kB / 483.6 MB, free: 4.188 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001386/0.3497, allocations: 11.98 kB / 483.6 MB, free: 4.176 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004157/0.3501, allocations: 27.97 kB / 483.6 MB, free: 4.148 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001146/0.3502, allocations: 51.83 kB / 483.7 MB, free: 4.098 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.396e-05/0.3503, allocations: 16 kB / 483.7 MB, free: 4.082 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001105/0.3514, allocations: 0.9571 MB / 484.7 MB, free: 3.105 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3514, allocations: 0 / 484.7 MB, free: 3.105 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008094/0.3522, allocations: 327.8 kB / 485 MB, free: 2.785 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.0007489/0.353, allocations: 0.5734 MB / 485.6 MB, free: 2.199 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001213/0.3542, allocations: 0.516 MB / 486.1 MB, free: 1.672 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.3542, allocations: 4.125 kB / 486.1 MB, free: 1.668 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006164/0.3548, allocations: 291.2 kB / 486.4 MB, free: 1.371 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001154/0.356, allocations: 318.9 kB / 486.7 MB, free: 1.055 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003024/0.359, allocations: 2.202 MB / 488.9 MB, free: 14.81 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005888/0.3596, allocations: 1.153 MB / 490 MB, free: 13.63 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004678/0.3601, allocations: 199.9 kB / 490.2 MB, free: 13.43 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001332/0.3602, allocations: 91.44 kB / 490.3 MB, free: 13.34 MB / 414.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3603, allocations: 3.938 kB / 490.3 MB, free: 13.34 MB / 414.1 MB Notification: Performance of Templates: time 0.03063/0.3909, allocations: 19.83 MB / 0.4982 GB, free: 9.602 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)