Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Inverter.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.Inverter,tolerance=1e-07,outputFormat="empty",numberOfIntervals=3998,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Inverter") translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="empty",numberOfIntervals=3998,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001056/0.001056, allocations: 188.6 kB / 8.353 MB, free: 0.707 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.392/1.392, allocations: 194.3 MB / 203.1 MB, free: 9.324 MB / 171.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001766/0.001766, allocations: 115.8 kB / 248.1 MB, free: 6.328 MB / 203.1 MB Notification: Performance of FrontEnd - loaded program: time 1.842e-05/1.847e-05, allocations: 4 kB / 298.1 MB, free: 8.246 MB / 251.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0888/0.08884, allocations: 44.49 MB / 342.6 MB, free: 11.66 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3044/0.3933, allocations: 96.8 MB / 439.4 MB, free: 15.26 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002184/0.3936, allocations: 74.7 kB / 439.4 MB, free: 15.22 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.1798/0.5734, allocations: 84.92 MB / 0.5121 GB, free: 1.109 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.5734, allocations: 0 / 0.5121 GB, free: 1.109 MB / 395.1 MB Notification: Performance of Transformations before backend: time 4.086e-05/0.5735, allocations: 20 kB / 0.5121 GB, free: 1.09 MB / 395.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.2048/0.7783, allocations: 1.604 MB / 0.5137 GB, free: 77.82 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.662e-05/0.7784, allocations: 10.25 kB / 0.5137 GB, free: 77.82 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004646/0.7788, allocations: 202.2 kB / 0.5139 GB, free: 77.72 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001975/0.7808, allocations: 1.217 MB / 0.515 GB, free: 77.38 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.964e-05/0.7809, allocations: 7.906 kB / 0.5151 GB, free: 77.38 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.788e-05/0.7809, allocations: 19.88 kB / 0.5151 GB, free: 77.38 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005102/0.7815, allocations: 358.6 kB / 0.5154 GB, free: 77.38 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005044/0.782, allocations: 415.5 kB / 0.5158 GB, free: 77.3 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.078e-05/0.782, allocations: 0 / 0.5158 GB, free: 77.3 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.026e-05/0.782, allocations: 0 / 0.5158 GB, free: 77.3 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.263e-05/0.7821, allocations: 15.45 kB / 0.5158 GB, free: 77.3 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002555/0.7846, allocations: 1.589 MB / 0.5174 GB, free: 76.98 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004556/0.7851, allocations: 266 kB / 0.5176 GB, free: 76.96 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000345/0.7854, allocations: 360.4 kB / 0.518 GB, free: 76.95 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01364/0.7991, allocations: 18.16 MB / 0.5357 GB, free: 63.63 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002976/0.7994, allocations: 210.6 kB / 0.5359 GB, free: 63.59 MB / 395.1 MB Notification: Performance of pre-optimization done (n=29): time 2.224e-06/0.7994, allocations: 4.594 kB / 0.5359 GB, free: 63.58 MB / 395.1 MB Notification: Performance of matching and sorting (n=29): time 0.0007437/0.8002, allocations: 491 kB / 0.5364 GB, free: 63.44 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.027e-05/0.8003, allocations: 158.7 kB / 0.5365 GB, free: 63.25 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001172/0.8014, allocations: 1.116 MB / 0.5376 GB, free: 63.05 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 3.211e-05/0.8015, allocations: 25.7 kB / 0.5376 GB, free: 63.02 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005983/0.8021, allocations: 0.7237 MB / 0.5384 GB, free: 62.88 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.608e-05/0.8022, allocations: 96.67 kB / 0.5384 GB, free: 62.83 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.586e-05/0.8022, allocations: 0.8438 kB / 0.5384 GB, free: 62.83 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 6.061e-05/0.8023, allocations: 324.5 kB / 0.5388 GB, free: 62.52 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001445/0.8024, allocations: 100.6 kB / 0.5389 GB, free: 62.52 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002278/0.8026, allocations: 319.6 kB / 0.5392 GB, free: 62.26 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002108/0.8029, allocations: 145.8 kB / 0.5393 GB, free: 62.25 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.027e-06/0.8029, allocations: 0 / 0.5393 GB, free: 62.25 MB / 395.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007274/0.8036, allocations: 0.5994 MB / 0.5399 GB, free: 62.12 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.177e-05/0.8036, allocations: 14.2 kB / 0.5399 GB, free: 62.12 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.541e-05/0.8037, allocations: 39.53 kB / 0.5399 GB, free: 62.12 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002713/0.804, allocations: 131.7 kB / 0.5401 GB, free: 62.11 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003957/0.8044, allocations: 117.2 kB / 0.5402 GB, free: 62.11 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004784/0.8049, allocations: 0.7 MB / 0.5409 GB, free: 61.59 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006034/0.8055, allocations: 80 kB / 0.5409 GB, free: 61.58 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.11e-05/0.8055, allocations: 31.62 kB / 0.541 GB, free: 61.58 MB / 395.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 ($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 (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.0001206/0.8057, allocations: 135.5 kB / 0.5411 GB, free: 61.46 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001379/0.8058, allocations: 192.6 kB / 0.5413 GB, free: 61.37 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001359/0.8072, allocations: 0.6488 MB / 0.5419 GB, free: 61.3 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.655e-06/0.8072, allocations: 3.312 kB / 0.5419 GB, free: 61.3 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.725e-06/0.8072, allocations: 3.953 kB / 0.5419 GB, free: 61.3 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.222e-06/0.8072, allocations: 7.359 kB / 0.5419 GB, free: 61.3 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001396/0.8086, allocations: 1.163 MB / 0.5431 GB, free: 60.99 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.343e-05/0.8087, allocations: 33.34 kB / 0.5431 GB, free: 60.99 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002546/0.809, allocations: 65.62 kB / 0.5432 GB, free: 60.99 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001789/0.8091, allocations: 120.2 kB / 0.5433 GB, free: 60.98 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.152e-05/0.8092, allocations: 16.06 kB / 0.5433 GB, free: 60.98 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004112/0.8096, allocations: 0.6929 MB / 0.544 GB, free: 60.46 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.977e-06/0.8096, allocations: 1.938 kB / 0.544 GB, free: 60.46 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005792/0.8102, allocations: 0.6331 MB / 0.5446 GB, free: 60.15 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002937/0.8105, allocations: 286.8 kB / 0.5449 GB, free: 59.96 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001541/0.8107, allocations: 3.438 kB / 0.5449 GB, free: 59.96 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004386/0.8111, allocations: 36.3 kB / 0.5449 GB, free: 59.96 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.039e-05/0.8112, allocations: 53.08 kB / 0.5449 GB, free: 59.96 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.608e-05/0.8113, allocations: 19.41 kB / 0.545 GB, free: 59.96 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.0008298/0.8121, allocations: 0.8387 MB / 0.5458 GB, free: 59.81 MB / 395.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.8121, allocations: 0 / 0.5458 GB, free: 59.81 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.0008769/0.813, allocations: 345.9 kB / 0.5461 GB, free: 59.8 MB / 395.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) * 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.0009263/0.8139, allocations: 0.7092 MB / 0.5468 GB, free: 59.71 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.000641/0.8146, allocations: 402.9 kB / 0.5472 GB, free: 59.65 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.8146, allocations: 2.25 kB / 0.5472 GB, free: 59.65 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003334/0.8149, allocations: 228.5 kB / 0.5474 GB, free: 59.59 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006841/0.8156, allocations: 235.4 kB / 0.5476 GB, free: 59.57 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002292/0.8179, allocations: 1.511 MB / 0.5491 GB, free: 59.06 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006534/0.8186, allocations: 1.186 MB / 0.5503 GB, free: 58.35 MB / 395.1 MB Notification: Performance of simCode: alias equations: time 0.0005872/0.8192, allocations: 174.5 kB / 0.5504 GB, free: 58.33 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001296/0.8193, allocations: 77.25 kB / 0.5505 GB, free: 58.33 MB / 395.1 MB Notification: Performance of SimCode: time 2.81e-07/0.8193, allocations: 0 / 0.5505 GB, free: 58.33 MB / 395.1 MB Notification: Performance of Templates: time 0.02905/0.8484, allocations: 16.2 MB / 0.5663 GB, free: 57.27 MB / 395.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Inverter.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1)