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.0008557/0.0008558, allocations: 89.25 kB / 16.65 MB, free: 6.59 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.001041/0.001041, allocations: 181.8 kB / 17.56 MB, free: 6.203 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.392/1.392, allocations: 205.4 MB / 223.7 MB, free: 13.08 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.0006918/0.0006921, allocations: 12 kB / 280.7 MB, free: 3.426 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09309/0.0938, allocations: 47.59 MB / 328.3 MB, free: 3.77 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.006318/0.1002, allocations: 7.243 MB / 335.6 MB, free: 12.48 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01847/0.1187, allocations: 18.4 MB / 354 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001092/0.1198, allocations: 31.75 kB / 354 MB, free: 9.98 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002289/0.1221, allocations: 0.7603 MB / 354.8 MB, free: 9.223 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005478/0.1276, allocations: 1.461 MB / 356.2 MB, free: 7.746 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003799/0.1314, allocations: 1.071 MB / 357.3 MB, free: 6.672 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00447/0.1359, allocations: 3.124 MB / 360.4 MB, free: 3.539 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003501/0.1363, allocations: 217.1 kB / 360.6 MB, free: 3.309 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005851/0.1369, allocations: 489.4 kB / 361.1 MB, free: 2.828 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005017/0.1374, allocations: 0.524 MB / 361.6 MB, free: 2.301 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.305e-05/0.1374, allocations: 28 kB / 361.7 MB, free: 2.273 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003253/0.1407, allocations: 1.116 MB / 362.8 MB, free: 1.156 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001469/0.1409, allocations: 150.8 kB / 362.9 MB, free: 1.008 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005652/0.1414, allocations: 0.6887 MB / 363.6 MB, free: 316 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002607/0.1441, allocations: 2.136 MB / 365.7 MB, free: 14.16 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.1441, allocations: 0 / 365.7 MB, free: 14.16 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.1441, allocations: 4 kB / 365.7 MB, free: 14.16 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.996e-05/0.1441, allocations: 0 / 365.7 MB, free: 14.16 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.002627/0.1468, allocations: 1.803 MB / 367.5 MB, free: 12.3 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.955e-05/0.1468, allocations: 12.03 kB / 367.6 MB, free: 12.29 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002029/0.147, allocations: 193.7 kB / 367.8 MB, free: 12.09 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001695/0.1487, allocations: 1.373 MB / 369.1 MB, free: 10.64 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.07e-05/0.1488, allocations: 20.56 kB / 369.1 MB, free: 10.62 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.488e-05/0.1488, allocations: 28 kB / 369.2 MB, free: 10.6 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000939/0.1498, allocations: 457.1 kB / 369.6 MB, free: 10.14 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.048e-05/0.1498, allocations: 0 / 369.6 MB, free: 10.14 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.034e-05/0.1499, allocations: 12 kB / 369.6 MB, free: 10.13 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.354e-05/0.1499, allocations: 11.98 kB / 369.6 MB, free: 10.12 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001095/0.151, allocations: 0.5098 MB / 370.2 MB, free: 9.609 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002425/0.1534, allocations: 1.627 MB / 371.8 MB, free: 7.918 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009327/0.1544, allocations: 427.2 kB / 372.2 MB, free: 7.492 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000715/0.1551, allocations: 433.9 kB / 372.6 MB, free: 7.066 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1785/0.3336, allocations: 15.23 MB / 387.9 MB, free: 48.02 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000682/0.3343, allocations: 279.8 kB / 388.1 MB, free: 47.97 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 2.425e-06/0.3343, allocations: 0 / 388.1 MB, free: 47.97 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.002381/0.3367, allocations: 0.9104 MB / 389 MB, free: 47.81 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.7e-05/0.3368, allocations: 59.58 kB / 389.1 MB, free: 47.75 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002008/0.3388, allocations: 1.467 MB / 390.6 MB, free: 47.18 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.158e-05/0.3388, allocations: 32.27 kB / 390.6 MB, free: 47.14 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005693/0.3394, allocations: 0.7224 MB / 391.3 MB, free: 46.57 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.443e-05/0.3395, allocations: 94.58 kB / 391.4 MB, free: 46.5 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.755e-05/0.3396, allocations: 45.73 kB / 391.5 MB, free: 46.47 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.862e-05/0.3397, allocations: 328.9 kB / 391.8 MB, free: 46.16 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004936/0.3402, allocations: 181 kB / 392 MB, free: 46.12 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005952/0.3408, allocations: 377.8 kB / 392.3 MB, free: 45.82 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001049/0.3418, allocations: 0.5837 MB / 392.9 MB, free: 45.46 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.131e-06/0.3418, allocations: 2.438 kB / 392.9 MB, free: 45.46 MB / 318.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001658/0.3435, allocations: 0.7908 MB / 393.7 MB, free: 45.18 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.981e-05/0.3436, allocations: 8.438 kB / 393.7 MB, free: 45.18 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.018e-05/0.3436, allocations: 46.66 kB / 393.7 MB, free: 45.17 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003336/0.344, allocations: 132.6 kB / 393.9 MB, free: 45.14 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004257/0.3444, allocations: 118 kB / 394 MB, free: 45.13 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005266/0.3449, allocations: 0.6848 MB / 394.7 MB, free: 44.57 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006057/0.3456, allocations: 76.33 kB / 394.8 MB, free: 44.54 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.144e-05/0.3456, allocations: 35.16 kB / 394.8 MB, free: 44.53 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.0004738/0.3461, allocations: 283.7 kB / 395.1 MB, free: 44.32 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001573/0.3463, allocations: 186.2 kB / 395.2 MB, free: 44.22 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002079/0.3484, allocations: 0.8053 MB / 396.1 MB, free: 43.96 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.077e-05/0.3484, allocations: 2.219 kB / 396.1 MB, free: 43.96 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.556e-06/0.3484, allocations: 0 / 396.1 MB, free: 43.96 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.3484, allocations: 8.188 kB / 396.1 MB, free: 43.96 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002748/0.3512, allocations: 1.36 MB / 397.4 MB, free: 43.13 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.996e-05/0.3513, allocations: 37 kB / 397.5 MB, free: 43.13 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002812/0.3516, allocations: 56.08 kB / 397.5 MB, free: 43.11 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002895/0.3519, allocations: 125.9 kB / 397.6 MB, free: 43.07 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.219e-05/0.3519, allocations: 18 kB / 397.7 MB, free: 43.07 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005006/0.3524, allocations: 0.6698 MB / 398.3 MB, free: 42.49 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.3524, allocations: 9.875 kB / 398.3 MB, free: 42.48 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001322/0.3538, allocations: 0.7525 MB / 399.1 MB, free: 42.06 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003247/0.3541, allocations: 277.6 kB / 399.4 MB, free: 41.83 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001317/0.3542, allocations: 7.844 kB / 399.4 MB, free: 41.83 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004154/0.3547, allocations: 43.95 kB / 399.4 MB, free: 41.81 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001084/0.3548, allocations: 33.41 kB / 399.4 MB, free: 41.8 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.191e-05/0.3548, allocations: 26.27 kB / 399.5 MB, free: 41.79 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001045/0.3559, allocations: 0.9621 MB / 400.4 MB, free: 41.25 MB / 318.1 MB Notification: Performance of sort global known variables: time 9.42e-07/0.3559, allocations: 0 / 400.4 MB, free: 41.25 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001005/0.3569, allocations: 341 kB / 400.8 MB, free: 41.21 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.0008767/0.3578, allocations: 0.5659 MB / 401.3 MB, free: 41.02 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001225/0.359, allocations: 0.5598 MB / 401.9 MB, free: 40.77 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.359, allocations: 0 / 401.9 MB, free: 40.77 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006061/0.3597, allocations: 310.3 kB / 402.2 MB, free: 40.62 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009928/0.3607, allocations: 256.9 kB / 402.4 MB, free: 40.47 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002937/0.3636, allocations: 2.695 MB / 405.1 MB, free: 38.03 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004123/0.364, allocations: 1.149 MB / 406.3 MB, free: 36.85 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005974/0.3646, allocations: 203 kB / 406.5 MB, free: 36.66 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001151/0.3648, allocations: 87.44 kB / 406.6 MB, free: 36.57 MB / 318.1 MB Notification: Performance of SimCode: time 7.22e-07/0.3648, allocations: 0 / 406.6 MB, free: 36.57 MB / 318.1 MB Notification: Performance of Templates: time 0.02709/0.3919, allocations: 18.99 MB / 425.6 MB, free: 17.6 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)