Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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.InvertersApartRecord,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001083/0.001084, allocations: 181.6 kB / 13.64 MB, free: 1.676 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.51/1.51, allocations: 194.2 MB / 208.4 MB, free: 6.711 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.001699/0.001699, allocations: 108.7 kB / 253.5 MB, free: 9.586 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.021e-05/3.024e-05, allocations: 4 kB / 304.9 MB, free: 29.79 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07686/0.07691, allocations: 44.49 MB / 349.4 MB, free: 1.273 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3073/0.3842, allocations: 97.78 MB / 447.2 MB, free: 13.84 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001808/0.3845, allocations: 69.72 kB / 447.3 MB, free: 13.8 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.444/0.8284, allocations: 125.4 MB / 0.5592 GB, free: 79.41 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.8285, allocations: 0 / 0.5592 GB, free: 79.41 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.754e-05/0.8286, allocations: 45.03 kB / 0.5593 GB, free: 79.41 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.003836/0.8324, allocations: 2.71 MB / 0.5619 GB, free: 77.95 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.8324, allocations: 7.531 kB / 0.5619 GB, free: 77.95 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003673/0.8328, allocations: 399.3 kB / 0.5623 GB, free: 77.75 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003221/0.836, allocations: 2.367 MB / 0.5646 GB, free: 77.1 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.855e-05/0.8361, allocations: 34.22 kB / 0.5646 GB, free: 77.1 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001254/0.8362, allocations: 63.8 kB / 0.5647 GB, free: 77.1 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001005/0.8372, allocations: 0.7873 MB / 0.5655 GB, free: 76.98 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.374e-05/0.8373, allocations: 0 / 0.5655 GB, free: 76.98 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.864e-05/0.8373, allocations: 20.11 kB / 0.5655 GB, free: 76.98 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.828e-05/0.8374, allocations: 21.33 kB / 0.5655 GB, free: 76.98 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008912/0.8383, allocations: 0.7089 MB / 0.5662 GB, free: 76.97 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004634/0.8429, allocations: 3.19 MB / 0.5693 GB, free: 76.42 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005811/0.8435, allocations: 490.9 kB / 0.5698 GB, free: 76.39 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005914/0.8441, allocations: 0.5943 MB / 0.5704 GB, free: 76.38 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0282/0.8723, allocations: 36.17 MB / 0.6057 GB, free: 49.71 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004503/0.8728, allocations: 319.7 kB / 0.606 GB, free: 49.6 MB / 394.7 MB Notification: Performance of pre-optimization done (n=49): time 2.725e-06/0.8728, allocations: 0 / 0.606 GB, free: 49.6 MB / 394.7 MB Notification: Performance of matching and sorting (n=49): time 0.001236/0.8741, allocations: 0.7977 MB / 0.6068 GB, free: 49.27 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.574e-05/0.8742, allocations: 274.7 kB / 0.607 GB, free: 48.95 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003153/0.8773, allocations: 2.511 MB / 0.6095 GB, free: 48.02 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.32e-05/0.8774, allocations: 48.59 kB / 0.6095 GB, free: 47.98 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001034/0.8785, allocations: 1.496 MB / 0.611 GB, free: 46.77 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001246/0.8786, allocations: 169.8 kB / 0.6112 GB, free: 46.64 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.078e-05/0.8786, allocations: 18.94 kB / 0.6112 GB, free: 46.62 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 6.684e-05/0.8787, allocations: 336.8 kB / 0.6115 GB, free: 46.31 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002986/0.879, allocations: 196.9 kB / 0.6117 GB, free: 46.25 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005075/0.8795, allocations: 0.5972 MB / 0.6123 GB, free: 45.64 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003934/0.8799, allocations: 275.8 kB / 0.6125 GB, free: 45.56 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.672e-06/0.88, allocations: 3.5 kB / 0.6125 GB, free: 45.56 MB / 394.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001409/0.8814, allocations: 1.131 MB / 0.6136 GB, free: 45.17 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.058e-05/0.8814, allocations: 11.73 kB / 0.6137 GB, free: 45.16 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.642e-05/0.8815, allocations: 88.03 kB / 0.6137 GB, free: 45.16 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.509e-05/0.8815, allocations: 16.38 kB / 0.6138 GB, free: 45.16 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007222/0.8823, allocations: 212.1 kB / 0.614 GB, free: 45.14 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.215e-05/0.8823, allocations: 23.56 kB / 0.614 GB, free: 45.13 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00123/0.8835, allocations: 124.6 kB / 0.6141 GB, free: 45.07 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001018/0.8836, allocations: 68.84 kB / 0.6142 GB, free: 45.06 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 () * 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.0001831/0.8838, allocations: 170.1 kB / 0.6143 GB, free: 44.91 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003496/0.8842, allocations: 391.8 kB / 0.6147 GB, free: 44.71 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002928/0.8871, allocations: 1.149 MB / 0.6158 GB, free: 44.27 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.213e-06/0.8872, allocations: 8.234 kB / 0.6158 GB, free: 44.27 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.531e-06/0.8872, allocations: 2.625 kB / 0.6158 GB, free: 44.27 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.062e-06/0.8872, allocations: 0 / 0.6158 GB, free: 44.27 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002988/0.8902, allocations: 2.12 MB / 0.6179 GB, free: 43.3 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.373e-05/0.8903, allocations: 68.09 kB / 0.618 GB, free: 43.3 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004712/0.8907, allocations: 109 kB / 0.6181 GB, free: 43.29 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.224e-06/0.8908, allocations: 3.812 kB / 0.6181 GB, free: 43.29 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.139e-05/0.8908, allocations: 26.09 kB / 0.6181 GB, free: 43.29 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.09e-06/0.8908, allocations: 6.125 kB / 0.6181 GB, free: 43.29 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.8908, allocations: 1.688 kB / 0.6181 GB, free: 43.29 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001247/0.8921, allocations: 1.227 MB / 0.6193 GB, free: 42.62 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007483/0.8928, allocations: 0.5496 MB / 0.6198 GB, free: 42.21 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002844/0.8931, allocations: 11.09 kB / 0.6199 GB, free: 42.21 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007487/0.8939, allocations: 47.77 kB / 0.6199 GB, free: 42.2 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001398/0.894, allocations: 60.3 kB / 0.62 GB, free: 42.19 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.092e-05/0.8941, allocations: 39.25 kB / 0.62 GB, free: 42.19 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002114/0.8962, allocations: 1.916 MB / 0.6219 GB, free: 41.45 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.8962, allocations: 0 / 0.6219 GB, free: 41.45 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001328/0.8976, allocations: 0.653 MB / 0.6225 GB, free: 41.35 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) * 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.001019/0.8986, allocations: 0.8506 MB / 0.6233 GB, free: 41.13 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0008737/0.8995, allocations: 0.7107 MB / 0.624 GB, free: 40.82 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.8995, allocations: 0 / 0.624 GB, free: 40.82 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003888/0.8999, allocations: 394.7 kB / 0.6244 GB, free: 40.53 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001298/0.9012, allocations: 0.4995 MB / 0.6249 GB, free: 40.08 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007759/0.909, allocations: 3.146 MB / 0.628 GB, free: 37.13 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0013/0.9103, allocations: 1.73 MB / 0.6297 GB, free: 35.79 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002445/0.9128, allocations: 380.4 kB / 0.63 GB, free: 35.52 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003803/0.9132, allocations: 163.3 kB / 0.6302 GB, free: 35.37 MB / 394.7 MB Notification: Performance of SimCode: time 1.232e-06/0.9132, allocations: 0 / 0.6302 GB, free: 35.37 MB / 394.7 MB Notification: Performance of Templates: time 0.06089/0.9741, allocations: 32.56 MB / 0.662 GB, free: 6.012 MB / 394.7 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1)