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.001208/0.001208, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001333/0.001333, allocations: 189.5 kB / 16.25 MB, free: 6.625 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.399/1.399, allocations: 205.1 MB / 222.1 MB, free: 4.723 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.001332/0.001332, allocations: 55.92 kB / 278.2 MB, free: 12.66 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2483/0.2496, allocations: 46.63 MB / 324.8 MB, free: 1.941 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.009375/0.259, allocations: 7.691 MB / 332.5 MB, free: 11.76 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.02102/0.2801, allocations: 18.28 MB / 350.8 MB, free: 10.04 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00172/0.2818, allocations: 35.69 kB / 350.9 MB, free: 10 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002887/0.2848, allocations: 0.7372 MB / 351.6 MB, free: 9.266 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006413/0.2912, allocations: 1.519 MB / 353.1 MB, free: 7.738 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00413/0.2954, allocations: 1.129 MB / 354.2 MB, free: 6.602 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.005013/0.3004, allocations: 3.206 MB / 357.4 MB, free: 3.387 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003603/0.3008, allocations: 228.6 kB / 357.7 MB, free: 3.141 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005964/0.3014, allocations: 0.5015 MB / 358.2 MB, free: 2.637 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004945/0.3019, allocations: 0.5474 MB / 358.7 MB, free: 2.086 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.133e-05/0.302, allocations: 44 kB / 358.8 MB, free: 2.043 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003245/0.3053, allocations: 1.12 MB / 359.9 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001571/0.3054, allocations: 170.8 kB / 360 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005698/0.306, allocations: 0.6948 MB / 360.7 MB, free: 56 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002771/0.3088, allocations: 2.195 MB / 362.9 MB, free: 13.85 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.3088, allocations: 0 / 362.9 MB, free: 13.85 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3088, allocations: 0 / 362.9 MB, free: 13.85 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.809e-05/0.3088, allocations: 4 kB / 362.9 MB, free: 13.85 MB / 302.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.002647/0.3115, allocations: 2.016 MB / 365 MB, free: 11.77 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.843e-05/0.3115, allocations: 12.03 kB / 365 MB, free: 11.76 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002075/0.3118, allocations: 193.7 kB / 365.2 MB, free: 11.57 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001676/0.3134, allocations: 1.37 MB / 366.5 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.059e-05/0.3135, allocations: 20.56 kB / 366.5 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.222e-05/0.3136, allocations: 35.84 kB / 366.6 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008457/0.3144, allocations: 437.1 kB / 367 MB, free: 9.633 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.151e-05/0.3144, allocations: 0 / 367 MB, free: 9.633 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.48e-05/0.3145, allocations: 12 kB / 367 MB, free: 9.621 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.701e-05/0.3145, allocations: 15.98 kB / 367 MB, free: 9.605 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001018/0.3155, allocations: 470.1 kB / 367.5 MB, free: 9.148 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002502/0.318, allocations: 1.615 MB / 369.1 MB, free: 7.469 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000949/0.319, allocations: 375.3 kB / 369.5 MB, free: 7.094 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006803/0.3197, allocations: 413.8 kB / 369.9 MB, free: 6.688 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01344/0.3331, allocations: 15.24 MB / 385.1 MB, free: 5.375 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005939/0.3338, allocations: 255.1 kB / 385.4 MB, free: 5.113 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 2.304e-06/0.3338, allocations: 4 kB / 385.4 MB, free: 5.109 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.002011/0.3358, allocations: 0.8414 MB / 386.2 MB, free: 4.238 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.575e-05/0.3359, allocations: 63.41 kB / 386.3 MB, free: 4.164 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001697/0.3376, allocations: 1.464 MB / 387.7 MB, free: 2.664 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.622e-05/0.3376, allocations: 29.7 kB / 387.8 MB, free: 2.629 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005652/0.3382, allocations: 0.7227 MB / 388.5 MB, free: 1.902 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.838e-05/0.3383, allocations: 102.7 kB / 388.6 MB, free: 1.801 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000188/0.3385, allocations: 130 kB / 388.7 MB, free: 1.668 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001042/0.3386, allocations: 322 kB / 389 MB, free: 1.348 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004277/0.339, allocations: 165 kB / 389.2 MB, free: 1.184 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005446/0.3396, allocations: 359.4 kB / 389.5 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009646/0.3406, allocations: 0.5332 MB / 390.1 MB, free: 120 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.89e-06/0.3406, allocations: 4 kB / 390.1 MB, free: 116 kB / 318.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001442/0.342, allocations: 0.7509 MB / 390.8 MB, free: 15.35 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.475e-05/0.3421, allocations: 11.98 kB / 390.8 MB, free: 15.34 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.275e-05/0.3421, allocations: 44 kB / 390.9 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000313/0.3425, allocations: 133.5 kB / 391 MB, free: 15.16 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004039/0.3429, allocations: 103.8 kB / 391.1 MB, free: 15.06 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00062/0.3435, allocations: 0.685 MB / 391.8 MB, free: 14.35 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005507/0.3441, allocations: 67.56 kB / 391.9 MB, free: 14.29 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.004e-05/0.3441, allocations: 43.92 kB / 391.9 MB, free: 14.24 MB / 334.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.0003736/0.3445, allocations: 273.7 kB / 392.2 MB, free: 13.96 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001625/0.3447, allocations: 185.8 kB / 392.4 MB, free: 13.78 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001865/0.3466, allocations: 0.7425 MB / 393.1 MB, free: 13.03 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.604e-06/0.3466, allocations: 4 kB / 393.1 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.3466, allocations: 0 / 393.1 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.212e-06/0.3466, allocations: 7.984 kB / 393.1 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002099/0.3487, allocations: 1.327 MB / 394.4 MB, free: 11.62 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.548e-05/0.3488, allocations: 36 kB / 394.5 MB, free: 11.58 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002346/0.349, allocations: 43.95 kB / 394.5 MB, free: 11.54 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002428/0.3493, allocations: 128.8 kB / 394.6 MB, free: 11.41 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.79e-05/0.3493, allocations: 24.06 kB / 394.7 MB, free: 11.39 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005236/0.3498, allocations: 0.6655 MB / 395.3 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.3499, allocations: 3.938 kB / 395.3 MB, free: 10.69 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001244/0.3511, allocations: 0.7047 MB / 396 MB, free: 9.957 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003621/0.3515, allocations: 286.6 kB / 396.3 MB, free: 9.656 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001492/0.3516, allocations: 8 kB / 396.3 MB, free: 9.648 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004324/0.3521, allocations: 31.95 kB / 396.4 MB, free: 9.617 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001193/0.3522, allocations: 47.89 kB / 396.4 MB, free: 9.57 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.706e-05/0.3523, allocations: 19.98 kB / 396.4 MB, free: 9.551 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.00114/0.3534, allocations: 0.9653 MB / 397.4 MB, free: 8.566 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3534, allocations: 0 / 397.4 MB, free: 8.566 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008588/0.3543, allocations: 331.8 kB / 397.7 MB, free: 8.242 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 (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.0009038/0.3552, allocations: 0.5894 MB / 398.3 MB, free: 7.645 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001419/0.3566, allocations: 0.5161 MB / 398.8 MB, free: 7.117 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.566e-06/0.3566, allocations: 0 / 398.8 MB, free: 7.117 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006201/0.3573, allocations: 291.2 kB / 399.1 MB, free: 6.82 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001039/0.3583, allocations: 267.2 kB / 399.4 MB, free: 6.555 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003658/0.362, allocations: 2.64 MB / 402 MB, free: 3.875 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000604/0.3626, allocations: 1.153 MB / 403.2 MB, free: 2.691 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0006696/0.3633, allocations: 199.9 kB / 403.4 MB, free: 2.492 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001479/0.3635, allocations: 91.44 kB / 403.4 MB, free: 2.402 MB / 334.1 MB Notification: Performance of SimCode: time 1.704e-06/0.3635, allocations: 0 / 403.4 MB, free: 2.402 MB / 334.1 MB Notification: Performance of Templates: time 0.03209/0.3956, allocations: 19.63 MB / 423.1 MB, free: 14.74 MB / 366.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)