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.001046/0.001046, allocations: 87.92 kB / 16.31 MB, free: 6.449 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.001157/0.001157, allocations: 181.5 kB / 17.21 MB, free: 6.32 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.649/1.649, allocations: 205.4 MB / 223.4 MB, free: 5.758 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.0005067/0.0005067, allocations: 8 kB / 280.1 MB, free: 13.03 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3291/0.3296, allocations: 47.59 MB / 327.7 MB, free: 1.406 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.007694/0.3374, allocations: 6.777 MB / 334.5 MB, free: 12.01 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.02384/0.3613, allocations: 16.78 MB / 351.3 MB, free: 11.9 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001796/0.3632, allocations: 31.75 kB / 351.3 MB, free: 11.87 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002789/0.366, allocations: 0.6848 MB / 352 MB, free: 11.18 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008777/0.3748, allocations: 1.39 MB / 353.4 MB, free: 9.785 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006194/0.381, allocations: 0.9911 MB / 354.4 MB, free: 8.789 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.006925/0.388, allocations: 2.981 MB / 357.4 MB, free: 5.801 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006218/0.3886, allocations: 213 kB / 357.6 MB, free: 5.57 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009587/0.3896, allocations: 437.8 kB / 358 MB, free: 5.141 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005783/0.3902, allocations: 0.5088 MB / 358.5 MB, free: 4.629 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.711e-05/0.3903, allocations: 24 kB / 358.5 MB, free: 4.605 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004669/0.395, allocations: 1.05 MB / 359.6 MB, free: 3.555 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000286/0.3953, allocations: 150.9 kB / 359.7 MB, free: 3.406 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000731/0.396, allocations: 324.8 kB / 360.1 MB, free: 3.082 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002354/0.3984, allocations: 1.573 MB / 361.6 MB, free: 1.504 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.047e-06/0.3984, allocations: 0 / 361.6 MB, free: 1.504 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.777e-06/0.3984, allocations: 0 / 361.6 MB, free: 1.504 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.006e-05/0.3985, allocations: 0 / 361.6 MB, free: 1.504 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.003429/0.4019, allocations: 1.819 MB / 363.4 MB, free: 15.62 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.018e-05/0.402, allocations: 11.97 kB / 363.5 MB, free: 15.61 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002553/0.4022, allocations: 193.7 kB / 363.6 MB, free: 15.42 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002248/0.4045, allocations: 1.293 MB / 364.9 MB, free: 14.06 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.274e-05/0.4045, allocations: 20.56 kB / 365 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.428e-05/0.4046, allocations: 31.98 kB / 365 MB, free: 14.01 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009552/0.4056, allocations: 453.1 kB / 365.4 MB, free: 13.56 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.366e-05/0.4056, allocations: 0 / 365.4 MB, free: 13.56 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.014e-05/0.4057, allocations: 8 kB / 365.4 MB, free: 13.55 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.135e-05/0.4057, allocations: 15.98 kB / 365.5 MB, free: 13.54 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001106/0.4068, allocations: 0.502 MB / 366 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003105/0.4099, allocations: 1.635 MB / 367.6 MB, free: 11.33 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009222/0.4109, allocations: 415.4 kB / 368 MB, free: 10.92 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007997/0.4117, allocations: 433.7 kB / 368.4 MB, free: 10.49 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01695/0.4286, allocations: 15.26 MB / 383.7 MB, free: 9.164 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007133/0.4294, allocations: 283 kB / 384 MB, free: 8.875 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 5.33e-06/0.4294, allocations: 3.984 kB / 384 MB, free: 8.871 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.002444/0.4319, allocations: 0.9234 MB / 384.9 MB, free: 7.918 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.441e-05/0.432, allocations: 55.41 kB / 384.9 MB, free: 7.852 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002265/0.4343, allocations: 1.448 MB / 386.4 MB, free: 6.367 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.705e-05/0.4343, allocations: 29.7 kB / 386.4 MB, free: 6.332 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000834/0.4352, allocations: 0.7188 MB / 387.1 MB, free: 5.609 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000141/0.4353, allocations: 98.64 kB / 387.2 MB, free: 5.512 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.881e-05/0.4353, allocations: 8 kB / 387.2 MB, free: 5.504 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001591/0.4355, allocations: 330 kB / 387.6 MB, free: 5.176 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004616/0.436, allocations: 181 kB / 387.7 MB, free: 4.996 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006185/0.4366, allocations: 379.4 kB / 388.1 MB, free: 4.535 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000503/0.4371, allocations: 220 kB / 388.3 MB, free: 4.32 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.266e-06/0.4371, allocations: 4 kB / 388.3 MB, free: 4.316 MB / 318.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001633/0.4388, allocations: 0.7945 MB / 389.1 MB, free: 3.512 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.645e-05/0.4388, allocations: 12 kB / 389.1 MB, free: 3.5 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.6e-05/0.4389, allocations: 43.95 kB / 389.2 MB, free: 3.457 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003667/0.4393, allocations: 132.8 kB / 389.3 MB, free: 3.324 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004364/0.4397, allocations: 123.8 kB / 389.4 MB, free: 3.203 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006535/0.4404, allocations: 0.6734 MB / 390.1 MB, free: 2.504 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005637/0.441, allocations: 83.5 kB / 390.2 MB, free: 2.422 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.668e-05/0.4411, allocations: 36 kB / 390.2 MB, free: 2.387 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.0004584/0.4415, allocations: 277.6 kB / 390.5 MB, free: 2.105 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001904/0.4417, allocations: 185.8 kB / 390.7 MB, free: 1.922 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001921/0.4437, allocations: 0.7971 MB / 391.5 MB, free: 1.113 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.741e-06/0.4437, allocations: 0 / 391.5 MB, free: 1.113 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.4437, allocations: 0 / 391.5 MB, free: 1.113 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.4437, allocations: 0 / 391.5 MB, free: 1.113 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002215/0.4459, allocations: 1.351 MB / 392.8 MB, free: 15.69 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.406e-05/0.446, allocations: 36 kB / 392.9 MB, free: 15.66 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002363/0.4462, allocations: 60 kB / 392.9 MB, free: 15.6 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000236/0.4465, allocations: 128.8 kB / 393 MB, free: 15.47 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.629e-05/0.4465, allocations: 19.98 kB / 393.1 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005546/0.4471, allocations: 0.6695 MB / 393.7 MB, free: 14.75 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/0.4471, allocations: 3.984 kB / 393.7 MB, free: 14.75 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001303/0.4484, allocations: 0.7513 MB / 394.5 MB, free: 13.97 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003795/0.4488, allocations: 282.7 kB / 394.8 MB, free: 13.67 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001477/0.449, allocations: 11.98 kB / 394.8 MB, free: 13.66 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003869/0.4493, allocations: 36.09 kB / 394.8 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001135/0.4495, allocations: 39.89 kB / 394.8 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.003e-05/0.4495, allocations: 39.92 kB / 394.9 MB, free: 13.55 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001396/0.4509, allocations: 0.9458 MB / 395.8 MB, free: 12.58 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4509, allocations: 0 / 395.8 MB, free: 12.58 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001171/0.4521, allocations: 331.8 kB / 396.2 MB, free: 12.26 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.0008804/0.453, allocations: 0.5544 MB / 396.7 MB, free: 11.7 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001282/0.4543, allocations: 0.5435 MB / 397.2 MB, free: 11.14 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.4543, allocations: 0 / 397.2 MB, free: 11.14 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006484/0.455, allocations: 319.4 kB / 397.6 MB, free: 10.82 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009535/0.4559, allocations: 250.9 kB / 397.8 MB, free: 10.57 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003764/0.4597, allocations: 2.525 MB / 400.3 MB, free: 8 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006682/0.4604, allocations: 1.149 MB / 401.5 MB, free: 6.82 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0006709/0.4611, allocations: 203.8 kB / 401.7 MB, free: 6.617 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001497/0.4612, allocations: 95.38 kB / 401.8 MB, free: 6.523 MB / 334.1 MB Notification: Performance of SimCode: time 6.61e-07/0.4612, allocations: 0 / 401.8 MB, free: 6.523 MB / 334.1 MB Notification: Performance of Templates: time 0.03307/0.4943, allocations: 18.46 MB / 420.2 MB, free: 4.027 MB / 350.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)