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.0009494/0.0009495, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.337/1.337, allocations: 223.3 MB / 239.4 MB, free: 5.402 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.0009489/0.000949, allocations: 188.5 kB / 290.6 MB, free: 2.062 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.528/0.528, allocations: 91.92 MB / 433.6 MB, free: 10.28 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003886/0.0003887, allocations: 11.98 kB / 0.5048 GB, free: 7.258 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3715/0.3719, allocations: 72.47 MB / 0.5755 GB, free: 37.44 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.IEEE9.IEEE_9_Buses_Statcom): time 0.01039/0.3823, allocations: 13.74 MB / 0.5889 GB, free: 27.25 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.008679/0.391, allocations: 3.794 MB / 0.5926 GB, free: 24.51 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002929/0.394, allocations: 27.81 kB / 0.5927 GB, free: 24.51 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001499/0.3955, allocations: 412 kB / 0.5931 GB, free: 24.33 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004771/0.4003, allocations: 1.281 MB / 0.5943 GB, free: 23.47 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002881/0.4032, allocations: 1.259 MB / 0.5955 GB, free: 22.73 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.005896/0.4091, allocations: 3.931 MB / 0.5994 GB, free: 20.78 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001439/0.4106, allocations: 0.8702 MB / 0.6002 GB, free: 20.3 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002652/0.4132, allocations: 1.34 MB / 0.6015 GB, free: 19.68 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002496/0.4157, allocations: 1.727 MB / 0.6032 GB, free: 18.88 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004781/0.4162, allocations: 150.3 kB / 0.6034 GB, free: 18.88 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001054/0.4173, allocations: 277 kB / 0.6036 GB, free: 18.84 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005118/0.4178, allocations: 0.6143 MB / 0.6042 GB, free: 18.48 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001469/0.4193, allocations: 1.523 MB / 0.6057 GB, free: 17.45 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005881/0.4252, allocations: 4.253 MB / 0.6099 GB, free: 16.02 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.4252, allocations: 0 / 0.6099 GB, free: 16.02 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.495e-06/0.4252, allocations: 1.312 kB / 0.6099 GB, free: 16.02 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002329/0.4255, allocations: 0 / 0.6099 GB, free: 16.02 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.01859/0.4441, allocations: 4.999 MB / 0.6148 GB, free: 13.77 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.101e-05/0.4441, allocations: 8.562 kB / 0.6148 GB, free: 13.77 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0117/0.4558, allocations: 1.648 MB / 0.6164 GB, free: 13.41 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005972/0.4619, allocations: 2.072 MB / 0.6184 GB, free: 12.15 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00054/0.4624, allocations: 0.5025 MB / 0.6189 GB, free: 11.72 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004708/0.4629, allocations: 206.6 kB / 0.6191 GB, free: 11.65 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005851/0.4688, allocations: 2.57 MB / 0.6216 GB, free: 10.67 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.925e-05/0.4688, allocations: 0 / 0.6216 GB, free: 10.67 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002213/0.469, allocations: 78.08 kB / 0.6217 GB, free: 10.61 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.796e-05/0.4691, allocations: 44.97 kB / 0.6217 GB, free: 10.61 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00528/0.4744, allocations: 2.376 MB / 0.624 GB, free: 9.785 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.01691/0.4913, allocations: 9.539 MB / 0.6334 GB, free: 2.031 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01031/0.5016, allocations: 5.174 MB / 0.6384 GB, free: 12.59 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003474/0.5051, allocations: 1.664 MB / 0.64 GB, free: 10.91 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001834/0.5053, allocations: 41.89 kB / 0.6401 GB, free: 10.88 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003701/0.5091, allocations: 1.938 MB / 0.642 GB, free: 8.914 MB / 446.1 MB Notification: Performance of pre-optimization done (n=245): time 4.218e-06/0.5091, allocations: 0 / 0.642 GB, free: 8.914 MB / 446.1 MB Notification: Performance of matching and sorting (n=245): time 0.08544/0.5945, allocations: 21.91 MB / 0.6634 GB, free: 2.852 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001044/0.5947, allocations: 235.6 kB / 0.6636 GB, free: 2.57 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004457/0.5991, allocations: 2.649 MB / 0.6662 GB, free: 15.91 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005476/0.5997, allocations: 73.7 kB / 0.6662 GB, free: 15.83 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008924/0.6006, allocations: 1.189 MB / 0.6674 GB, free: 14.63 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009365/0.6015, allocations: 0.8666 MB / 0.6683 GB, free: 13.75 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004153/0.602, allocations: 304.7 kB / 0.6685 GB, free: 13.45 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 8.181e-05/0.602, allocations: 305.1 kB / 0.6688 GB, free: 13.15 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003331/0.6054, allocations: 1.709 MB / 0.6705 GB, free: 11.44 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00352/0.6089, allocations: 2.056 MB / 0.6725 GB, free: 9.312 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.04487/0.6538, allocations: 11.77 MB / 0.684 GB, free: 13.3 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.156e-05/0.6538, allocations: 0 / 0.684 GB, free: 13.3 MB / 494.1 MB Notification: Performance of matching and sorting (n=426) (initialization): time 0.02511/0.679, allocations: 9.047 MB / 0.6928 GB, free: 4.172 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001209/0.6791, allocations: 170.2 kB / 0.693 GB, free: 3.969 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.993e-05/0.6791, allocations: 11.98 kB / 0.693 GB, free: 3.957 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01192/0.6911, allocations: 3.468 MB / 0.6964 GB, free: 488 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00346/0.6946, allocations: 0.6164 MB / 0.697 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0402/0.7348, allocations: 19.43 MB / 0.716 GB, free: 12.02 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004689/0.7395, allocations: 0.4932 MB / 0.7164 GB, free: 11.52 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004017/0.7399, allocations: 116 kB / 0.7166 GB, free: 11.41 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.001419/0.7413, allocations: 0.6038 MB / 0.7171 GB, free: 10.78 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000652/0.742, allocations: 320 kB / 0.7175 GB, free: 10.46 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02491/0.7669, allocations: 8.706 MB / 0.726 GB, free: 1.703 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.532e-05/0.767, allocations: 28 kB / 0.726 GB, free: 1.676 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.767, allocations: 0 / 0.726 GB, free: 1.676 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.713e-05/0.7671, allocations: 15.95 kB / 0.726 GB, free: 1.66 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.03253/0.7996, allocations: 13.47 MB / 0.7391 GB, free: 3.91 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.411e-05/0.7997, allocations: 4 kB / 0.7392 GB, free: 3.906 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001602/0.8013, allocations: 235.7 kB / 0.7394 GB, free: 3.676 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01303/0.8143, allocations: 3.942 MB / 0.7432 GB, free: 15.72 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005491/0.8149, allocations: 59.92 kB / 0.7433 GB, free: 15.66 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0434/0.8583, allocations: 20.98 MB / 0.7638 GB, free: 10.11 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.8584, allocations: 3.938 kB / 0.7638 GB, free: 10.1 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3139/1.172, allocations: 10.7 MB / 0.7742 GB, free: 162 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001544/1.174, allocations: 464.6 kB / 0.7747 GB, free: 161.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009954/1.175, allocations: 52.33 kB / 0.7747 GB, free: 161.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003079/1.178, allocations: 298.1 kB / 0.775 GB, free: 161.9 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001417/1.179, allocations: 390.6 kB / 0.7754 GB, free: 161.9 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002102/1.18, allocations: 69.5 kB / 0.7754 GB, free: 161.9 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003207/1.183, allocations: 1.776 MB / 0.7772 GB, free: 161.7 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.71e-07/1.183, allocations: 0 / 0.7772 GB, free: 161.7 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004028/1.187, allocations: 1.075 MB / 0.7782 GB, free: 161.7 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.000449/1.187, allocations: 178.7 kB / 0.7784 GB, free: 161.6 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01214/1.199, allocations: 5.922 MB / 0.7842 GB, free: 160.5 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 8.306e-06/1.2, allocations: 1.188 kB / 0.7842 GB, free: 160.5 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.009406/1.209, allocations: 3.933 MB / 0.788 GB, free: 158.9 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003209/1.212, allocations: 296.1 kB / 0.7883 GB, free: 158.7 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01098/1.223, allocations: 7.058 MB / 0.7952 GB, free: 154.9 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001486/1.225, allocations: 1.839 MB / 0.797 GB, free: 154.1 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001442/1.226, allocations: 271.8 kB / 0.7973 GB, free: 154.1 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006302/1.227, allocations: 162.4 kB / 0.7974 GB, free: 154.1 MB / 0.5606 GB Notification: Performance of SimCode: time 1.112e-06/1.227, allocations: 0 / 0.7974 GB, free: 154.1 MB / 0.5606 GB Notification: Performance of Templates: time 0.08351/1.31, allocations: 53.25 MB / 0.8494 GB, free: 120.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 -lv LOG_STATS > OpenIPSL_dev_OpenIPSL.Examples.IEEE9.IEEE_9_Buses_Statcom.pipe 2>&1)