Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.1_Modelica.Electrical.Spice3.Examples.Inverter") translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="empty",numberOfIntervals=3998,variableFilter="",fileNamePrefix="Modelica_3.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.007659/0.007659, allocations: 104.7 kB / 15.74 MB, free: 6.484 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.001742/0.001742, allocations: 193.5 kB / 16.67 MB, free: 6.375 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.495/1.495, allocations: 205.1 MB / 222.6 MB, free: 4.5 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.001123/0.001123, allocations: 50.22 kB / 326.5 MB, free: 14.55 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09187/0.093, allocations: 46.62 MB / 373.2 MB, free: 1.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.007364/0.1004, allocations: 7.707 MB / 380.9 MB, free: 9.684 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0184/0.1189, allocations: 18.51 MB / 399.4 MB, free: 7.098 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001009/0.1199, allocations: 67.38 kB / 399.4 MB, free: 7.031 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002098/0.1221, allocations: 0.8281 MB / 400.3 MB, free: 6.195 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007652/0.1297, allocations: 1.77 MB / 402 MB, free: 4.414 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004432/0.1342, allocations: 1.287 MB / 403.3 MB, free: 3.121 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005059/0.1393, allocations: 3.179 MB / 406.5 MB, free: 15.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003631/0.1397, allocations: 228.6 kB / 406.7 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006077/0.1403, allocations: 0.5053 MB / 407.2 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005407/0.1408, allocations: 0.5513 MB / 407.8 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.463e-05/0.1409, allocations: 44 kB / 407.8 MB, free: 14.58 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004332/0.1453, allocations: 1.132 MB / 409 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002095/0.1455, allocations: 170.8 kB / 409.1 MB, free: 13.28 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007505/0.1463, allocations: 0.6793 MB / 409.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003367/0.1496, allocations: 2.227 MB / 412 MB, free: 10.36 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.275e-06/0.1497, allocations: 4 kB / 412 MB, free: 10.36 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.1497, allocations: 0 / 412 MB, free: 10.36 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.803e-05/0.1497, allocations: 4 kB / 412 MB, free: 10.35 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.003039/0.1527, allocations: 2.012 MB / 414.1 MB, free: 8.277 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.532e-05/0.1528, allocations: 8.031 kB / 414.1 MB, free: 8.27 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000223/0.153, allocations: 197.7 kB / 414.3 MB, free: 8.074 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001881/0.1549, allocations: 1.362 MB / 415.6 MB, free: 6.641 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.141e-05/0.155, allocations: 16.56 kB / 415.6 MB, free: 6.625 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.125e-05/0.1551, allocations: 28 kB / 415.7 MB, free: 6.598 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009031/0.156, allocations: 441.1 kB / 416.1 MB, free: 6.156 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.327e-05/0.156, allocations: 0 / 416.1 MB, free: 6.156 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.866e-05/0.156, allocations: 12 kB / 416.1 MB, free: 6.145 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.449e-05/0.1561, allocations: 15.92 kB / 416.1 MB, free: 6.129 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001067/0.1571, allocations: 474.1 kB / 416.6 MB, free: 5.664 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002586/0.1597, allocations: 1.623 MB / 418.2 MB, free: 3.973 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009172/0.1607, allocations: 375.3 kB / 418.6 MB, free: 3.598 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000732/0.1614, allocations: 417.8 kB / 419 MB, free: 3.188 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01451/0.1759, allocations: 15.23 MB / 434.2 MB, free: 1.883 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005998/0.1766, allocations: 263 kB / 434.5 MB, free: 1.613 MB / 366.1 MB Notification: Performance of pre-optimization done (n=29): time 2.435e-06/0.1766, allocations: 0 / 434.5 MB, free: 1.613 MB / 366.1 MB Notification: Performance of matching and sorting (n=29): time 0.002037/0.1786, allocations: 0.8446 MB / 435.3 MB, free: 0.7383 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.663e-05/0.1787, allocations: 59.41 kB / 435.4 MB, free: 0.668 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001573/0.1803, allocations: 1.464 MB / 436.8 MB, free: 15.17 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.777e-05/0.1803, allocations: 33.7 kB / 436.9 MB, free: 15.13 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005329/0.1808, allocations: 0.7188 MB / 437.6 MB, free: 14.4 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.326e-05/0.1809, allocations: 86.8 kB / 437.7 MB, free: 14.32 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000164/0.1811, allocations: 130 kB / 437.8 MB, free: 14.18 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001065/0.1812, allocations: 322 kB / 438.1 MB, free: 13.86 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004415/0.1817, allocations: 165 kB / 438.3 MB, free: 13.7 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005404/0.1822, allocations: 363.4 kB / 438.6 MB, free: 13.25 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009824/0.1832, allocations: 0.5332 MB / 439.2 MB, free: 12.63 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.771e-06/0.1832, allocations: 4 kB / 439.2 MB, free: 12.62 MB / 382.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001363/0.1846, allocations: 0.7587 MB / 439.9 MB, free: 11.86 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.733e-05/0.1846, allocations: 8 kB / 439.9 MB, free: 11.85 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.834e-05/0.1847, allocations: 39.98 kB / 440 MB, free: 11.81 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002963/0.185, allocations: 137.5 kB / 440.1 MB, free: 11.67 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004097/0.1854, allocations: 107.8 kB / 440.2 MB, free: 11.57 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000556/0.186, allocations: 0.6811 MB / 440.9 MB, free: 10.86 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005047/0.1865, allocations: 75.47 kB / 441 MB, free: 10.79 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.812e-05/0.1865, allocations: 36 kB / 441 MB, free: 10.75 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.0003574/0.1869, allocations: 281.4 kB / 441.3 MB, free: 10.46 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001755/0.1871, allocations: 189.8 kB / 441.5 MB, free: 10.28 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001767/0.1889, allocations: 0.7354 MB / 442.2 MB, free: 9.531 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.326e-06/0.1889, allocations: 4 kB / 442.2 MB, free: 9.527 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.1889, allocations: 0 / 442.2 MB, free: 9.527 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.1889, allocations: 0 / 442.2 MB, free: 9.527 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002288/0.1912, allocations: 1.323 MB / 443.5 MB, free: 8.133 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.25e-05/0.1913, allocations: 32 kB / 443.6 MB, free: 8.102 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002605/0.1915, allocations: 47.95 kB / 443.6 MB, free: 8.055 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002431/0.1918, allocations: 128.8 kB / 443.7 MB, free: 7.926 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.022e-05/0.1918, allocations: 24.06 kB / 443.8 MB, free: 7.902 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006018/0.1925, allocations: 0.6694 MB / 444.4 MB, free: 7.207 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.1925, allocations: 3.938 kB / 444.4 MB, free: 7.203 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001369/0.1938, allocations: 0.7123 MB / 445.1 MB, free: 6.461 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004152/0.1943, allocations: 290.6 kB / 445.4 MB, free: 6.156 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001352/0.1944, allocations: 12 kB / 445.4 MB, free: 6.145 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004172/0.1948, allocations: 27.97 kB / 445.5 MB, free: 6.117 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001188/0.195, allocations: 39.89 kB / 445.5 MB, free: 6.078 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.402e-05/0.195, allocations: 24 kB / 445.5 MB, free: 6.055 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001122/0.1961, allocations: 0.9653 MB / 446.5 MB, free: 5.07 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1962, allocations: 0 / 446.5 MB, free: 5.07 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008411/0.197, allocations: 335.8 kB / 446.8 MB, free: 4.742 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.0008018/0.1978, allocations: 0.57 MB / 447.4 MB, free: 4.16 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001287/0.1991, allocations: 0.5277 MB / 447.9 MB, free: 3.621 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.1991, allocations: 0 / 447.9 MB, free: 3.621 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006383/0.1998, allocations: 291.2 kB / 448.2 MB, free: 3.324 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009466/0.2007, allocations: 271.2 kB / 448.5 MB, free: 3.055 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003165/0.2039, allocations: 2.21 MB / 450.7 MB, free: 0.8047 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.192/0.3959, allocations: 1.148 MB / 451.8 MB, free: 74.66 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000731/0.3967, allocations: 198.1 kB / 452 MB, free: 74.65 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002207/0.3969, allocations: 89.73 kB / 452.1 MB, free: 74.64 MB / 382.1 MB Notification: Performance of SimCode: time 1.372e-06/0.3969, allocations: 0.5625 kB / 452.1 MB, free: 74.64 MB / 382.1 MB Notification: Performance of Templates: time 0.03023/0.4272, allocations: 19.87 MB / 472 MB, free: 65.99 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.Inverter.makefile (rm -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_3.1_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1)