Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001347/0.001347, allocations: 180.7 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.249/1.249, allocations: 194.5 MB / 211.6 MB, free: 3.039 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001615/0.001615, allocations: 118 kB / 256.9 MB, free: 4.34 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003057/0.0003057, allocations: 8 kB / 310.6 MB, free: 14.93 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07892/0.07924, allocations: 44.49 MB / 355.1 MB, free: 2.34 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2411/0.3203, allocations: 97.88 MB / 452.9 MB, free: 7.918 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00023/0.3206, allocations: 70.66 kB / 453 MB, free: 7.883 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.369/0.6897, allocations: 127.3 MB / 0.5667 GB, free: 83.6 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.6897, allocations: 0 / 0.5667 GB, free: 83.6 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.3e-05/0.6898, allocations: 47.09 kB / 0.5668 GB, free: 83.6 MB / 394.7 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.004489/0.6943, allocations: 3.561 MB / 0.5703 GB, free: 81.32 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.328e-05/0.6943, allocations: 10.06 kB / 0.5703 GB, free: 81.32 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003107/0.6946, allocations: 414.8 kB / 0.5707 GB, free: 81.11 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003076/0.6977, allocations: 2.456 MB / 0.5731 GB, free: 79.99 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.329e-05/0.6977, allocations: 39.09 kB / 0.5731 GB, free: 79.97 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001054/0.6978, allocations: 56.16 kB / 0.5732 GB, free: 79.95 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001155/0.699, allocations: 0.8625 MB / 0.574 GB, free: 79.58 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.2e-05/0.699, allocations: 0 / 0.574 GB, free: 79.58 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.717e-05/0.6991, allocations: 27.59 kB / 0.574 GB, free: 79.56 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.759e-05/0.6991, allocations: 18.98 kB / 0.574 GB, free: 79.55 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001278/0.7004, allocations: 0.8564 MB / 0.5749 GB, free: 79.33 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004518/0.7049, allocations: 3.278 MB / 0.5781 GB, free: 77.78 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001011/0.706, allocations: 0.616 MB / 0.5787 GB, free: 77.53 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02707/0.7331, allocations: 36.06 MB / 0.6139 GB, free: 41.62 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006369/0.7337, allocations: 388 kB / 0.6143 GB, free: 41.23 MB / 394.7 MB Notification: Performance of pre-optimization done (n=49): time 2.715e-06/0.7337, allocations: 0 / 0.6143 GB, free: 41.23 MB / 394.7 MB Notification: Performance of matching and sorting (n=49): time 0.002068/0.7358, allocations: 1.494 MB / 0.6157 GB, free: 39.66 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.658e-05/0.7359, allocations: 265.6 kB / 0.616 GB, free: 39.34 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002804/0.7387, allocations: 2.71 MB / 0.6186 GB, free: 36.63 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.109e-05/0.7388, allocations: 41.69 kB / 0.6187 GB, free: 36.59 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009155/0.7397, allocations: 1.58 MB / 0.6202 GB, free: 35 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001096/0.7398, allocations: 168.4 kB / 0.6204 GB, free: 34.84 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.02e-05/0.7399, allocations: 16 kB / 0.6204 GB, free: 34.82 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 7.133e-05/0.7399, allocations: 338.9 kB / 0.6207 GB, free: 34.48 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004876/0.7404, allocations: 257.9 kB / 0.621 GB, free: 34.23 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005846/0.741, allocations: 0.6673 MB / 0.6216 GB, free: 33.37 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005398/0.7416, allocations: 356.4 kB / 0.6219 GB, free: 33.02 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.731e-06/0.7416, allocations: 4 kB / 0.622 GB, free: 33.02 MB / 394.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001744/0.7433, allocations: 1.288 MB / 0.6232 GB, free: 31.73 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.89e-05/0.7434, allocations: 15.95 kB / 0.6232 GB, free: 31.71 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.562e-05/0.7435, allocations: 83.98 kB / 0.6233 GB, free: 31.63 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.466e-05/0.7435, allocations: 20 kB / 0.6233 GB, free: 31.61 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006398/0.7441, allocations: 211.8 kB / 0.6235 GB, free: 31.4 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.595e-05/0.7442, allocations: 24.95 kB / 0.6235 GB, free: 31.38 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001095/0.7453, allocations: 123.1 kB / 0.6237 GB, free: 31.26 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.076e-05/0.7454, allocations: 64 kB / 0.6237 GB, free: 31.2 MB / 394.7 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 ($PRE.vin.counter,vin.counter,$PRE.v.counter,v.counter,$whenCondition2,$whenCondition1,$PRE.vin.T0,vin.T0,$PRE.vin.counter2,vin.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008204/0.7462, allocations: 461.5 kB / 0.6242 GB, free: 30.73 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002816/0.7465, allocations: 403.1 kB / 0.6246 GB, free: 30.34 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002665/0.7491, allocations: 1.302 MB / 0.6258 GB, free: 29.04 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.123e-06/0.7492, allocations: 8 kB / 0.6258 GB, free: 29.03 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.7492, allocations: 0 / 0.6258 GB, free: 29.03 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.7492, allocations: 5.391 kB / 0.6258 GB, free: 29.02 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003179/0.7524, allocations: 2.336 MB / 0.6281 GB, free: 26.63 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.796e-05/0.7525, allocations: 71.98 kB / 0.6282 GB, free: 26.56 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004516/0.7529, allocations: 103.9 kB / 0.6283 GB, free: 26.46 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.022e-06/0.7529, allocations: 4 kB / 0.6283 GB, free: 26.45 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.123e-05/0.753, allocations: 35.98 kB / 0.6283 GB, free: 26.42 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.067e-06/0.753, allocations: 0 / 0.6283 GB, free: 26.42 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.753, allocations: 4 kB / 0.6283 GB, free: 26.41 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00181/0.7548, allocations: 1.45 MB / 0.6297 GB, free: 24.92 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009639/0.7558, allocations: 0.5116 MB / 0.6302 GB, free: 24.39 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003006/0.7561, allocations: 15.98 kB / 0.6303 GB, free: 24.37 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006993/0.7568, allocations: 44.03 kB / 0.6303 GB, free: 24.33 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000127/0.757, allocations: 63.92 kB / 0.6304 GB, free: 24.27 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.755e-05/0.757, allocations: 32 kB / 0.6304 GB, free: 24.23 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002096/0.7591, allocations: 2.07 MB / 0.6324 GB, free: 22.17 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.7591, allocations: 2.062 kB / 0.6324 GB, free: 22.17 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001285/0.7604, allocations: 0.6635 MB / 0.6331 GB, free: 21.51 MB / 394.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009536/0.7614, allocations: 0.8794 MB / 0.6339 GB, free: 20.79 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001288/0.7627, allocations: 0.8463 MB / 0.6347 GB, free: 19.93 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.554e-06/0.7627, allocations: 0 / 0.6347 GB, free: 19.93 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006117/0.7633, allocations: 471.2 kB / 0.6352 GB, free: 19.44 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001347/0.7647, allocations: 0.5175 MB / 0.6357 GB, free: 18.92 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005165/0.7698, allocations: 5.14 MB / 0.6407 GB, free: 13.74 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000782/0.7707, allocations: 1.781 MB / 0.6425 GB, free: 11.93 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001175/0.7718, allocations: 382.7 kB / 0.6428 GB, free: 11.55 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002073/0.7721, allocations: 163.4 kB / 0.643 GB, free: 11.4 MB / 394.7 MB Notification: Performance of SimCode: time 9.11e-07/0.7721, allocations: 0 / 0.643 GB, free: 11.4 MB / 394.7 MB Notification: Performance of Templates: time 0.1895/0.9615, allocations: 32.83 MB / 0.675 GB, free: 98.02 MB / 410.7 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1)