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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007377/0.007377, allocations: 99.91 kB / 15.73 MB, free: 6.023 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001092/0.001092, allocations: 187.6 kB / 16.67 MB, free: 5.961 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.392/1.392, allocations: 205.1 MB / 222.5 MB, free: 4.383 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001498/0.001498, allocations: 49.77 kB / 326.5 MB, free: 14.46 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09646/0.09797, allocations: 46.62 MB / 373.2 MB, free: 1.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.008039/0.106, allocations: 7.711 MB / 380.9 MB, free: 9.574 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01941/0.1255, allocations: 18.51 MB / 399.4 MB, free: 6.988 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001288/0.1268, allocations: 63.44 kB / 399.4 MB, free: 6.926 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00268/0.1296, allocations: 0.832 MB / 400.3 MB, free: 6.086 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005776/0.1354, allocations: 1.774 MB / 402 MB, free: 4.301 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004506/0.1399, allocations: 1.287 MB / 403.3 MB, free: 3.008 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005782/0.1457, allocations: 3.183 MB / 406.5 MB, free: 15.81 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004327/0.1462, allocations: 224.5 kB / 406.7 MB, free: 15.57 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007512/0.1469, allocations: 0.5172 MB / 407.3 MB, free: 15.05 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000562/0.1475, allocations: 0.5474 MB / 407.8 MB, free: 14.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.584e-05/0.1476, allocations: 40 kB / 407.8 MB, free: 14.46 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003241/0.1508, allocations: 1.132 MB / 409 MB, free: 13.33 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001647/0.151, allocations: 166.8 kB / 409.1 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000589/0.1516, allocations: 0.6793 MB / 409.8 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00276/0.1544, allocations: 2.234 MB / 412 MB, free: 10.24 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.1544, allocations: 0 / 412 MB, free: 10.24 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.1544, allocations: 0 / 412 MB, free: 10.24 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.475e-05/0.1544, allocations: 0 / 412 MB, free: 10.24 MB / 350.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.002866/0.1573, allocations: 2.016 MB / 414.1 MB, free: 8.16 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.429e-05/0.1573, allocations: 8.031 kB / 414.1 MB, free: 8.152 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000198/0.1576, allocations: 197.7 kB / 414.3 MB, free: 7.957 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001776/0.1593, allocations: 1.366 MB / 415.6 MB, free: 6.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.618e-05/0.1594, allocations: 24.55 kB / 415.7 MB, free: 6.496 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.005e-05/0.1595, allocations: 27.94 kB / 415.7 MB, free: 6.469 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008658/0.1603, allocations: 433.1 kB / 416.1 MB, free: 6.035 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.1603, allocations: 0 / 416.1 MB, free: 6.035 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.284e-05/0.1604, allocations: 15.98 kB / 416.1 MB, free: 6.02 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.152e-05/0.1604, allocations: 8 kB / 416.1 MB, free: 6.012 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001056/0.1615, allocations: 474.1 kB / 416.6 MB, free: 5.547 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002676/0.1642, allocations: 1.627 MB / 418.2 MB, free: 3.852 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009271/0.1651, allocations: 379.3 kB / 418.6 MB, free: 3.473 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007094/0.1658, allocations: 413.8 kB / 419 MB, free: 3.066 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01509/0.1809, allocations: 15.23 MB / 434.2 MB, free: 1.766 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006335/0.1816, allocations: 263 kB / 434.5 MB, free: 1.496 MB / 366.1 MB Notification: Performance of pre-optimization done (n=29): time 2.294e-06/0.1816, allocations: 0 / 434.5 MB, free: 1.496 MB / 366.1 MB Notification: Performance of matching and sorting (n=29): time 0.0021/0.1837, allocations: 0.8407 MB / 435.3 MB, free: 0.625 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.52e-05/0.1838, allocations: 63.39 kB / 435.4 MB, free: 0.5508 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001662/0.1855, allocations: 1.464 MB / 436.8 MB, free: 15.05 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.222e-05/0.1855, allocations: 29.7 kB / 436.9 MB, free: 15.02 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005627/0.1861, allocations: 0.7188 MB / 437.6 MB, free: 14.29 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.316e-05/0.1862, allocations: 94.8 kB / 437.7 MB, free: 14.2 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001748/0.1863, allocations: 130 kB / 437.8 MB, free: 14.06 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001168/0.1865, allocations: 326 kB / 438.1 MB, free: 13.74 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000439/0.1869, allocations: 161 kB / 438.3 MB, free: 13.58 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005438/0.1875, allocations: 363.4 kB / 438.6 MB, free: 13.13 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009647/0.1884, allocations: 0.5293 MB / 439.2 MB, free: 12.51 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.833e-06/0.1885, allocations: 4 kB / 439.2 MB, free: 12.51 MB / 382.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.00143/0.1899, allocations: 0.7585 MB / 439.9 MB, free: 11.74 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.538e-05/0.1899, allocations: 8.844 kB / 439.9 MB, free: 11.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.117e-05/0.19, allocations: 44 kB / 440 MB, free: 11.69 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003011/0.1903, allocations: 132.8 kB / 440.1 MB, free: 11.55 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004018/0.1907, allocations: 103.8 kB / 440.2 MB, free: 11.45 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000557/0.1913, allocations: 0.6773 MB / 440.9 MB, free: 10.75 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005236/0.1918, allocations: 83.33 kB / 441 MB, free: 10.67 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.937e-05/0.1919, allocations: 39.94 kB / 441 MB, free: 10.63 MB / 382.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 (vin.counter,$PRE.vin.counter,v.counter,$PRE.v.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin.counter2,$PRE.vin.counter2,vin.T0,$PRE.vin.T0,$whenCondition1,$whenCondition2) * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0003794/0.1923, allocations: 277.5 kB / 441.3 MB, free: 10.35 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001679/0.1925, allocations: 185.8 kB / 441.5 MB, free: 10.16 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001733/0.1942, allocations: 0.7393 MB / 442.2 MB, free: 9.414 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.923e-06/0.1942, allocations: 8 kB / 442.2 MB, free: 9.406 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.1942, allocations: 0 / 442.2 MB, free: 9.406 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.433e-06/0.1942, allocations: 3.984 kB / 442.2 MB, free: 9.402 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002141/0.1964, allocations: 1.311 MB / 443.5 MB, free: 8.02 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-05/0.1964, allocations: 36 kB / 443.6 MB, free: 7.984 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002517/0.1967, allocations: 47.94 kB / 443.6 MB, free: 7.938 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002573/0.197, allocations: 136.8 kB / 443.7 MB, free: 7.801 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.764e-05/0.197, allocations: 16 kB / 443.8 MB, free: 7.785 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005737/0.1976, allocations: 0.6734 MB / 444.4 MB, free: 7.086 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.095e-06/0.1976, allocations: 3.938 kB / 444.4 MB, free: 7.082 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001394/0.199, allocations: 0.7162 MB / 445.2 MB, free: 6.336 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004806/0.1995, allocations: 286.6 kB / 445.4 MB, free: 6.035 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001312/0.1997, allocations: 4 kB / 445.4 MB, free: 6.031 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004304/0.2001, allocations: 31.95 kB / 445.5 MB, free: 6 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001118/0.2002, allocations: 43.91 kB / 445.5 MB, free: 5.957 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.358e-05/0.2003, allocations: 19.98 kB / 445.5 MB, free: 5.938 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001198/0.2015, allocations: 0.9653 MB / 446.5 MB, free: 4.953 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2015, allocations: 4 kB / 446.5 MB, free: 4.949 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001021/0.2025, allocations: 335.8 kB / 446.8 MB, free: 4.621 MB / 382.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) * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009214/0.2035, allocations: 0.5816 MB / 447.4 MB, free: 4.027 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001338/0.2048, allocations: 0.5161 MB / 447.9 MB, free: 3.5 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.2048, allocations: 0 / 447.9 MB, free: 3.5 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006747/0.2055, allocations: 291.5 kB / 448.2 MB, free: 3.203 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009518/0.2065, allocations: 258.9 kB / 448.5 MB, free: 2.945 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003263/0.2097, allocations: 2.222 MB / 450.7 MB, free: 0.6836 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1848/0.3946, allocations: 1.142 MB / 451.8 MB, free: 74.66 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008292/0.3954, allocations: 198.7 kB / 452 MB, free: 74.65 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002402/0.3957, allocations: 91.64 kB / 452.1 MB, free: 74.64 MB / 382.1 MB Notification: Performance of SimCode: time 9.11e-07/0.3957, allocations: 0 / 452.1 MB, free: 74.64 MB / 382.1 MB Notification: Performance of Templates: time 0.0368/0.4325, allocations: 20.24 MB / 472.4 MB, free: 65.6 MB / 382.1 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)