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.005673/0.005673, allocations: 100.8 kB / 15.73 MB, free: 5.988 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.001153/0.001153, allocations: 197 kB / 16.67 MB, free: 5.926 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.372/1.372, allocations: 205.1 MB / 222.5 MB, free: 4.379 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.00114/0.00114, allocations: 49.75 kB / 326.5 MB, free: 14.46 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09541/0.09656, allocations: 46.63 MB / 373.2 MB, free: 1.328 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.007607/0.1042, allocations: 7.711 MB / 380.9 MB, free: 9.578 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02086/0.1251, allocations: 18.51 MB / 399.4 MB, free: 6.996 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00147/0.1266, allocations: 63.44 kB / 399.4 MB, free: 6.934 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002497/0.1292, allocations: 0.8399 MB / 400.3 MB, free: 6.086 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006107/0.1353, allocations: 1.789 MB / 402.1 MB, free: 4.285 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004035/0.1394, allocations: 1.291 MB / 403.4 MB, free: 2.988 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005739/0.1452, allocations: 3.179 MB / 406.5 MB, free: 15.8 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004744/0.1457, allocations: 236.6 kB / 406.8 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007824/0.1465, allocations: 0.5132 MB / 407.3 MB, free: 15.03 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006354/0.1471, allocations: 0.5435 MB / 407.8 MB, free: 14.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.852e-05/0.1472, allocations: 44 kB / 407.9 MB, free: 14.44 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003836/0.151, allocations: 1.132 MB / 409 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001875/0.1513, allocations: 170.8 kB / 409.2 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000706/0.152, allocations: 0.6871 MB / 409.9 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003732/0.1557, allocations: 2.219 MB / 412.1 MB, free: 10.22 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.967e-06/0.1557, allocations: 0 / 412.1 MB, free: 10.22 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.1558, allocations: 0 / 412.1 MB, free: 10.22 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.657e-05/0.1558, allocations: 0 / 412.1 MB, free: 10.22 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.003209/0.159, allocations: 2.024 MB / 414.1 MB, free: 8.133 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.231e-05/0.1591, allocations: 12.03 kB / 414.1 MB, free: 8.121 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002156/0.1593, allocations: 193.7 kB / 414.3 MB, free: 7.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001711/0.161, allocations: 1.358 MB / 415.7 MB, free: 6.5 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.364e-05/0.161, allocations: 24.5 kB / 415.7 MB, free: 6.477 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.854e-05/0.1611, allocations: 28 kB / 415.7 MB, free: 6.449 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009311/0.1621, allocations: 433.1 kB / 416.1 MB, free: 6.016 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.259e-05/0.1621, allocations: 0 / 416.1 MB, free: 6.016 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.6e-05/0.1621, allocations: 12 kB / 416.1 MB, free: 6.004 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.542e-05/0.1622, allocations: 12 kB / 416.2 MB, free: 5.992 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001085/0.1633, allocations: 478.1 kB / 416.6 MB, free: 5.523 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002688/0.166, allocations: 1.623 MB / 418.2 MB, free: 3.832 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009491/0.1669, allocations: 375.3 kB / 418.6 MB, free: 3.457 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007447/0.1677, allocations: 417.8 kB / 419 MB, free: 3.047 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01552/0.1832, allocations: 15.23 MB / 434.3 MB, free: 1.742 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006948/0.184, allocations: 263 kB / 434.5 MB, free: 1.473 MB / 366.1 MB Notification: Performance of pre-optimization done (n=29): time 3.466e-06/0.184, allocations: 0 / 434.5 MB, free: 1.473 MB / 366.1 MB Notification: Performance of matching and sorting (n=29): time 0.002237/0.1862, allocations: 0.8329 MB / 435.3 MB, free: 0.6094 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.695e-05/0.1863, allocations: 59.41 kB / 435.4 MB, free: 0.5391 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001758/0.188, allocations: 1.46 MB / 436.9 MB, free: 15.04 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.073e-05/0.1881, allocations: 37.7 kB / 436.9 MB, free: 15 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005674/0.1887, allocations: 0.7227 MB / 437.6 MB, free: 14.27 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.793e-05/0.1888, allocations: 94.78 kB / 437.7 MB, free: 14.18 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001734/0.189, allocations: 126 kB / 437.8 MB, free: 14.05 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001085/0.1891, allocations: 326 kB / 438.2 MB, free: 13.72 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004654/0.1895, allocations: 161 kB / 438.3 MB, free: 13.57 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005616/0.1901, allocations: 363.4 kB / 438.7 MB, free: 13.12 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009948/0.1911, allocations: 0.5371 MB / 439.2 MB, free: 12.49 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.1911, allocations: 0 / 439.2 MB, free: 12.49 MB / 382.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001495/0.1926, allocations: 0.7513 MB / 440 MB, free: 11.73 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.356e-05/0.1927, allocations: 9.094 kB / 440 MB, free: 11.72 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.663e-05/0.1927, allocations: 44 kB / 440 MB, free: 11.68 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003122/0.1931, allocations: 136.8 kB / 440.1 MB, free: 11.54 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004225/0.1935, allocations: 108.1 kB / 440.2 MB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005966/0.1941, allocations: 0.689 MB / 440.9 MB, free: 10.72 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005819/0.1947, allocations: 83.22 kB / 441 MB, free: 10.64 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.955e-05/0.1948, allocations: 35.98 kB / 441 MB, free: 10.6 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.0004432/0.1952, allocations: 277.6 kB / 441.3 MB, free: 10.32 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000172/0.1954, allocations: 185.8 kB / 441.5 MB, free: 10.14 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001763/0.1972, allocations: 0.7433 MB / 442.2 MB, free: 9.383 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.721e-06/0.1972, allocations: 0 / 442.2 MB, free: 9.383 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.1972, allocations: 0 / 442.2 MB, free: 9.383 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.608e-06/0.1972, allocations: 4 kB / 442.2 MB, free: 9.379 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00211/0.1993, allocations: 1.315 MB / 443.6 MB, free: 7.992 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.427e-05/0.1994, allocations: 32 kB / 443.6 MB, free: 7.961 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002696/0.1997, allocations: 44.02 kB / 443.6 MB, free: 7.918 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002341/0.1999, allocations: 136.8 kB / 443.8 MB, free: 7.781 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.692e-05/0.2, allocations: 19.98 kB / 443.8 MB, free: 7.762 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005463/0.2005, allocations: 0.6734 MB / 444.5 MB, free: 7.062 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.2005, allocations: 3.938 kB / 444.5 MB, free: 7.059 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001283/0.2018, allocations: 0.7123 MB / 445.2 MB, free: 6.316 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003611/0.2022, allocations: 282.7 kB / 445.5 MB, free: 6.02 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001657/0.2024, allocations: 15.92 kB / 445.5 MB, free: 6.004 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004458/0.2028, allocations: 19.97 kB / 445.5 MB, free: 5.984 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001452/0.203, allocations: 51.89 kB / 445.5 MB, free: 5.934 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.914e-05/0.203, allocations: 24 kB / 445.6 MB, free: 5.91 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001292/0.2043, allocations: 0.9614 MB / 446.5 MB, free: 4.93 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2044, allocations: 0 / 446.5 MB, free: 4.93 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009108/0.2053, allocations: 339.7 kB / 446.9 MB, free: 4.598 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.0008357/0.2061, allocations: 0.5739 MB / 447.4 MB, free: 4.012 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001364/0.2075, allocations: 0.5161 MB / 447.9 MB, free: 3.484 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.2075, allocations: 0 / 447.9 MB, free: 3.484 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006712/0.2082, allocations: 287.4 kB / 448.2 MB, free: 3.191 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001/0.2092, allocations: 271 kB / 448.5 MB, free: 2.922 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003489/0.2127, allocations: 2.214 MB / 450.7 MB, free: 0.668 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1997/0.4124, allocations: 1.151 MB / 451.9 MB, free: 74.62 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008083/0.4133, allocations: 197.9 kB / 452.1 MB, free: 74.61 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002256/0.4135, allocations: 87.81 kB / 452.1 MB, free: 74.6 MB / 382.1 MB Notification: Performance of SimCode: time 8.62e-07/0.4135, allocations: 0 / 452.1 MB, free: 74.6 MB / 382.1 MB Notification: Performance of Templates: time 0.03378/0.4473, allocations: 19.87 MB / 472 MB, free: 65.97 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)