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.0009591/0.0009592, allocations: 95.23 kB / 16.3 MB, free: 5.996 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.00101/0.00101, allocations: 184 kB / 17.2 MB, free: 5.914 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.518/1.518, allocations: 205.4 MB / 223.4 MB, free: 5.527 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.0004538/0.0004539, allocations: 12 kB / 280.1 MB, free: 12.84 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2769/0.2774, allocations: 47.58 MB / 327.7 MB, free: 1.266 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.005941/0.2834, allocations: 6.231 MB / 333.9 MB, free: 12.37 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01734/0.3007, allocations: 15.75 MB / 349.7 MB, free: 13.38 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001011/0.3018, allocations: 35.69 kB / 349.7 MB, free: 13.34 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002088/0.3039, allocations: 0.7079 MB / 350.4 MB, free: 12.63 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004585/0.3085, allocations: 1.554 MB / 352 MB, free: 11.07 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003269/0.3117, allocations: 1.075 MB / 353 MB, free: 9.996 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004917/0.3167, allocations: 3.055 MB / 356.1 MB, free: 6.938 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003521/0.317, allocations: 201.1 kB / 356.3 MB, free: 6.723 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005639/0.3176, allocations: 433.9 kB / 356.7 MB, free: 6.297 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005223/0.3181, allocations: 0.4932 MB / 357.2 MB, free: 5.801 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.988e-05/0.3182, allocations: 24 kB / 357.2 MB, free: 5.777 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003388/0.3216, allocations: 1.199 MB / 358.4 MB, free: 4.578 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001544/0.3218, allocations: 147 kB / 358.6 MB, free: 4.434 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003192/0.3221, allocations: 328.8 kB / 358.9 MB, free: 4.105 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001635/0.3237, allocations: 1.513 MB / 360.4 MB, free: 2.59 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.3238, allocations: 0 / 360.4 MB, free: 2.59 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.145e-06/0.3238, allocations: 0 / 360.4 MB, free: 2.59 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.879e-05/0.3238, allocations: 0 / 360.4 MB, free: 2.59 MB / 286.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.002814/0.3266, allocations: 1.807 MB / 362.2 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.874e-05/0.3267, allocations: 8.031 kB / 362.2 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002268/0.3269, allocations: 197.6 kB / 362.4 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001976/0.3289, allocations: 1.29 MB / 363.7 MB, free: 15.15 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.531e-05/0.3289, allocations: 16.56 kB / 363.7 MB, free: 15.14 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.018e-05/0.329, allocations: 28 kB / 363.8 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008797/0.3299, allocations: 449.2 kB / 364.2 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.212e-05/0.3299, allocations: 0 / 364.2 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.418e-05/0.33, allocations: 15.98 kB / 364.2 MB, free: 14.65 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.565e-05/0.33, allocations: 15.98 kB / 364.2 MB, free: 14.63 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001069/0.3311, allocations: 0.5059 MB / 364.7 MB, free: 14.13 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002556/0.3336, allocations: 1.627 MB / 366.4 MB, free: 12.44 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008916/0.3345, allocations: 415.4 kB / 366.8 MB, free: 12.03 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01565/0.3502, allocations: 15.32 MB / 382.1 MB, free: 10.64 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000691/0.3509, allocations: 286.9 kB / 382.4 MB, free: 10.34 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 2.024e-06/0.351, allocations: 0 / 382.4 MB, free: 10.34 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.002182/0.3531, allocations: 0.9 MB / 383.3 MB, free: 9.414 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.849e-05/0.3532, allocations: 59.41 kB / 383.3 MB, free: 9.344 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001925/0.3551, allocations: 1.444 MB / 384.8 MB, free: 7.863 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.69e-05/0.3552, allocations: 33.7 kB / 384.8 MB, free: 7.824 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007125/0.3559, allocations: 0.7266 MB / 385.5 MB, free: 7.094 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001537/0.3561, allocations: 98.67 kB / 385.6 MB, free: 6.996 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.456e-05/0.3561, allocations: 8 kB / 385.6 MB, free: 6.988 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001303/0.3562, allocations: 325.9 kB / 385.9 MB, free: 6.664 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004537/0.3567, allocations: 177 kB / 386.1 MB, free: 6.492 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000566/0.3573, allocations: 383.4 kB / 386.5 MB, free: 6.023 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005272/0.3578, allocations: 228.1 kB / 386.7 MB, free: 5.801 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.619e-06/0.3578, allocations: 4 kB / 386.7 MB, free: 5.797 MB / 318.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001602/0.3594, allocations: 0.7903 MB / 387.5 MB, free: 4.996 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.414e-05/0.3595, allocations: 8 kB / 387.5 MB, free: 4.988 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.668e-05/0.3596, allocations: 40 kB / 387.6 MB, free: 4.949 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003062/0.3599, allocations: 140.7 kB / 387.7 MB, free: 4.809 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004067/0.3603, allocations: 116.1 kB / 387.8 MB, free: 4.695 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005854/0.3609, allocations: 0.6774 MB / 388.5 MB, free: 3.992 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005221/0.3614, allocations: 79.47 kB / 388.6 MB, free: 3.914 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.742e-05/0.3615, allocations: 36 kB / 388.6 MB, free: 3.879 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 ($PRE.vin.counter,vin.counter,$PRE.v.counter,v.counter,$whenCondition2,$whenCondition1,$PRE.vin.T0,vin.T0,$PRE.vin.counter2,vin.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0004303/0.3619, allocations: 273.6 kB / 388.9 MB, free: 3.602 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001959/0.3621, allocations: 193.7 kB / 389.1 MB, free: 3.41 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00203/0.3642, allocations: 0.7933 MB / 389.9 MB, free: 2.605 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.127e-06/0.3642, allocations: 4 kB / 389.9 MB, free: 2.602 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.544e-06/0.3642, allocations: 3.938 kB / 389.9 MB, free: 2.598 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.069e-06/0.3642, allocations: 0 / 389.9 MB, free: 2.598 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00224/0.3664, allocations: 1.355 MB / 391.2 MB, free: 1.172 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.017e-05/0.3665, allocations: 36.06 kB / 391.2 MB, free: 1.137 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002435/0.3668, allocations: 59.95 kB / 391.3 MB, free: 1.078 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002526/0.367, allocations: 128.8 kB / 391.4 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.37e-05/0.3671, allocations: 19.98 kB / 391.5 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005851/0.3677, allocations: 0.6695 MB / 392.1 MB, free: 240 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.3677, allocations: 0 / 392.1 MB, free: 240 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001273/0.369, allocations: 0.7936 MB / 392.9 MB, free: 15.39 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003635/0.3693, allocations: 274.7 kB / 393.2 MB, free: 15.11 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001567/0.3695, allocations: 8 kB / 393.2 MB, free: 15.1 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004114/0.3699, allocations: 43.95 kB / 393.2 MB, free: 15.05 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000106/0.37, allocations: 39.91 kB / 393.3 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.022e-05/0.3701, allocations: 27.98 kB / 393.3 MB, free: 14.99 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001148/0.3712, allocations: 0.9458 MB / 394.2 MB, free: 14.02 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3712, allocations: 0 / 394.2 MB, free: 14.02 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008694/0.3721, allocations: 331.8 kB / 394.6 MB, free: 13.7 MB / 334.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.000798/0.3729, allocations: 0.5504 MB / 395.1 MB, free: 13.14 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001282/0.3742, allocations: 0.5512 MB / 395.7 MB, free: 12.58 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.3742, allocations: 0 / 395.7 MB, free: 12.58 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006565/0.3749, allocations: 307.5 kB / 396 MB, free: 12.27 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007925/0.3757, allocations: 246.9 kB / 396.2 MB, free: 12.02 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004069/0.3798, allocations: 2.524 MB / 398.7 MB, free: 9.453 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007458/0.3805, allocations: 1.184 MB / 399.9 MB, free: 8.238 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0006148/0.3812, allocations: 199.9 kB / 400.1 MB, free: 8.039 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001335/0.3813, allocations: 87.42 kB / 400.2 MB, free: 7.953 MB / 334.1 MB Notification: Performance of SimCode: time 7.51e-07/0.3813, allocations: 0 / 400.2 MB, free: 7.953 MB / 334.1 MB Notification: Performance of Templates: time 0.03107/0.4124, allocations: 17.98 MB / 418.2 MB, free: 5.945 MB / 350.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Inverter.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: