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.007036/0.007036, allocations: 100.8 kB / 15.73 MB, free: 6.477 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.001325/0.001325, allocations: 189.9 kB / 16.67 MB, free: 6.391 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.5 MB, free: 4.57 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.001215/0.001215, allocations: 54.77 kB / 326.5 MB, free: 14.27 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09584/0.09706, allocations: 46.62 MB / 373.2 MB, free: 1.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.007793/0.1049, allocations: 7.711 MB / 380.9 MB, free: 9.59 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01988/0.1248, allocations: 18.51 MB / 399.4 MB, free: 7.012 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002014/0.1269, allocations: 67.44 kB / 399.4 MB, free: 6.945 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002688/0.1296, allocations: 0.832 MB / 400.3 MB, free: 6.105 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007334/0.137, allocations: 1.774 MB / 402 MB, free: 4.32 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004637/0.1417, allocations: 1.283 MB / 403.3 MB, free: 3.031 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0058/0.1475, allocations: 3.183 MB / 406.5 MB, free: 15.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000462/0.148, allocations: 220.6 kB / 406.7 MB, free: 15.6 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007335/0.1487, allocations: 0.5054 MB / 407.2 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005555/0.1493, allocations: 0.5591 MB / 407.8 MB, free: 14.53 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.265e-05/0.1494, allocations: 44 kB / 407.8 MB, free: 14.48 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003696/0.1531, allocations: 1.124 MB / 409 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001858/0.1533, allocations: 174.8 kB / 409.1 MB, free: 13.19 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006685/0.154, allocations: 0.6792 MB / 409.8 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003257/0.1572, allocations: 2.227 MB / 412 MB, free: 10.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.184e-06/0.1573, allocations: 4 kB / 412 MB, free: 10.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1573, allocations: 0 / 412 MB, free: 10.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.609e-05/0.1573, allocations: 0 / 412 MB, free: 10.27 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.002919/0.1602, allocations: 2.02 MB / 414.1 MB, free: 8.184 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.689e-05/0.1603, allocations: 8.031 kB / 414.1 MB, free: 8.176 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000205/0.1605, allocations: 193.7 kB / 414.3 MB, free: 7.984 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001785/0.1623, allocations: 1.362 MB / 415.6 MB, free: 6.551 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.384e-05/0.1623, allocations: 16.56 kB / 415.6 MB, free: 6.535 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.791e-05/0.1624, allocations: 31.98 kB / 415.7 MB, free: 6.504 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008753/0.1633, allocations: 429.2 kB / 416.1 MB, free: 6.074 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.244e-05/0.1633, allocations: 0 / 416.1 MB, free: 6.074 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.6e-05/0.1634, allocations: 8 kB / 416.1 MB, free: 6.066 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.769e-05/0.1634, allocations: 15.97 kB / 416.1 MB, free: 6.051 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001063/0.1645, allocations: 482 kB / 416.6 MB, free: 5.578 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002674/0.1672, allocations: 1.631 MB / 418.2 MB, free: 3.879 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009497/0.1681, allocations: 375.3 kB / 418.6 MB, free: 3.504 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000732/0.1689, allocations: 413.8 kB / 419 MB, free: 3.098 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01462/0.1835, allocations: 15.22 MB / 434.2 MB, free: 1.805 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006236/0.1842, allocations: 271 kB / 434.5 MB, free: 1.527 MB / 366.1 MB Notification: Performance of pre-optimization done (n=29): time 3.036e-06/0.1842, allocations: 0 / 434.5 MB, free: 1.527 MB / 366.1 MB Notification: Performance of matching and sorting (n=29): time 0.002176/0.1864, allocations: 0.8407 MB / 435.3 MB, free: 0.6562 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.326e-05/0.1864, allocations: 55.41 kB / 435.4 MB, free: 0.5898 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001878/0.1883, allocations: 1.468 MB / 436.8 MB, free: 15.08 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.018e-05/0.1884, allocations: 33.7 kB / 436.9 MB, free: 15.04 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005718/0.1889, allocations: 0.7226 MB / 437.6 MB, free: 14.32 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.446e-05/0.189, allocations: 82.81 kB / 437.7 MB, free: 14.23 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002021/0.1893, allocations: 130 kB / 437.8 MB, free: 14.1 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001101/0.1894, allocations: 322 kB / 438.1 MB, free: 13.78 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004715/0.1899, allocations: 165 kB / 438.3 MB, free: 13.62 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000603/0.1905, allocations: 363.4 kB / 438.6 MB, free: 13.17 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001055/0.1915, allocations: 0.5333 MB / 439.2 MB, free: 12.55 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.408e-06/0.1916, allocations: 4 kB / 439.2 MB, free: 12.54 MB / 382.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001734/0.1933, allocations: 0.755 MB / 439.9 MB, free: 11.78 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.241e-05/0.1933, allocations: 9.094 kB / 439.9 MB, free: 11.77 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.638e-05/0.1934, allocations: 39.98 kB / 440 MB, free: 11.73 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003286/0.1937, allocations: 141.2 kB / 440.1 MB, free: 11.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004293/0.1942, allocations: 111.8 kB / 440.2 MB, free: 11.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006156/0.1948, allocations: 0.6734 MB / 440.9 MB, free: 10.78 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006468/0.1955, allocations: 75.34 kB / 441 MB, free: 10.71 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.275e-05/0.1955, allocations: 36 kB / 441 MB, free: 10.67 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.0005271/0.1961, allocations: 281.6 kB / 441.3 MB, free: 10.39 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002913/0.1964, allocations: 185.8 kB / 441.4 MB, free: 10.2 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00192/0.1983, allocations: 0.7471 MB / 442.2 MB, free: 9.445 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.726e-06/0.1983, allocations: 7.984 kB / 442.2 MB, free: 9.438 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.1983, allocations: 0 / 442.2 MB, free: 9.438 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.1984, allocations: 3.984 kB / 442.2 MB, free: 9.434 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002485/0.2008, allocations: 1.315 MB / 443.5 MB, free: 8.047 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.49e-05/0.2009, allocations: 36.06 kB / 443.6 MB, free: 8.012 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002586/0.2012, allocations: 47.95 kB / 443.6 MB, free: 7.965 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002507/0.2014, allocations: 128.8 kB / 443.7 MB, free: 7.836 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.658e-05/0.2015, allocations: 16 kB / 443.7 MB, free: 7.82 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005535/0.202, allocations: 0.6811 MB / 444.4 MB, free: 7.113 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.2021, allocations: 0 / 444.4 MB, free: 7.113 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001442/0.2035, allocations: 0.7123 MB / 445.1 MB, free: 6.371 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005657/0.2041, allocations: 286.6 kB / 445.4 MB, free: 6.07 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002705/0.2044, allocations: 11.94 kB / 445.4 MB, free: 6.059 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005363/0.2049, allocations: 35.95 kB / 445.5 MB, free: 6.023 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001383/0.2051, allocations: 31.97 kB / 445.5 MB, free: 5.992 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.256e-05/0.2051, allocations: 27.98 kB / 445.5 MB, free: 5.965 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001638/0.2068, allocations: 0.9614 MB / 446.5 MB, free: 4.984 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.2068, allocations: 0 / 446.5 MB, free: 4.984 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001031/0.2078, allocations: 331.8 kB / 446.8 MB, free: 4.66 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.000927/0.2087, allocations: 0.5854 MB / 447.4 MB, free: 4.062 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00145/0.2102, allocations: 0.5161 MB / 447.9 MB, free: 3.535 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.2102, allocations: 4.125 kB / 447.9 MB, free: 3.531 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006963/0.2109, allocations: 287.2 kB / 448.2 MB, free: 3.238 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00109/0.212, allocations: 267 kB / 448.5 MB, free: 2.973 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003748/0.2158, allocations: 2.21 MB / 450.7 MB, free: 0.7227 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.203/0.4188, allocations: 1.145 MB / 451.8 MB, free: 74.29 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007818/0.4197, allocations: 203.2 kB / 452 MB, free: 74.28 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002393/0.4199, allocations: 89.27 kB / 452.1 MB, free: 74.27 MB / 382.1 MB Notification: Performance of SimCode: time 8.52e-07/0.4199, allocations: 0 / 452.1 MB, free: 74.27 MB / 382.1 MB Notification: Performance of Templates: time 0.03307/0.453, allocations: 19.87 MB / 472 MB, free: 65.52 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)