Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.IEEE9.IEEE_9_Buses_Statcom.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/Modelica 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/OpenIPSL 3.1.0-master/package.mo", uses=false) Using package OpenIPSL with version 3.1.0-dev (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/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 Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 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(OpenIPSL.Examples.IEEE9.IEEE_9_Buses_Statcom,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.IEEE9.IEEE_9_Buses_Statcom") translateModel(OpenIPSL.Examples.IEEE9.IEEE_9_Buses_Statcom,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.IEEE9.IEEE_9_Buses_Statcom") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001144/0.001144, allocations: 104.6 kB / 16.35 MB, free: 5.828 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.308/1.308, allocations: 222.9 MB / 240 MB, free: 4.484 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001311/0.001311, allocations: 192.5 kB / 290.3 MB, free: 2.219 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5273/0.5273, allocations: 91.9 MB / 432.4 MB, free: 9.152 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001418/0.001418, allocations: 75.88 kB / 0.5033 GB, free: 6.957 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3605/0.362, allocations: 71.25 MB / 0.5729 GB, free: 37.04 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.IEEE9.IEEE_9_Buses_Statcom): time 0.01061/0.3726, allocations: 13.75 MB / 0.5863 GB, free: 27.74 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.007624/0.3803, allocations: 3.684 MB / 0.5899 GB, free: 25.08 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002741/0.3831, allocations: 28.19 kB / 0.5899 GB, free: 25.07 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00176/0.3848, allocations: 0.5274 MB / 0.5904 GB, free: 24.77 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004353/0.3892, allocations: 1.481 MB / 0.5919 GB, free: 23.76 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002674/0.3919, allocations: 1.356 MB / 0.5932 GB, free: 23.01 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.005128/0.3971, allocations: 4.244 MB / 0.5973 GB, free: 20.82 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00127/0.3984, allocations: 0.9744 MB / 0.5983 GB, free: 20.31 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00253/0.4009, allocations: 1.631 MB / 0.5999 GB, free: 19.45 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002467/0.4034, allocations: 1.977 MB / 0.6018 GB, free: 18.44 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005854/0.404, allocations: 374.2 kB / 0.6022 GB, free: 18.44 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001003/0.405, allocations: 0.5131 MB / 0.6027 GB, free: 18.4 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000552/0.4055, allocations: 0.847 MB / 0.6035 GB, free: 17.81 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001345/0.4069, allocations: 1.764 MB / 0.6052 GB, free: 16.57 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004671/0.4116, allocations: 4.595 MB / 0.6097 GB, free: 14.57 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.4116, allocations: 0 / 0.6097 GB, free: 14.57 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.705e-06/0.4116, allocations: 0.6094 kB / 0.6097 GB, free: 14.57 MB / 430.1 MB Notification: Performance of Transformations before backend: time 9.997e-05/0.4117, allocations: 0 / 0.6097 GB, free: 14.57 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.01801/0.4297, allocations: 5.517 MB / 0.6151 GB, free: 11.94 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.819e-05/0.4298, allocations: 13.41 kB / 0.6151 GB, free: 11.94 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01066/0.4405, allocations: 1.636 MB / 0.6167 GB, free: 11.57 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005284/0.4458, allocations: 2.076 MB / 0.6187 GB, free: 10.3 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005702/0.4464, allocations: 496.3 kB / 0.6192 GB, free: 9.887 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005063/0.4469, allocations: 210.8 kB / 0.6194 GB, free: 9.812 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005418/0.4523, allocations: 2.468 MB / 0.6218 GB, free: 8.852 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.874e-05/0.4524, allocations: 0 / 0.6218 GB, free: 8.852 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002073/0.4526, allocations: 89.61 kB / 0.6219 GB, free: 8.781 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.083e-05/0.4526, allocations: 48.59 kB / 0.622 GB, free: 8.777 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004238/0.4569, allocations: 2.271 MB / 0.6242 GB, free: 7.848 MB / 430.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01522/0.4721, allocations: 9.365 MB / 0.6333 GB, free: 15.97 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009298/0.4814, allocations: 4.592 MB / 0.6378 GB, free: 11.11 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002805/0.4842, allocations: 1.566 MB / 0.6393 GB, free: 9.535 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002136/0.4845, allocations: 45.89 kB / 0.6394 GB, free: 9.488 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003167/0.4876, allocations: 1.834 MB / 0.6412 GB, free: 7.629 MB / 446.1 MB Notification: Performance of pre-optimization done (n=245): time 3.997e-06/0.4877, allocations: 0 / 0.6412 GB, free: 7.629 MB / 446.1 MB Notification: Performance of matching and sorting (n=245): time 0.0791/0.5668, allocations: 19.05 MB / 0.6598 GB, free: 4.43 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001217/0.5669, allocations: 243.7 kB / 0.66 GB, free: 4.141 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005129/0.5721, allocations: 2.648 MB / 0.6626 GB, free: 1.48 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004694/0.5726, allocations: 69.7 kB / 0.6627 GB, free: 1.406 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001005/0.5736, allocations: 1.189 MB / 0.6638 GB, free: 212 kB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001142/0.5747, allocations: 0.8705 MB / 0.6647 GB, free: 15.32 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001574/0.5763, allocations: 0.5854 MB / 0.6652 GB, free: 14.73 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 8.656e-05/0.5764, allocations: 305.1 kB / 0.6655 GB, free: 14.43 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003324/0.5797, allocations: 1.623 MB / 0.6671 GB, free: 12.8 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003552/0.5833, allocations: 1.95 MB / 0.669 GB, free: 10.79 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.04261/0.6259, allocations: 11.12 MB / 0.6799 GB, free: 15.42 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.068e-05/0.626, allocations: 0 / 0.6799 GB, free: 15.42 MB / 494.1 MB Notification: Performance of matching and sorting (n=426) (initialization): time 0.02284/0.6488, allocations: 7.921 MB / 0.6876 GB, free: 7.418 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001008/0.6489, allocations: 170.2 kB / 0.6878 GB, free: 7.215 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.694e-05/0.649, allocations: 8 kB / 0.6878 GB, free: 7.207 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01069/0.6597, allocations: 3.069 MB / 0.6908 GB, free: 4.125 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003061/0.6627, allocations: 0.6124 MB / 0.6914 GB, free: 3.512 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03932/0.7021, allocations: 19.44 MB / 0.7104 GB, free: 15.63 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004365/0.7065, allocations: 425.2 kB / 0.7108 GB, free: 15.21 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000684/0.7072, allocations: 120 kB / 0.7109 GB, free: 15.1 MB / 0.5137 GB Warning: Assuming fixed start value for the following 6 variables: gen3.gen.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real gen2.gen.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real gen1.gen.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real gen1.gen.e1q:VARIABLE(start = gen1.gen.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" type: Real gen1.gen.e1d:VARIABLE(start = gen1.gen.e1d0 unit = "1" fixed = true ) "d-axis transient voltage" type: Real gen1.AVR.firstOrder2.y:VARIABLE(flow=false start = gen1.AVR.firstOrder2.y_start fixed = true ) "Connector of Real output signal" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,$whenCondition4,$whenCondition3,$whenCondition6,$whenCondition5,$whenCondition8,$whenCondition7) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (340): * Single equations (assignments): 331 * Array equations: 0 * Algorithm blocks: 6 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(36,46), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.001899/0.7091, allocations: 0.6203 MB / 0.7115 GB, free: 14.46 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001053/0.7101, allocations: 312.2 kB / 0.7118 GB, free: 14.15 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02251/0.7327, allocations: 7.472 MB / 0.7191 GB, free: 6.625 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.684e-05/0.7327, allocations: 28 kB / 0.7191 GB, free: 6.598 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.103e-06/0.7327, allocations: 0 / 0.7191 GB, free: 6.598 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.235e-05/0.7328, allocations: 11.95 kB / 0.7191 GB, free: 6.586 MB / 0.5137 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03118/0.764, allocations: 12.19 MB / 0.731 GB, free: 10.12 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.24e-05/0.764, allocations: 3.938 kB / 0.731 GB, free: 10.11 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001378/0.7654, allocations: 235.7 kB / 0.7312 GB, free: 9.883 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01151/0.7769, allocations: 3.527 MB / 0.7347 GB, free: 6.34 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003541/0.7773, allocations: 59.98 kB / 0.7348 GB, free: 6.281 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04384/0.8212, allocations: 21.51 MB / 0.7558 GB, free: 192 kB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.8212, allocations: 128 / 0.7558 GB, free: 192 kB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02732/0.8485, allocations: 9.37 MB / 0.7649 GB, free: 6.742 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001443/0.85, allocations: 460.5 kB / 0.7653 GB, free: 6.27 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001125/0.8512, allocations: 51.94 kB / 0.7654 GB, free: 6.219 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003245/0.8544, allocations: 239.7 kB / 0.7656 GB, free: 5.984 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00142/0.8559, allocations: 394.4 kB / 0.766 GB, free: 5.598 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003349/0.8562, allocations: 67.98 kB / 0.7661 GB, free: 5.531 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.00349/0.8597, allocations: 1.771 MB / 0.7678 GB, free: 3.762 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.51e-07/0.8597, allocations: 0 / 0.7678 GB, free: 3.762 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004162/0.8639, allocations: 1.069 MB / 0.7688 GB, free: 2.691 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 25 (sTATCOM3_1.simpleLagLim.state,gen1.gen.delta,gen1.gen.w,gen1.gen.e1q,gen1.gen.e1d,gen1.AVR.ExcitationSystem.x_scaled[1],gen1.AVR.derivativeBlock.x,gen1.AVR.firstOrder2.y,gen1.AVR.simpleLagLim.state,gen2.gen.delta,gen2.gen.w,gen2.gen.e1q,gen2.gen.e1d,gen2.AVR.ExcitationSystem.x_scaled[1],gen2.AVR.derivativeBlock.x,gen2.AVR.firstOrder2.y,gen2.AVR.simpleLagLim.state,gen3.gen.delta,gen3.gen.w,gen3.gen.e1q,gen3.gen.e1d,gen3.AVR.ExcitationSystem.x_scaled[1],gen3.AVR.derivativeBlock.x,gen3.AVR.firstOrder2.y,gen3.AVR.simpleLagLim.state) * Number of discrete variables: 8 ($whenCondition7,$whenCondition8,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (146): * Single equations (assignments): 139 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(43,48), (1,6), (1,6), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004539/0.8644, allocations: 181.2 kB / 0.769 GB, free: 2.504 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.2453/1.11, allocations: 5.578 MB / 0.7745 GB, free: 165.8 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.494e-06/1.11, allocations: 4.188 kB / 0.7745 GB, free: 165.8 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.008681/1.118, allocations: 3.695 MB / 0.7781 GB, free: 165 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003225/1.122, allocations: 296.5 kB / 0.7784 GB, free: 165 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01112/1.133, allocations: 5.743 MB / 0.784 GB, free: 162.9 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001458/1.134, allocations: 1.834 MB / 0.7858 GB, free: 162.1 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001402/1.136, allocations: 271.7 kB / 0.786 GB, free: 162 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006411/1.136, allocations: 171.9 kB / 0.7862 GB, free: 162 MB / 0.5606 GB Notification: Performance of SimCode: time 8.32e-07/1.136, allocations: 4.969 kB / 0.7862 GB, free: 162 MB / 0.5606 GB Notification: Performance of Templates: time 0.08396/1.22, allocations: 59.11 MB / 0.8439 GB, free: 124.9 MB / 0.5606 GB make -j1 -f OpenIPSL_dev_OpenIPSL.Examples.IEEE9.IEEE_9_Buses_Statcom.makefile (rm -f OpenIPSL_dev_OpenIPSL.Examples.IEEE9.IEEE_9_Buses_Statcom.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.IEEE9.IEEE_9_Buses_Statcom.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.IEEE9.IEEE_9_Buses_Statcom.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.IEEE9.IEEE_9_Buses_Statcom.sim & ./OpenIPSL_dev_OpenIPSL.Examples.IEEE9.IEEE_9_Buses_Statcom -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > OpenIPSL_dev_OpenIPSL.Examples.IEEE9.IEEE_9_Buses_Statcom.pipe 2>&1)