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.00156/0.001561, allocations: 182 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.499/1.499, allocations: 194.3 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.001572/0.001572, allocations: 116.7 kB / 253.5 MB, free: 9.582 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.078e-05/3.081e-05, allocations: 8 kB / 304.9 MB, free: 29.78 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08357/0.08361, allocations: 44.5 MB / 349.4 MB, free: 1.262 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.356/0.4396, allocations: 97.47 MB / 446.9 MB, free: 14.11 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003103/0.44, allocations: 70.64 kB / 447 MB, free: 14.07 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1826/0.6226, allocations: 89.34 MB / 0.5237 GB, free: 11.1 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.6227, allocations: 0 / 0.5237 GB, free: 11.1 MB / 394.7 MB Notification: Performance of Transformations before backend: time 8.629e-05/0.6228, allocations: 24 kB / 0.5238 GB, free: 11.08 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.005417/0.6282, allocations: 1.614 MB / 0.5253 GB, free: 9.41 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.376e-05/0.6283, allocations: 12.03 kB / 0.5254 GB, free: 9.398 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005807/0.6289, allocations: 193.7 kB / 0.5255 GB, free: 9.207 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003206/0.6321, allocations: 1.219 MB / 0.5267 GB, free: 7.918 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.793e-05/0.6322, allocations: 16.56 kB / 0.5268 GB, free: 7.902 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001204/0.6323, allocations: 31.98 kB / 0.5268 GB, free: 7.871 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001071/0.6334, allocations: 443.6 kB / 0.5272 GB, free: 7.414 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.429e-05/0.6334, allocations: 0 / 0.5272 GB, free: 7.414 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.542e-05/0.6335, allocations: 12 kB / 0.5272 GB, free: 7.402 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.255e-05/0.6335, allocations: 11.98 kB / 0.5272 GB, free: 7.391 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000947/0.6345, allocations: 370.4 kB / 0.5276 GB, free: 7.031 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004846/0.6393, allocations: 1.658 MB / 0.5292 GB, free: 5.301 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007561/0.6401, allocations: 283.4 kB / 0.5295 GB, free: 5.016 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000909/0.6411, allocations: 365.9 kB / 0.5298 GB, free: 4.656 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2781/0.9192, allocations: 18.19 MB / 0.5476 GB, free: 76.95 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003751/0.9196, allocations: 196.7 kB / 0.5478 GB, free: 76.9 MB / 394.7 MB Notification: Performance of pre-optimization done (n=29): time 3.276e-06/0.9196, allocations: 0 / 0.5478 GB, free: 76.9 MB / 394.7 MB Notification: Performance of matching and sorting (n=29): time 0.001035/0.9206, allocations: 0.492 MB / 0.5482 GB, free: 76.77 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.276e-05/0.9207, allocations: 168.6 kB / 0.5484 GB, free: 76.58 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00182/0.9226, allocations: 1.211 MB / 0.5496 GB, free: 76.36 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.029e-05/0.9226, allocations: 35.92 kB / 0.5496 GB, free: 76.33 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005148/0.9231, allocations: 0.7172 MB / 0.5503 GB, free: 76.19 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.598e-05/0.9232, allocations: 94.23 kB / 0.5504 GB, free: 76.14 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.575e-05/0.9233, allocations: 12.5 kB / 0.5504 GB, free: 76.14 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 6.415e-05/0.9233, allocations: 326.5 kB / 0.5507 GB, free: 75.84 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001987/0.9235, allocations: 104.4 kB / 0.5508 GB, free: 75.84 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002962/0.9238, allocations: 334.7 kB / 0.5512 GB, free: 75.57 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002715/0.9241, allocations: 153.2 kB / 0.5513 GB, free: 75.57 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.552e-06/0.9241, allocations: 1.375 kB / 0.5513 GB, free: 75.57 MB / 394.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001065/0.9252, allocations: 0.6586 MB / 0.552 GB, free: 75.44 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.452e-05/0.9252, allocations: 6.875 kB / 0.552 GB, free: 75.44 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.976e-05/0.9253, allocations: 42.12 kB / 0.552 GB, free: 75.44 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003417/0.9257, allocations: 132.9 kB / 0.5521 GB, free: 75.43 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004408/0.9261, allocations: 119.3 kB / 0.5522 GB, free: 75.43 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000532/0.9267, allocations: 0.6888 MB / 0.5529 GB, free: 74.91 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007025/0.9274, allocations: 76.19 kB / 0.553 GB, free: 74.89 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.751e-05/0.9275, allocations: 38.78 kB / 0.553 GB, free: 74.89 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 () * 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.0001434/0.9276, allocations: 145.2 kB / 0.5532 GB, free: 74.79 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002261/0.9278, allocations: 188 kB / 0.5533 GB, free: 74.69 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001586/0.9294, allocations: 0.6822 MB / 0.554 GB, free: 74.62 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.564e-06/0.9295, allocations: 2.75 kB / 0.554 GB, free: 74.62 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.9295, allocations: 3.188 kB / 0.554 GB, free: 74.62 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.828e-06/0.9295, allocations: 0 / 0.554 GB, free: 74.62 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001923/0.9314, allocations: 1.245 MB / 0.5552 GB, free: 74.26 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.394e-05/0.9315, allocations: 33.69 kB / 0.5553 GB, free: 74.26 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002746/0.9318, allocations: 64.66 kB / 0.5553 GB, free: 74.26 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002554/0.932, allocations: 119.4 kB / 0.5554 GB, free: 74.25 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.035e-05/0.9321, allocations: 17.5 kB / 0.5554 GB, free: 74.25 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004676/0.9325, allocations: 0.6778 MB / 0.5561 GB, free: 73.73 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.11e-06/0.9326, allocations: 1.031 kB / 0.5561 GB, free: 73.73 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008555/0.9334, allocations: 0.6454 MB / 0.5567 GB, free: 73.42 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005088/0.9339, allocations: 291.8 kB / 0.557 GB, free: 73.23 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002534/0.9342, allocations: 6.594 kB / 0.557 GB, free: 73.23 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005517/0.9348, allocations: 45.42 kB / 0.5571 GB, free: 73.23 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001253/0.9349, allocations: 41.58 kB / 0.5571 GB, free: 73.23 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.426e-05/0.935, allocations: 21.38 kB / 0.5571 GB, free: 73.23 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001408/0.9364, allocations: 0.9311 MB / 0.558 GB, free: 73.07 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.9364, allocations: 0 / 0.558 GB, free: 73.07 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00126/0.9376, allocations: 366.9 kB / 0.5584 GB, free: 73.07 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) * 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.001208/0.9389, allocations: 0.6247 MB / 0.559 GB, free: 72.96 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0007948/0.9397, allocations: 420 kB / 0.5594 GB, free: 72.9 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.9397, allocations: 2.5 kB / 0.5594 GB, free: 72.9 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003961/0.9401, allocations: 238.2 kB / 0.5596 GB, free: 72.84 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008425/0.9409, allocations: 251.6 kB / 0.5599 GB, free: 72.82 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00233/0.9433, allocations: 1.52 MB / 0.5614 GB, free: 72.3 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006372/0.9439, allocations: 1.181 MB / 0.5625 GB, free: 71.59 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.000646/0.9446, allocations: 174.8 kB / 0.5627 GB, free: 71.58 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001299/0.9447, allocations: 76.19 kB / 0.5627 GB, free: 71.57 MB / 394.7 MB Notification: Performance of SimCode: time 4.81e-07/0.9447, allocations: 0 / 0.5627 GB, free: 71.57 MB / 394.7 MB Notification: Performance of Templates: time 0.03196/0.9767, allocations: 19.98 MB / 0.5823 GB, free: 70.39 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)