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.006612/0.006612, allocations: 98.27 kB / 15.73 MB, free: 6.004 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.001236/0.001236, allocations: 192.9 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.409/1.409, allocations: 205.1 MB / 222.5 MB, free: 4.48 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: 51 kB / 326.5 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09218/0.09332, allocations: 46.63 MB / 373.2 MB, free: 1.324 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.008217/0.1016, allocations: 7.711 MB / 380.9 MB, free: 9.574 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02119/0.1228, allocations: 18.51 MB / 399.4 MB, free: 6.988 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001805/0.1247, allocations: 63.44 kB / 399.4 MB, free: 6.926 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002602/0.1273, allocations: 0.8243 MB / 400.3 MB, free: 6.094 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006194/0.1336, allocations: 1.782 MB / 402 MB, free: 4.301 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004204/0.1378, allocations: 1.287 MB / 403.3 MB, free: 3.008 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005359/0.1432, allocations: 3.183 MB / 406.5 MB, free: 15.81 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004161/0.1436, allocations: 220.7 kB / 406.7 MB, free: 15.57 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007184/0.1443, allocations: 0.5054 MB / 407.2 MB, free: 15.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006037/0.145, allocations: 0.5435 MB / 407.8 MB, free: 14.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001059/0.1451, allocations: 44 kB / 407.8 MB, free: 14.48 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003555/0.1486, allocations: 1.132 MB / 409 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001874/0.1488, allocations: 170.7 kB / 409.1 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000667/0.1495, allocations: 0.6832 MB / 409.8 MB, free: 12.49 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003409/0.1529, allocations: 2.241 MB / 412.1 MB, free: 10.24 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.112e-06/0.153, allocations: 4 kB / 412.1 MB, free: 10.23 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.153, allocations: 3.938 kB / 412.1 MB, free: 10.23 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.646e-05/0.153, allocations: 0 / 412.1 MB, free: 10.23 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.002785/0.1558, allocations: 2.085 MB / 414.1 MB, free: 8.082 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.168e-05/0.1558, allocations: 8.031 kB / 414.2 MB, free: 8.074 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002073/0.156, allocations: 206.7 kB / 414.4 MB, free: 7.871 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001691/0.1577, allocations: 1.379 MB / 415.7 MB, free: 6.422 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.607e-05/0.1578, allocations: 16.56 kB / 415.7 MB, free: 6.406 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.507e-05/0.1579, allocations: 32 kB / 415.8 MB, free: 6.375 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009149/0.1588, allocations: 429.2 kB / 416.2 MB, free: 5.945 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.326e-05/0.1588, allocations: 3.938 kB / 416.2 MB, free: 5.941 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.451e-05/0.1589, allocations: 8 kB / 416.2 MB, free: 5.934 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.401e-05/0.1589, allocations: 12 kB / 416.2 MB, free: 5.922 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001052/0.1599, allocations: 478.1 kB / 416.7 MB, free: 5.453 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002636/0.1626, allocations: 1.631 MB / 418.3 MB, free: 3.754 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008978/0.1635, allocations: 371.3 kB / 418.7 MB, free: 3.383 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006993/0.1642, allocations: 409.9 kB / 419.1 MB, free: 2.98 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0147/0.1789, allocations: 15.24 MB / 434.3 MB, free: 1.672 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006267/0.1796, allocations: 267 kB / 434.6 MB, free: 1.398 MB / 366.1 MB Notification: Performance of pre-optimization done (n=29): time 2.415e-06/0.1796, allocations: 0 / 434.6 MB, free: 1.398 MB / 366.1 MB Notification: Performance of matching and sorting (n=29): time 0.002021/0.1816, allocations: 0.8457 MB / 435.4 MB, free: 0.5234 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.321e-05/0.1817, allocations: 67.38 kB / 435.5 MB, free: 456 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001606/0.1833, allocations: 1.456 MB / 436.9 MB, free: 14.95 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.506e-05/0.1833, allocations: 37.7 kB / 437 MB, free: 14.91 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005773/0.1839, allocations: 0.7233 MB / 437.7 MB, free: 14.18 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.215e-05/0.184, allocations: 107.1 kB / 437.8 MB, free: 14.07 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001702/0.1842, allocations: 126.1 kB / 437.9 MB, free: 13.95 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001087/0.1843, allocations: 326 kB / 438.3 MB, free: 13.62 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004517/0.1848, allocations: 165 kB / 438.4 MB, free: 13.46 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000552/0.1853, allocations: 359.4 kB / 438.8 MB, free: 13.02 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009662/0.1863, allocations: 0.5333 MB / 439.3 MB, free: 12.39 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.703e-06/0.1863, allocations: 4 kB / 439.3 MB, free: 12.39 MB / 382.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001459/0.1878, allocations: 0.76 MB / 440.1 MB, free: 11.62 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.04e-05/0.1878, allocations: 9.094 kB / 440.1 MB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-05/0.1879, allocations: 44 kB / 440.1 MB, free: 11.57 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000319/0.1882, allocations: 132.8 kB / 440.2 MB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004109/0.1887, allocations: 112.1 kB / 440.4 MB, free: 11.32 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007179/0.1894, allocations: 0.6811 MB / 441 MB, free: 10.62 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005514/0.1899, allocations: 71.58 kB / 441.1 MB, free: 10.55 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.973e-05/0.19, allocations: 36 kB / 441.1 MB, free: 10.51 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.000398/0.1904, allocations: 277.6 kB / 441.4 MB, free: 10.23 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001809/0.1906, allocations: 198.7 kB / 441.6 MB, free: 10.04 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00178/0.1924, allocations: 0.751 MB / 442.4 MB, free: 9.273 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.475e-06/0.1924, allocations: 4 kB / 442.4 MB, free: 9.27 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.1924, allocations: 64 / 442.4 MB, free: 9.27 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.802e-06/0.1925, allocations: 4 kB / 442.4 MB, free: 9.266 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002203/0.1947, allocations: 1.315 MB / 443.7 MB, free: 7.879 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.932e-05/0.1947, allocations: 36 kB / 443.7 MB, free: 7.844 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002413/0.195, allocations: 52 kB / 443.8 MB, free: 7.793 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002514/0.1952, allocations: 124.8 kB / 443.9 MB, free: 7.668 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.857e-05/0.1953, allocations: 23.92 kB / 443.9 MB, free: 7.645 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005529/0.1958, allocations: 0.6695 MB / 444.6 MB, free: 6.949 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.1959, allocations: 0 / 444.6 MB, free: 6.949 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001235/0.1971, allocations: 0.725 MB / 445.3 MB, free: 6.195 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000335/0.1974, allocations: 287.7 kB / 445.6 MB, free: 5.895 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001452/0.1976, allocations: 19.86 kB / 445.6 MB, free: 5.875 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004155/0.198, allocations: 31.97 kB / 445.6 MB, free: 5.844 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001104/0.1981, allocations: 39.95 kB / 445.7 MB, free: 5.805 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.414e-05/0.1982, allocations: 23.94 kB / 445.7 MB, free: 5.781 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001152/0.1993, allocations: 0.9692 MB / 446.7 MB, free: 4.793 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1994, allocations: 0 / 446.7 MB, free: 4.793 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008724/0.2002, allocations: 331.6 kB / 447 MB, free: 4.469 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.0008636/0.2011, allocations: 0.5775 MB / 447.6 MB, free: 3.879 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00132/0.2024, allocations: 0.5083 MB / 448.1 MB, free: 3.359 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.2024, allocations: 0 / 448.1 MB, free: 3.359 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006344/0.2031, allocations: 295.3 kB / 448.4 MB, free: 3.059 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009479/0.204, allocations: 271 kB / 448.6 MB, free: 2.789 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003103/0.2072, allocations: 2.254 MB / 450.9 MB, free: 0.4922 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1899/0.397, allocations: 1.147 MB / 452 MB, free: 74.61 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000874/0.398, allocations: 199.8 kB / 452.2 MB, free: 74.59 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002335/0.3982, allocations: 87.38 kB / 452.3 MB, free: 74.58 MB / 382.1 MB Notification: Performance of SimCode: time 1.603e-06/0.3982, allocations: 4.406 kB / 452.3 MB, free: 74.58 MB / 382.1 MB Notification: Performance of Templates: time 0.03228/0.4305, allocations: 19.87 MB / 472.2 MB, free: 65.9 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)