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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001087/0.001087, allocations: 110.6 kB / 16.62 MB, free: 6.961 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.001469/0.001469, allocations: 190 kB / 17.54 MB, free: 6.066 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.316/1.316, allocations: 205.1 MB / 223.4 MB, free: 12.45 MB / 190.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.002201/0.002201, allocations: 47.94 kB / 279.5 MB, free: 3.516 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1157/0.118, allocations: 46.63 MB / 326.1 MB, free: 4.816 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.008795/0.1268, allocations: 7.694 MB / 333.8 MB, free: 13.08 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02131/0.1482, allocations: 18.27 MB / 352.1 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001557/0.1497, allocations: 35.69 kB / 352.1 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002667/0.1525, allocations: 0.7399 MB / 352.9 MB, free: 9.965 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00663/0.1591, allocations: 1.527 MB / 354.4 MB, free: 8.43 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005202/0.1644, allocations: 1.114 MB / 355.5 MB, free: 7.309 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005155/0.1696, allocations: 3.222 MB / 358.7 MB, free: 4.078 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004184/0.17, allocations: 224.6 kB / 358.9 MB, free: 3.836 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006459/0.1707, allocations: 0.5015 MB / 359.5 MB, free: 3.332 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005185/0.1712, allocations: 0.5474 MB / 360 MB, free: 2.781 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.974e-05/0.1713, allocations: 44 kB / 360 MB, free: 2.738 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003541/0.1748, allocations: 1.124 MB / 361.2 MB, free: 1.613 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002085/0.1751, allocations: 170.8 kB / 361.3 MB, free: 1.445 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007048/0.1758, allocations: 0.687 MB / 362 MB, free: 0.7539 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003209/0.179, allocations: 2.199 MB / 364.2 MB, free: 14.55 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.179, allocations: 0 / 364.2 MB, free: 14.55 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.1791, allocations: 4 kB / 364.2 MB, free: 14.54 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.449e-05/0.1791, allocations: 0 / 364.2 MB, free: 14.54 MB / 318.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.003075/0.1822, allocations: 2.02 MB / 366.2 MB, free: 12.46 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.836e-05/0.1822, allocations: 11.97 kB / 366.3 MB, free: 12.45 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002518/0.1825, allocations: 197.6 kB / 366.4 MB, free: 12.25 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001928/0.1844, allocations: 1.37 MB / 367.8 MB, free: 10.81 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.072e-05/0.1845, allocations: 24.55 kB / 367.8 MB, free: 10.79 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.368e-05/0.1846, allocations: 27.91 kB / 367.9 MB, free: 10.76 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009268/0.1855, allocations: 437.1 kB / 368.3 MB, free: 10.32 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.222e-05/0.1855, allocations: 0 / 368.3 MB, free: 10.32 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.016e-05/0.1856, allocations: 15.98 kB / 368.3 MB, free: 10.31 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.387e-05/0.1856, allocations: 4 kB / 368.3 MB, free: 10.3 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001045/0.1867, allocations: 482.1 kB / 368.8 MB, free: 9.836 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003016/0.1897, allocations: 1.623 MB / 370.4 MB, free: 8.148 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000931/0.1907, allocations: 375.3 kB / 370.8 MB, free: 7.773 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007074/0.1914, allocations: 409.9 kB / 371.2 MB, free: 7.371 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2061/0.3975, allocations: 15.23 MB / 386.4 MB, free: 48.88 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006746/0.3982, allocations: 255.6 kB / 386.7 MB, free: 48.79 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 2.345e-06/0.3982, allocations: 0 / 386.7 MB, free: 48.79 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.002119/0.4003, allocations: 0.8444 MB / 387.5 MB, free: 48.53 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.448e-05/0.4004, allocations: 59 kB / 387.6 MB, free: 48.47 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001992/0.4024, allocations: 1.465 MB / 389 MB, free: 47.9 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.089e-05/0.4024, allocations: 32.75 kB / 389.1 MB, free: 47.86 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004717/0.4029, allocations: 0.7272 MB / 389.8 MB, free: 47.3 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.91e-05/0.403, allocations: 92.73 kB / 389.9 MB, free: 47.23 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001766/0.4032, allocations: 127.9 kB / 390 MB, free: 47.17 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.981e-05/0.4033, allocations: 328.7 kB / 390.3 MB, free: 46.86 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004308/0.4037, allocations: 160.1 kB / 390.5 MB, free: 46.82 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004891/0.4042, allocations: 356.6 kB / 390.8 MB, free: 46.53 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008711/0.4051, allocations: 0.5381 MB / 391.4 MB, free: 46.16 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.98e-06/0.4051, allocations: 2.656 kB / 391.4 MB, free: 46.16 MB / 318.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.00135/0.4064, allocations: 0.7535 MB / 392.1 MB, free: 45.87 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.228e-05/0.4065, allocations: 8.438 kB / 392.1 MB, free: 45.87 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.611e-05/0.4066, allocations: 42.91 kB / 392.2 MB, free: 45.87 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003149/0.4069, allocations: 134.6 kB / 392.3 MB, free: 45.84 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004248/0.4073, allocations: 111.2 kB / 392.4 MB, free: 45.83 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005166/0.4078, allocations: 0.6829 MB / 393.1 MB, free: 45.26 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005429/0.4084, allocations: 65.56 kB / 393.2 MB, free: 45.23 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.592e-05/0.4085, allocations: 34.72 kB / 393.2 MB, free: 45.23 MB / 318.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.0003764/0.4088, allocations: 280.5 kB / 393.5 MB, free: 45.02 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001781/0.409, allocations: 186.2 kB / 393.6 MB, free: 44.92 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001816/0.4109, allocations: 0.7504 MB / 394.4 MB, free: 44.68 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.099e-06/0.4109, allocations: 2.844 kB / 394.4 MB, free: 44.68 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.479e-06/0.4109, allocations: 3.938 kB / 394.4 MB, free: 44.68 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.4109, allocations: 2.672 kB / 394.4 MB, free: 44.68 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001776/0.4127, allocations: 1.32 MB / 395.7 MB, free: 43.91 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.715e-05/0.4127, allocations: 35.88 kB / 395.8 MB, free: 43.91 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002446/0.413, allocations: 49.42 kB / 395.8 MB, free: 43.89 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001966/0.4132, allocations: 127.2 kB / 395.9 MB, free: 43.85 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.275e-05/0.4132, allocations: 15.75 kB / 395.9 MB, free: 43.85 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003968/0.4136, allocations: 0.6663 MB / 396.6 MB, free: 43.27 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.4137, allocations: 5.188 kB / 396.6 MB, free: 43.27 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001163/0.4148, allocations: 0.713 MB / 397.3 MB, free: 42.85 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002911/0.4151, allocations: 282.2 kB / 397.6 MB, free: 42.61 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001555/0.4153, allocations: 11.19 kB / 397.6 MB, free: 42.61 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004159/0.4157, allocations: 30.61 kB / 397.6 MB, free: 42.59 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000109/0.4158, allocations: 37.73 kB / 397.7 MB, free: 42.58 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.368e-05/0.4159, allocations: 26.67 kB / 397.7 MB, free: 42.57 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0009697/0.4169, allocations: 0.9655 MB / 398.7 MB, free: 42.03 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4169, allocations: 0 / 398.7 MB, free: 42.03 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00089/0.4178, allocations: 331 kB / 399 MB, free: 42 MB / 318.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.0007036/0.4185, allocations: 0.5905 MB / 399.6 MB, free: 41.72 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001141/0.4196, allocations: 0.5136 MB / 400.1 MB, free: 41.48 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.4196, allocations: 3.562 kB / 400.1 MB, free: 41.48 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005444/0.4202, allocations: 297 kB / 400.4 MB, free: 41.33 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008806/0.4211, allocations: 260.6 kB / 400.6 MB, free: 41.18 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002728/0.4238, allocations: 2.634 MB / 403.3 MB, free: 39.25 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003707/0.4242, allocations: 1.153 MB / 404.4 MB, free: 38.06 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005586/0.4248, allocations: 210.3 kB / 404.6 MB, free: 37.86 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001154/0.4249, allocations: 91.38 kB / 404.7 MB, free: 37.77 MB / 318.1 MB Notification: Performance of SimCode: time 5.61e-07/0.4249, allocations: 0 / 404.7 MB, free: 37.77 MB / 318.1 MB Notification: Performance of Templates: time 0.02612/0.451, allocations: 19.65 MB / 424.4 MB, free: 18.12 MB / 318.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)