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.001186/0.001186, allocations: 179.3 kB / 16.38 MB, free: 5.762 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.208/1.208, allocations: 194.5 MB / 211.6 MB, free: 3.043 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.001457/0.001458, allocations: 112.2 kB / 256.9 MB, free: 4.359 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000308/0.000308, allocations: 8 kB / 310.6 MB, free: 14.94 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08069/0.08102, allocations: 44.5 MB / 355.1 MB, free: 2.344 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2744/0.3554, allocations: 97.56 MB / 452.6 MB, free: 8.25 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002451/0.3557, allocations: 76.12 kB / 452.7 MB, free: 8.211 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3257/0.6815, allocations: 89.46 MB / 0.5294 GB, free: 91.53 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.6815, allocations: 3.172 kB / 0.5294 GB, free: 91.53 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.013e-05/0.6815, allocations: 24.72 kB / 0.5295 GB, free: 91.53 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.003448/0.685, allocations: 1.961 MB / 0.5314 GB, free: 90.4 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.926e-05/0.685, allocations: 10.67 kB / 0.5314 GB, free: 90.4 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002136/0.6853, allocations: 198.7 kB / 0.5316 GB, free: 90.3 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001986/0.6873, allocations: 1.22 MB / 0.5328 GB, free: 89.89 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.69e-05/0.6873, allocations: 19.05 kB / 0.5328 GB, free: 89.89 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.519e-05/0.6874, allocations: 35.31 kB / 0.5328 GB, free: 89.88 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009424/0.6883, allocations: 0.501 MB / 0.5333 GB, free: 89.8 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.144e-05/0.6883, allocations: 0 / 0.5333 GB, free: 89.8 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.638e-05/0.6884, allocations: 11.27 kB / 0.5333 GB, free: 89.8 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.458e-05/0.6884, allocations: 12.3 kB / 0.5333 GB, free: 89.8 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001055/0.6895, allocations: 0.5092 MB / 0.5338 GB, free: 89.8 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002694/0.6922, allocations: 1.652 MB / 0.5355 GB, free: 89.43 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008143/0.693, allocations: 416.4 kB / 0.5359 GB, free: 89.4 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01512/0.7081, allocations: 18.11 MB / 0.5535 GB, free: 76.05 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005463/0.7087, allocations: 278 kB / 0.5538 GB, free: 76 MB / 394.7 MB Notification: Performance of pre-optimization done (n=29): time 2.033e-06/0.7087, allocations: 0 / 0.5538 GB, free: 76 MB / 394.7 MB Notification: Performance of matching and sorting (n=29): time 0.001827/0.7106, allocations: 0.8948 MB / 0.5547 GB, free: 75.77 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.133e-05/0.7106, allocations: 168 kB / 0.5548 GB, free: 75.58 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001213/0.7119, allocations: 1.224 MB / 0.556 GB, free: 75.38 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.553e-05/0.7119, allocations: 33.17 kB / 0.5561 GB, free: 75.34 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004336/0.7123, allocations: 0.7229 MB / 0.5568 GB, free: 75.18 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.29e-05/0.7124, allocations: 97.09 kB / 0.5569 GB, free: 75.12 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.357e-05/0.7124, allocations: 9.344 kB / 0.5569 GB, free: 75.12 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 5.159e-05/0.7125, allocations: 322.7 kB / 0.5572 GB, free: 74.82 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003718/0.7129, allocations: 177.1 kB / 0.5573 GB, free: 74.82 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004412/0.7133, allocations: 404.4 kB / 0.5577 GB, free: 74.54 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004087/0.7137, allocations: 222.8 kB / 0.5579 GB, free: 74.54 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.569e-06/0.7138, allocations: 2.188 kB / 0.5579 GB, free: 74.54 MB / 394.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001213/0.715, allocations: 0.7825 MB / 0.5587 GB, free: 74.39 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.701e-05/0.715, allocations: 10.41 kB / 0.5587 GB, free: 74.38 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.525e-05/0.7151, allocations: 40.78 kB / 0.5588 GB, free: 74.38 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00025/0.7153, allocations: 137.7 kB / 0.5589 GB, free: 74.37 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000374/0.7157, allocations: 115.5 kB / 0.559 GB, free: 74.36 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004029/0.7161, allocations: 0.6822 MB / 0.5597 GB, free: 73.83 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006666/0.7168, allocations: 86.41 kB / 0.5597 GB, free: 73.81 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.79e-05/0.7168, allocations: 30.91 kB / 0.5598 GB, free: 73.81 MB / 394.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.0003742/0.7172, allocations: 284.1 kB / 0.56 GB, free: 73.68 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001382/0.7174, allocations: 191.9 kB / 0.5602 GB, free: 73.58 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001739/0.7191, allocations: 0.8109 MB / 0.561 GB, free: 73.43 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.021e-06/0.7191, allocations: 3.938 kB / 0.561 GB, free: 73.43 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.129e-06/0.7191, allocations: 0 / 0.561 GB, free: 73.43 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.7192, allocations: 7.828 kB / 0.561 GB, free: 73.43 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001898/0.7211, allocations: 1.378 MB / 0.5624 GB, free: 73.05 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-05/0.7211, allocations: 38.84 kB / 0.5624 GB, free: 73.05 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002363/0.7213, allocations: 54.78 kB / 0.5625 GB, free: 73.05 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00018/0.7215, allocations: 129 kB / 0.5626 GB, free: 73.04 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.121e-05/0.7216, allocations: 19.5 kB / 0.5626 GB, free: 73.04 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003652/0.7219, allocations: 0.6691 MB / 0.5633 GB, free: 72.51 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.722, allocations: 0 / 0.5633 GB, free: 72.51 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001023/0.723, allocations: 0.7799 MB / 0.564 GB, free: 72.19 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004353/0.7234, allocations: 284.1 kB / 0.5643 GB, free: 72 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001448/0.7236, allocations: 7.25 kB / 0.5643 GB, free: 72 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004195/0.724, allocations: 46.36 kB / 0.5643 GB, free: 72 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001011/0.7241, allocations: 38.77 kB / 0.5644 GB, free: 72 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.549e-05/0.7242, allocations: 23.59 kB / 0.5644 GB, free: 72 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0008615/0.725, allocations: 0.9507 MB / 0.5653 GB, free: 71.76 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.725, allocations: 0 / 0.5653 GB, free: 71.76 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008702/0.7259, allocations: 361.6 kB / 0.5657 GB, free: 71.71 MB / 394.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.0007755/0.7267, allocations: 0.6384 MB / 0.5663 GB, free: 71.52 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001057/0.7278, allocations: 0.5469 MB / 0.5668 GB, free: 71.34 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.7278, allocations: 0 / 0.5668 GB, free: 71.34 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005257/0.7283, allocations: 315.4 kB / 0.5671 GB, free: 71.23 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006718/0.729, allocations: 239.1 kB / 0.5674 GB, free: 71.12 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002626/0.7316, allocations: 2.492 MB / 0.5698 GB, free: 69.76 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004064/0.7321, allocations: 1.183 MB / 0.571 GB, free: 69.03 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0005045/0.7326, allocations: 175.6 kB / 0.5711 GB, free: 68.98 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001027/0.7327, allocations: 80.44 kB / 0.5712 GB, free: 68.98 MB / 394.7 MB Notification: Performance of SimCode: time 3.71e-07/0.7327, allocations: 0 / 0.5712 GB, free: 68.98 MB / 394.7 MB Notification: Performance of Templates: time 0.02741/0.7601, allocations: 18.77 MB / 0.5895 GB, free: 65.45 MB / 394.7 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)