Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Inverter.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.Inverter,tolerance=1e-07,outputFormat="empty",numberOfIntervals=3998,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Inverter") translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="empty",numberOfIntervals=3998,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.006047/0.006047, allocations: 164 kB / 15.11 MB, free: 5.973 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.313/1.313, allocations: 170.8 MB / 186.6 MB, free: 1.125 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.001717/0.001717, allocations: 105.3 kB / 226.2 MB, free: 8.02 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004339/0.0004339, allocations: 8 kB / 274.1 MB, free: 7.996 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2048/0.2053, allocations: 38.77 MB / 312.9 MB, free: 24.29 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3039/0.5092, allocations: 93.73 MB / 406.6 MB, free: 80.07 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002768/0.5095, allocations: 74.19 kB / 406.7 MB, free: 80.07 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1653/0.6749, allocations: 91 MB / 497.7 MB, free: 8.883 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.076e-06/0.6749, allocations: 0 / 497.7 MB, free: 8.883 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.679e-05/0.675, allocations: 20 kB / 497.7 MB, free: 8.863 MB / 314.7 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.005997/0.681, allocations: 1.954 MB / 499.7 MB, free: 6.852 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.568e-05/0.6811, allocations: 15.97 kB / 499.7 MB, free: 6.836 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005744/0.6817, allocations: 193.7 kB / 499.9 MB, free: 6.645 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002885/0.6846, allocations: 1.223 MB / 0.4893 GB, free: 5.352 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.506e-05/0.6846, allocations: 24.55 kB / 0.4894 GB, free: 5.328 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001447/0.6848, allocations: 35.86 kB / 0.4894 GB, free: 5.293 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001124/0.6859, allocations: 0.5026 MB / 0.4899 GB, free: 4.77 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.434e-05/0.686, allocations: 3.938 kB / 0.4899 GB, free: 4.766 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.962e-05/0.686, allocations: 12 kB / 0.4899 GB, free: 4.754 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.97e-05/0.6861, allocations: 15.98 kB / 0.4899 GB, free: 4.738 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001085/0.6871, allocations: 0.5059 MB / 0.4904 GB, free: 4.234 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003451/0.6906, allocations: 1.662 MB / 0.492 GB, free: 2.5 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009613/0.6916, allocations: 407.4 kB / 0.4924 GB, free: 2.094 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02241/0.714, allocations: 18.1 MB / 0.5101 GB, free: 13.4 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007535/0.7148, allocations: 283.5 kB / 0.5104 GB, free: 13.11 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 4.298e-06/0.7149, allocations: 0 / 0.5104 GB, free: 13.11 MB / 346.7 MB Notification: Performance of matching and sorting (n=29): time 0.002605/0.7175, allocations: 0.8955 MB / 0.5113 GB, free: 12.19 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001094/0.7176, allocations: 166.2 kB / 0.5114 GB, free: 11.99 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002427/0.7201, allocations: 1.231 MB / 0.5126 GB, free: 10.73 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.142e-05/0.7202, allocations: 33.7 kB / 0.5127 GB, free: 10.69 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008795/0.721, allocations: 0.7227 MB / 0.5134 GB, free: 9.961 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001391/0.7212, allocations: 90.73 kB / 0.5134 GB, free: 9.871 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.945e-05/0.7212, allocations: 8 kB / 0.5135 GB, free: 9.863 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001592/0.7214, allocations: 329.9 kB / 0.5138 GB, free: 9.535 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004804/0.7219, allocations: 177 kB / 0.5139 GB, free: 9.363 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007065/0.7226, allocations: 407.7 kB / 0.5143 GB, free: 8.863 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006215/0.7232, allocations: 217.1 kB / 0.5145 GB, free: 8.652 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.305e-06/0.7233, allocations: 4 kB / 0.5145 GB, free: 8.648 MB / 346.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002057/0.7253, allocations: 0.7859 MB / 0.5153 GB, free: 7.852 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.043e-05/0.7254, allocations: 8 kB / 0.5153 GB, free: 7.844 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.165e-05/0.7255, allocations: 44.77 kB / 0.5154 GB, free: 7.801 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003812/0.7259, allocations: 140.8 kB / 0.5155 GB, free: 7.66 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005259/0.7264, allocations: 115.8 kB / 0.5156 GB, free: 7.547 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007679/0.7272, allocations: 0.685 MB / 0.5163 GB, free: 6.836 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001092/0.7283, allocations: 87.41 kB / 0.5163 GB, free: 6.75 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.757e-05/0.7284, allocations: 36 kB / 0.5164 GB, free: 6.715 MB / 346.7 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 ($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 (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0007603/0.7291, allocations: 281.6 kB / 0.5167 GB, free: 6.43 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003849/0.7295, allocations: 185.8 kB / 0.5168 GB, free: 6.246 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002351/0.7319, allocations: 0.8009 MB / 0.5176 GB, free: 5.438 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.404e-06/0.7319, allocations: 7.938 kB / 0.5176 GB, free: 5.43 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.863e-05/0.732, allocations: 0 / 0.5176 GB, free: 5.43 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.505e-06/0.732, allocations: 4 kB / 0.5176 GB, free: 5.426 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003107/0.7351, allocations: 1.374 MB / 0.519 GB, free: 3.98 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.51e-05/0.7352, allocations: 36 kB / 0.519 GB, free: 3.945 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002833/0.7355, allocations: 56.02 kB / 0.5191 GB, free: 3.891 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002736/0.7358, allocations: 132.7 kB / 0.5192 GB, free: 3.758 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.629e-05/0.7358, allocations: 16 kB / 0.5192 GB, free: 3.742 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006731/0.7365, allocations: 0.6655 MB / 0.5198 GB, free: 3.051 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/0.7365, allocations: 8.016 kB / 0.5199 GB, free: 3.043 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001578/0.7381, allocations: 0.7866 MB / 0.5206 GB, free: 2.211 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007336/0.7388, allocations: 282.7 kB / 0.5209 GB, free: 1.914 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003112/0.7392, allocations: 11.95 kB / 0.5209 GB, free: 1.902 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005777/0.7398, allocations: 47.89 kB / 0.5209 GB, free: 1.855 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001351/0.7399, allocations: 39.95 kB / 0.521 GB, free: 1.816 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.539e-05/0.74, allocations: 24.11 kB / 0.521 GB, free: 1.793 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001527/0.7415, allocations: 0.9458 MB / 0.5219 GB, free: 0.8281 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.91e-07/0.7415, allocations: 0 / 0.5219 GB, free: 0.8281 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001635/0.7432, allocations: 367.7 kB / 0.5223 GB, free: 480 kB / 346.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.2096/0.9528, allocations: 0.6247 MB / 0.5229 GB, free: 75.55 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00193/0.9548, allocations: 0.5462 MB / 0.5234 GB, free: 75.48 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.63e-06/0.9548, allocations: 2.562 kB / 0.5234 GB, free: 75.48 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005806/0.9554, allocations: 303.7 kB / 0.5237 GB, free: 75.42 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001388/0.9568, allocations: 234.4 kB / 0.5239 GB, free: 75.41 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003896/0.9607, allocations: 2.51 MB / 0.5264 GB, free: 74.23 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007022/0.9614, allocations: 1.183 MB / 0.5275 GB, free: 73.52 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.000743/0.9622, allocations: 177.4 kB / 0.5277 GB, free: 73.5 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001776/0.9624, allocations: 76.59 kB / 0.5278 GB, free: 73.5 MB / 346.7 MB Notification: Performance of SimCode: time 1.753e-06/0.9624, allocations: 0 / 0.5278 GB, free: 73.5 MB / 346.7 MB Notification: Performance of Templates: time 0.03762/1, allocations: 18.78 MB / 0.5461 GB, free: 72.5 MB / 346.7 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Inverter.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1)