Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.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.PSATSystems.ThreeArea.ThirdOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_ThreeArea_ThirdOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_ThreeArea_ThirdOrder_AVRII",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.001174/0.001174, 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.492/1.492, allocations: 222.9 MB / 239.3 MB, free: 4.629 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.001304/0.001304, allocations: 188.5 kB / 289.6 MB, free: 2.348 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5649/0.5649, allocations: 91.91 MB / 431.6 MB, free: 9.262 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00171/0.00171, allocations: 83.88 kB / 0.502 GB, free: 7.625 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4672/0.469, allocations: 71.25 MB / 0.5716 GB, free: 36.63 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII): time 0.01064/0.4796, allocations: 13.62 MB / 0.5849 GB, free: 27.58 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.008417/0.4881, allocations: 3.484 MB / 0.5883 GB, free: 25.08 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00303/0.4912, allocations: 27.81 kB / 0.5883 GB, free: 25.08 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001716/0.493, allocations: 0.5522 MB / 0.5888 GB, free: 24.78 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005647/0.4986, allocations: 1.423 MB / 0.5902 GB, free: 23.81 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003895/0.5025, allocations: 1.5 MB / 0.5917 GB, free: 23.05 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.006164/0.5087, allocations: 3.688 MB / 0.5953 GB, free: 21.2 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001564/0.5103, allocations: 0.8894 MB / 0.5962 GB, free: 20.73 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003059/0.5134, allocations: 1.531 MB / 0.5977 GB, free: 19.95 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002592/0.516, allocations: 1.962 MB / 0.5996 GB, free: 18.98 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006517/0.5166, allocations: 284.6 kB / 0.5998 GB, free: 18.98 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001273/0.5179, allocations: 431.3 kB / 0.6003 GB, free: 18.94 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007209/0.5187, allocations: 0.7597 MB / 0.601 GB, free: 18.43 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002017/0.5207, allocations: 1.637 MB / 0.6026 GB, free: 17.31 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005222/0.5259, allocations: 3.919 MB / 0.6064 GB, free: 15.5 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.06e-05/0.526, allocations: 1.062 kB / 0.6064 GB, free: 15.5 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.156e-06/0.526, allocations: 0 / 0.6064 GB, free: 15.5 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001548/0.5261, allocations: 0 / 0.6064 GB, free: 15.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: 522 * Number of variables: 522 Notification: Performance of Generate backend data structure: time 0.02637/0.5525, allocations: 6.583 MB / 0.6129 GB, free: 12.87 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.135e-05/0.5526, allocations: 8.906 kB / 0.6129 GB, free: 12.87 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004515/0.553, allocations: 299.7 kB / 0.6131 GB, free: 12.68 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01565/0.5687, allocations: 2.277 MB / 0.6154 GB, free: 12.24 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006005/0.5748, allocations: 1.871 MB / 0.6172 GB, free: 11.09 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008866/0.5757, allocations: 0.7279 MB / 0.6179 GB, free: 10.43 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001055/0.5768, allocations: 214.1 kB / 0.6181 GB, free: 10.36 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009563/0.5863, allocations: 3.028 MB / 0.6211 GB, free: 9.211 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.606e-05/0.5864, allocations: 0 / 0.6211 GB, free: 9.211 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002836/0.5867, allocations: 89.5 kB / 0.6212 GB, free: 9.141 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.673e-05/0.5868, allocations: 50.31 kB / 0.6212 GB, free: 9.141 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008116/0.5949, allocations: 2.792 MB / 0.6239 GB, free: 8.062 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.02214/0.6171, allocations: 9.858 MB / 0.6336 GB, free: 14.38 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01109/0.6282, allocations: 4.188 MB / 0.6377 GB, free: 10.05 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00448/0.6327, allocations: 1.966 MB / 0.6396 GB, free: 8.074 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003326/0.6331, allocations: 45.95 kB / 0.6396 GB, free: 8.031 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004738/0.6379, allocations: 2.232 MB / 0.6418 GB, free: 5.777 MB / 446.1 MB Notification: Performance of pre-optimization done (n=247): time 4.448e-06/0.6379, allocations: 0 / 0.6418 GB, free: 5.777 MB / 446.1 MB Notification: Performance of matching and sorting (n=247): time 0.1303/0.7682, allocations: 29.46 MB / 0.6706 GB, free: 8.188 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001274/0.7684, allocations: 180.2 kB / 0.6707 GB, free: 7.973 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005064/0.7735, allocations: 2.277 MB / 0.673 GB, free: 5.676 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001317/0.7748, allocations: 77.69 kB / 0.673 GB, free: 5.594 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001168/0.776, allocations: 1.172 MB / 0.6742 GB, free: 4.41 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001573/0.7776, allocations: 0.8742 MB / 0.675 GB, free: 3.523 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00124/0.7788, allocations: 0.5539 MB / 0.6756 GB, free: 2.961 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001112/0.7789, allocations: 309.1 kB / 0.6759 GB, free: 2.656 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004441/0.7834, allocations: 1.947 MB / 0.6778 GB, free: 0.707 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004776/0.7882, allocations: 2.306 MB / 0.68 GB, free: 14.31 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0558/0.844, allocations: 14.05 MB / 0.6937 GB, free: 24 kB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.751e-05/0.8441, allocations: 3.938 kB / 0.6937 GB, free: 20 kB / 494.1 MB Notification: Performance of matching and sorting (n=413) (initialization): time 0.04362/0.8878, allocations: 12.28 MB / 0.7057 GB, free: 3.668 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.000128/0.8879, allocations: 116.9 kB / 0.7059 GB, free: 3.531 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.609e-05/0.888, allocations: 8 kB / 0.7059 GB, free: 3.523 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01875/0.9067, allocations: 5.332 MB / 0.7111 GB, free: 14.19 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003205/0.91, allocations: 0.5617 MB / 0.7116 GB, free: 13.62 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06284/0.9728, allocations: 23.52 MB / 0.7346 GB, free: 5.949 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00532/0.9782, allocations: 489 kB / 0.735 GB, free: 5.469 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007231/0.979, allocations: 116 kB / 0.7352 GB, free: 5.355 MB / 0.5294 GB Warning: Assuming fixed start value for the following 6 variables: order3_2.delta:VARIABLE(flow=false start = order3_2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order3_2.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order3_2.e1q:VARIABLE(start = order3_2.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" type: Real order2.delta:VARIABLE(flow=false start = order2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order2.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order3_1.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,$whenCondition4,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (325): * Single equations (assignments): 320 * Array equations: 0 * Algorithm blocks: 4 * 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 {(63,26)} Notification: Performance of prepare postOptimizeDAE: time 0.001631/0.9806, allocations: 0.5287 MB / 0.7357 GB, free: 4.809 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001056/0.9817, allocations: 296.3 kB / 0.736 GB, free: 4.516 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04144/1.023, allocations: 11.9 MB / 0.7476 GB, free: 8.562 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-05/1.023, allocations: 24 kB / 0.7476 GB, free: 8.539 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.647e-05/1.023, allocations: 20 kB / 0.7476 GB, free: 8.52 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.927e-05/1.023, allocations: 11.95 kB / 0.7476 GB, free: 8.508 MB / 0.545 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.04802/1.071, allocations: 15.49 MB / 0.7628 GB, free: 8.855 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.531e-05/1.071, allocations: 8 kB / 0.7628 GB, free: 8.848 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001728/1.073, allocations: 247.6 kB / 0.763 GB, free: 8.605 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01857/1.092, allocations: 5.283 MB / 0.7682 GB, free: 3.305 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008678/1.093, allocations: 51.98 kB / 0.7682 GB, free: 3.254 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4054/1.498, allocations: 24.96 MB / 0.7926 GB, free: 158.2 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.448e-06/1.498, allocations: 3.25 kB / 0.7926 GB, free: 158.2 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05148/1.55, allocations: 14.26 MB / 0.8065 GB, free: 154.6 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001544/1.551, allocations: 409.2 kB / 0.8069 GB, free: 154.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001221/1.552, allocations: 42.84 kB / 0.8069 GB, free: 154.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003737/1.556, allocations: 300.1 kB / 0.8072 GB, free: 154.2 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002918/1.559, allocations: 0.5857 MB / 0.8078 GB, free: 154 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004618/1.56, allocations: 64.81 kB / 0.8079 GB, free: 154 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003264/1.563, allocations: 1.505 MB / 0.8093 GB, free: 153.5 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.8e-07/1.563, allocations: 0.7812 kB / 0.8093 GB, free: 153.5 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.005693/1.569, allocations: 1.177 MB / 0.8105 GB, free: 153.3 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 16 (order3_2.delta,order3_2.w,order3_2.e1q,order2.delta,order2.w,order3_1.delta,order3_1.w,order3_1.e1q,Exc1.ExcitationSystem.x_scaled[1],Exc1.derivativeBlock.x,Exc1.firstOrder2.y,Exc1.simpleLagLim.state,Exc2.ExcitationSystem.x_scaled[1],Exc2.derivativeBlock.x,Exc2.firstOrder2.y,Exc2.simpleLagLim.state) * Number of discrete variables: 4 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (156): * Single equations (assignments): 151 * Array equations: 0 * Algorithm blocks: 2 * 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 {(66,22,7.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,6), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.04474/1.613, allocations: 14.89 MB / 0.825 GB, free: 145.6 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.02062/1.634, allocations: 6.808 MB / 0.8317 GB, free: 138.8 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 8.426e-06/1.634, allocations: 0 / 0.8317 GB, free: 138.8 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01355/1.648, allocations: 4.413 MB / 0.836 GB, free: 134.3 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003207/1.651, allocations: 265.2 kB / 0.8362 GB, free: 134 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1123/1.763, allocations: 45.5 MB / 0.8807 GB, free: 86.79 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001201/1.765, allocations: 1.806 MB / 0.8824 GB, free: 84.95 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.00143/1.766, allocations: 266.5 kB / 0.8827 GB, free: 84.68 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001343/1.767, allocations: 1.233 MB / 0.8839 GB, free: 83.45 MB / 0.5606 GB Notification: Performance of SimCode: time 8.01e-07/1.767, allocations: 0 / 0.8839 GB, free: 83.45 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1356/1.903, allocations: 88.6 MB / 0.9704 GB, free: 11.08 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.66/16.56, allocations: 20.59 kB / 0.9704 GB, free: 11.06 MB / 0.5762 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.sim & python3 -m fmpy simulate --output-file OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII_res.csv --start-time 0 --stop-time 20 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.008 OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_ThreeArea_ThirdOrder_AVRII.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.pipe 2>&1)