Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001853/0.001853, allocations: 170.2 kB / 12.72 MB, free: 2.594 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.157/1.157, allocations: 170.6 MB / 183.8 MB, free: 11.42 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001167/0.001167, allocations: 103.5 kB / 223.2 MB, free: 4.039 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.216e-05/2.217e-05, allocations: 4 kB / 268.9 MB, free: 20.92 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06311/0.06315, allocations: 38.77 MB / 307.6 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2497/0.3128, allocations: 93.98 MB / 401.6 MB, free: 14.5 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002064/0.3131, allocations: 66.41 kB / 401.7 MB, free: 14.46 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4035/0.7166, allocations: 129.3 MB / 0.5185 GB, free: 69 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.7167, allocations: 0 / 0.5185 GB, free: 69 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.172e-05/0.7167, allocations: 44 kB / 0.5186 GB, free: 68.96 MB / 346.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.003861/0.7206, allocations: 2.797 MB / 0.5213 GB, free: 66.1 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.639e-05/0.7206, allocations: 8.031 kB / 0.5213 GB, free: 66.09 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004083/0.7211, allocations: 422.9 kB / 0.5217 GB, free: 65.68 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003204/0.7243, allocations: 2.429 MB / 0.5241 GB, free: 63.18 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.476e-05/0.7243, allocations: 33 kB / 0.5241 GB, free: 63.15 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001213/0.7244, allocations: 63.84 kB / 0.5242 GB, free: 63.09 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009878/0.7254, allocations: 0.7872 MB / 0.5249 GB, free: 62.26 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.38e-05/0.7255, allocations: 0 / 0.5249 GB, free: 62.26 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.034e-05/0.7255, allocations: 20 kB / 0.525 GB, free: 62.24 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.004e-05/0.7256, allocations: 19.98 kB / 0.525 GB, free: 62.22 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008414/0.7264, allocations: 0.715 MB / 0.5257 GB, free: 61.51 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004768/0.7312, allocations: 3.271 MB / 0.5289 GB, free: 58.16 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006139/0.7318, allocations: 496.9 kB / 0.5293 GB, free: 57.66 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005671/0.7324, allocations: 0.585 MB / 0.5299 GB, free: 57.07 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0254/0.7578, allocations: 36.23 MB / 0.5653 GB, free: 15.71 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004694/0.7583, allocations: 317.8 kB / 0.5656 GB, free: 15.39 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 2.374e-06/0.7583, allocations: 0 / 0.5656 GB, free: 15.39 MB / 346.7 MB Notification: Performance of matching and sorting (n=49): time 0.001273/0.7596, allocations: 0.8168 MB / 0.5664 GB, free: 14.56 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.847e-05/0.7597, allocations: 280.9 kB / 0.5667 GB, free: 14.22 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003034/0.7628, allocations: 2.659 MB / 0.5693 GB, free: 11.57 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.213e-05/0.7628, allocations: 37.7 kB / 0.5693 GB, free: 11.52 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001012/0.7638, allocations: 1.588 MB / 0.5708 GB, free: 9.922 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001136/0.764, allocations: 173.7 kB / 0.571 GB, free: 9.75 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.998e-05/0.764, allocations: 16 kB / 0.571 GB, free: 9.734 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.211e-05/0.7641, allocations: 334 kB / 0.5713 GB, free: 9.402 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002737/0.7644, allocations: 190 kB / 0.5715 GB, free: 9.219 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003972/0.7648, allocations: 0.5933 MB / 0.5721 GB, free: 8.426 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003568/0.7651, allocations: 285.6 kB / 0.5724 GB, free: 8.148 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.913e-06/0.7651, allocations: 4 kB / 0.5724 GB, free: 8.145 MB / 346.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001301/0.7664, allocations: 1.151 MB / 0.5735 GB, free: 6.98 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.152e-05/0.7665, allocations: 8 kB / 0.5735 GB, free: 6.973 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.908e-05/0.7666, allocations: 83.98 kB / 0.5736 GB, free: 6.891 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.606e-05/0.7666, allocations: 16 kB / 0.5736 GB, free: 6.875 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006931/0.7673, allocations: 215.7 kB / 0.5738 GB, free: 6.664 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.085e-05/0.7673, allocations: 31.98 kB / 0.5738 GB, free: 6.633 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001106/0.7685, allocations: 119 kB / 0.574 GB, free: 6.516 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.353e-05/0.7685, allocations: 64 kB / 0.574 GB, free: 6.453 MB / 346.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 () * 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.0001469/0.7687, allocations: 176.8 kB / 0.5742 GB, free: 6.273 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000265/0.769, allocations: 403.1 kB / 0.5746 GB, free: 5.875 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002421/0.7714, allocations: 1.16 MB / 0.5757 GB, free: 4.707 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.995e-06/0.7714, allocations: 4 kB / 0.5757 GB, free: 4.703 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.7714, allocations: 3.938 kB / 0.5757 GB, free: 4.699 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.562e-06/0.7714, allocations: 7.984 kB / 0.5757 GB, free: 4.691 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002715/0.7742, allocations: 2.19 MB / 0.5779 GB, free: 2.43 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.14e-05/0.7742, allocations: 75.98 kB / 0.5779 GB, free: 2.355 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004675/0.7747, allocations: 103.9 kB / 0.578 GB, free: 2.254 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.935e-06/0.7747, allocations: 7.984 kB / 0.578 GB, free: 2.246 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.947e-05/0.7748, allocations: 28 kB / 0.5781 GB, free: 2.219 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.39e-06/0.7748, allocations: 7.953 kB / 0.5781 GB, free: 2.211 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.7748, allocations: 4 kB / 0.5781 GB, free: 2.207 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001265/0.7761, allocations: 1.236 MB / 0.5793 GB, free: 0.9297 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007055/0.7768, allocations: 0.5155 MB / 0.5798 GB, free: 400 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002829/0.7771, allocations: 16.06 kB / 0.5798 GB, free: 384 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007168/0.7778, allocations: 43.95 kB / 0.5798 GB, free: 340 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001328/0.778, allocations: 59.94 kB / 0.5799 GB, free: 280 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.712e-05/0.778, allocations: 39.98 kB / 0.5799 GB, free: 240 kB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002685/0.7807, allocations: 2.027 MB / 0.5819 GB, free: 14.21 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.7807, allocations: 4 kB / 0.5819 GB, free: 14.21 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001771/0.7825, allocations: 0.6673 MB / 0.5826 GB, free: 13.54 MB / 362.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) * 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.001499/0.784, allocations: 0.8701 MB / 0.5834 GB, free: 12.66 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001362/0.7854, allocations: 0.7122 MB / 0.5841 GB, free: 11.93 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.7854, allocations: 0 / 0.5841 GB, free: 11.93 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000612/0.786, allocations: 399.1 kB / 0.5845 GB, free: 11.51 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002281/0.7883, allocations: 0.5233 MB / 0.585 GB, free: 10.98 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005793/0.7941, allocations: 3.279 MB / 0.5882 GB, free: 7.656 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001338/0.7955, allocations: 1.785 MB / 0.59 GB, free: 5.844 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001438/0.797, allocations: 382.7 kB / 0.5903 GB, free: 5.465 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002738/0.7972, allocations: 167.4 kB / 0.5905 GB, free: 5.301 MB / 362.7 MB Notification: Performance of SimCode: time 1.122e-06/0.7973, allocations: 0 / 0.5905 GB, free: 5.301 MB / 362.7 MB Notification: Performance of Templates: time 0.2278/1.025, allocations: 34.34 MB / 0.624 GB, free: 81.82 MB / 362.7 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1)