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: "" <> buildModelFMU(OpenIPSL.Examples.IEEE9.IEEE_9_Buses_Statcom,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_IEEE9_IEEE_9_Buses_Statcom",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.IEEE9.IEEE_9_Buses_Statcom,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_IEEE9_IEEE_9_Buses_Statcom",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001758/0.001757, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.636/1.636, allocations: 222.9 MB / 239.3 MB, free: 4.586 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.001744/0.001744, allocations: 184.5 kB / 289.6 MB, free: 2.324 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.711/0.711, allocations: 91.89 MB / 431.6 MB, free: 9.246 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002138/0.002138, allocations: 75.88 kB / 0.502 GB, free: 7.617 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6244/0.6266, allocations: 71.27 MB / 0.5716 GB, free: 36.74 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.IEEE9.IEEE_9_Buses_Statcom): time 0.01357/0.6402, allocations: 13.73 MB / 0.585 GB, free: 27.65 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01031/0.6506, allocations: 3.688 MB / 0.5886 GB, free: 24.98 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00334/0.654, allocations: 25.56 kB / 0.5886 GB, free: 24.98 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001489/0.6555, allocations: 0.5311 MB / 0.5891 GB, free: 24.67 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005265/0.6608, allocations: 1.481 MB / 0.5906 GB, free: 23.66 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002981/0.6638, allocations: 1.361 MB / 0.5919 GB, free: 22.91 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.006881/0.6707, allocations: 4.213 MB / 0.596 GB, free: 20.73 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001833/0.6726, allocations: 0.9717 MB / 0.597 GB, free: 20.21 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003434/0.676, allocations: 1.631 MB / 0.5986 GB, free: 19.36 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003021/0.6791, allocations: 1.982 MB / 0.6005 GB, free: 18.34 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009605/0.68, allocations: 374.2 kB / 0.6008 GB, free: 18.34 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001614/0.6816, allocations: 0.5096 MB / 0.6013 GB, free: 18.3 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007674/0.6824, allocations: 0.8544 MB / 0.6022 GB, free: 17.71 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002142/0.6846, allocations: 1.765 MB / 0.6039 GB, free: 16.46 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007031/0.6916, allocations: 4.524 MB / 0.6083 GB, free: 14.5 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.614e-06/0.6917, allocations: 0 / 0.6083 GB, free: 14.5 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.447e-06/0.6917, allocations: 1.094 kB / 0.6083 GB, free: 14.5 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001763/0.6919, allocations: 0 / 0.6083 GB, free: 14.5 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.02406/0.7159, allocations: 5.526 MB / 0.6137 GB, free: 11.86 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.562e-05/0.716, allocations: 9.312 kB / 0.6137 GB, free: 11.86 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005529/0.7166, allocations: 271 kB / 0.614 GB, free: 11.7 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01161/0.7282, allocations: 1.637 MB / 0.6156 GB, free: 11.33 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006247/0.7345, allocations: 2.07 MB / 0.6176 GB, free: 10.06 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005325/0.735, allocations: 499.9 kB / 0.6181 GB, free: 9.641 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005019/0.7356, allocations: 205.5 kB / 0.6183 GB, free: 9.57 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006404/0.742, allocations: 2.476 MB / 0.6207 GB, free: 8.602 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.936e-05/0.742, allocations: 0 / 0.6207 GB, free: 8.602 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002338/0.7423, allocations: 81.38 kB / 0.6208 GB, free: 8.539 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.836e-05/0.7423, allocations: 53.55 kB / 0.6208 GB, free: 8.531 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006148/0.7485, allocations: 2.277 MB / 0.6231 GB, free: 7.715 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.0206/0.7691, allocations: 9.419 MB / 0.6322 GB, free: 15.9 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01081/0.78, allocations: 4.607 MB / 0.6367 GB, free: 11.02 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003618/0.7836, allocations: 1.566 MB / 0.6383 GB, free: 9.449 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000212/0.7839, allocations: 38.05 kB / 0.6383 GB, free: 9.41 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003926/0.7878, allocations: 1.835 MB / 0.6401 GB, free: 7.551 MB / 446.1 MB Notification: Performance of pre-optimization done (n=245): time 7.023e-06/0.7878, allocations: 0 / 0.6401 GB, free: 7.551 MB / 446.1 MB Notification: Performance of matching and sorting (n=245): time 0.0867/0.8745, allocations: 19.06 MB / 0.6587 GB, free: 4.348 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001723/0.8748, allocations: 231.6 kB / 0.6589 GB, free: 4.07 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00609/0.8809, allocations: 2.648 MB / 0.6615 GB, free: 1.41 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009527/0.8818, allocations: 73.7 kB / 0.6616 GB, free: 1.332 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001403/0.8832, allocations: 1.193 MB / 0.6628 GB, free: 132 kB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001726/0.885, allocations: 0.8627 MB / 0.6636 GB, free: 15.25 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001414/0.8864, allocations: 0.5854 MB / 0.6642 GB, free: 14.66 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001258/0.8865, allocations: 305.1 kB / 0.6645 GB, free: 14.36 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003625/0.8902, allocations: 1.623 MB / 0.6661 GB, free: 12.73 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003806/0.894, allocations: 1.958 MB / 0.668 GB, free: 10.71 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.04815/0.9421, allocations: 11.16 MB / 0.6789 GB, free: 15.3 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.741e-05/0.9422, allocations: 0 / 0.6789 GB, free: 15.3 MB / 494.1 MB Notification: Performance of matching and sorting (n=426) (initialization): time 0.02668/0.9689, allocations: 7.921 MB / 0.6866 GB, free: 7.297 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001686/0.9692, allocations: 170.2 kB / 0.6868 GB, free: 7.094 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.751e-05/0.9692, allocations: 8 kB / 0.6868 GB, free: 7.086 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01226/0.9815, allocations: 3.077 MB / 0.6898 GB, free: 3.996 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003899/0.9854, allocations: 0.6124 MB / 0.6904 GB, free: 3.383 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04631/1.032, allocations: 19.46 MB / 0.7094 GB, free: 15.49 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006007/1.038, allocations: 425.2 kB / 0.7098 GB, free: 15.07 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009589/1.039, allocations: 116 kB / 0.7099 GB, free: 14.96 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.001944/1.041, allocations: 0.622 MB / 0.7105 GB, free: 14.31 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001284/1.042, allocations: 312.2 kB / 0.7108 GB, free: 14 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02572/1.068, allocations: 7.476 MB / 0.7181 GB, free: 6.473 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.609e-05/1.068, allocations: 28 kB / 0.7181 GB, free: 6.445 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/1.068, allocations: 3.938 kB / 0.7181 GB, free: 6.441 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.395e-05/1.068, allocations: 15.95 kB / 0.7181 GB, free: 6.426 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.03394/1.102, allocations: 12.22 MB / 0.7301 GB, free: 9.934 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.161e-05/1.102, allocations: 0 / 0.7301 GB, free: 9.934 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00173/1.104, allocations: 235.7 kB / 0.7303 GB, free: 9.703 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01336/1.117, allocations: 3.539 MB / 0.7338 GB, free: 6.145 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007347/1.118, allocations: 55.98 kB / 0.7338 GB, free: 6.09 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04813/1.166, allocations: 21.54 MB / 0.7548 GB, free: 15.95 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/1.166, allocations: 0 / 0.7548 GB, free: 15.95 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02935/1.195, allocations: 9.366 MB / 0.764 GB, free: 6.516 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001931/1.197, allocations: 460.5 kB / 0.7644 GB, free: 6.043 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00079/1.198, allocations: 55.94 kB / 0.7645 GB, free: 5.988 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002851/1.201, allocations: 231.7 kB / 0.7647 GB, free: 5.762 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001556/1.203, allocations: 390.4 kB / 0.7651 GB, free: 5.383 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001929/1.203, allocations: 79.97 kB / 0.7652 GB, free: 5.305 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003341/1.206, allocations: 1.763 MB / 0.7669 GB, free: 3.543 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.5e-07/1.206, allocations: 0 / 0.7669 GB, free: 3.543 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004781/1.211, allocations: 1.065 MB / 0.7679 GB, free: 2.477 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.5104/1.721, allocations: 9.999 MB / 0.7777 GB, free: 162.1 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01644/1.738, allocations: 5.707 MB / 0.7833 GB, free: 161.2 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.382e-06/1.738, allocations: 0 / 0.7833 GB, free: 161.2 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01024/1.748, allocations: 3.693 MB / 0.7869 GB, free: 159.7 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003448/1.752, allocations: 293.7 kB / 0.7871 GB, free: 159.5 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09565/1.847, allocations: 38.83 MB / 0.8251 GB, free: 138.5 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001435/1.849, allocations: 1.841 MB / 0.8269 GB, free: 137 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001731/1.851, allocations: 275.4 kB / 0.8271 GB, free: 136.8 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00172/1.852, allocations: 1.275 MB / 0.8284 GB, free: 135.6 MB / 0.5606 GB Notification: Performance of SimCode: time 1.904e-06/1.852, allocations: 0 / 0.8284 GB, free: 135.6 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1524/2.005, allocations: 85.01 MB / 0.9114 GB, free: 52.15 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.33/20.34, allocations: 11.62 kB / 0.9114 GB, free: 52.14 MB / 0.5606 GB (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 & python3 -m fmpy simulate --output-file OpenIPSL_dev_OpenIPSL.Examples.IEEE9.IEEE_9_Buses_Statcom_res.csv --start-time 0 --stop-time 20 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 OpenIPSL_dev_OpenIPSL_Examples_IEEE9_IEEE_9_Buses_Statcom.fmu > OpenIPSL_dev_OpenIPSL.Examples.IEEE9.IEEE_9_Buses_Statcom.pipe 2>&1)