Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.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.0.1/package.mo", uses=false) Using package OpenIPSL with version 3.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/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.TwoAreaOld.ThirdOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_ThirdOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_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.007445/0.007445, allocations: 99.45 kB / 15.73 MB, free: 6.059 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: 222.9 MB / 239.4 MB, free: 4.551 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.001608/0.001608, allocations: 196.4 kB / 289.7 MB, free: 2.25 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4653/0.4653, allocations: 78.52 MB / 418.4 MB, free: 3.184 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001456/0.001456, allocations: 83.88 kB / 0.5532 GB, free: 1.426 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3811/0.3826, allocations: 68.16 MB / 0.6197 GB, free: 9.398 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII): time 0.005765/0.3884, allocations: 6.497 MB / 0.6261 GB, free: 3.637 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003516/0.392, allocations: 1.958 MB / 0.628 GB, free: 1.672 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006701/0.3927, allocations: 12 kB / 0.628 GB, free: 1.66 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007027/0.3934, allocations: 234 kB / 0.6282 GB, free: 1.43 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001647/0.3951, allocations: 0.8521 MB / 0.6291 GB, free: 0.5781 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001085/0.3962, allocations: 0.6253 MB / 0.6297 GB, free: 15.96 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001484/0.3977, allocations: 1.585 MB / 0.6312 GB, free: 14.37 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004474/0.3981, allocations: 326.4 kB / 0.6315 GB, free: 14.04 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007344/0.3989, allocations: 0.6613 MB / 0.6322 GB, free: 13.37 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008117/0.3997, allocations: 0.8167 MB / 0.633 GB, free: 12.55 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001612/0.3999, allocations: 124 kB / 0.6331 GB, free: 12.43 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004387/0.4003, allocations: 259.9 kB / 0.6333 GB, free: 12.18 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002687/0.4006, allocations: 326.6 kB / 0.6336 GB, free: 11.86 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005173/0.4011, allocations: 0.668 MB / 0.6343 GB, free: 11.18 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001571/0.4027, allocations: 1.677 MB / 0.6359 GB, free: 9.504 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.883e-06/0.4027, allocations: 4 kB / 0.6359 GB, free: 9.5 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.714e-06/0.4027, allocations: 0 / 0.6359 GB, free: 9.5 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.381e-05/0.4027, allocations: 0 / 0.6359 GB, free: 9.5 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 189 * Number of variables: 189 Notification: Performance of Generate backend data structure: time 0.008539/0.4113, allocations: 2.726 MB / 0.6386 GB, free: 6.703 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.659e-05/0.4113, allocations: 8.031 kB / 0.6386 GB, free: 6.695 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001555/0.4115, allocations: 126.6 kB / 0.6387 GB, free: 6.562 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004873/0.4164, allocations: 0.7796 MB / 0.6395 GB, free: 5.781 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001467/0.4179, allocations: 0.899 MB / 0.6404 GB, free: 4.828 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002726/0.4181, allocations: 256.2 kB / 0.6406 GB, free: 4.539 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001597/0.4183, allocations: 87.98 kB / 0.6407 GB, free: 4.453 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002006/0.4203, allocations: 1.079 MB / 0.6418 GB, free: 3.363 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.037e-05/0.4204, allocations: 7.875 kB / 0.6418 GB, free: 3.355 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.357e-05/0.4205, allocations: 32 kB / 0.6418 GB, free: 3.324 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.55e-05/0.4205, allocations: 20 kB / 0.6418 GB, free: 3.305 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001932/0.4224, allocations: 0.9838 MB / 0.6428 GB, free: 2.32 MB / 446.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.006055/0.4285, allocations: 3.805 MB / 0.6465 GB, free: 14.34 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007238/0.4357, allocations: 2.361 MB / 0.6488 GB, free: 11.89 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001301/0.4371, allocations: 0.6801 MB / 0.6495 GB, free: 11.2 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.392e-05/0.4371, allocations: 12.98 kB / 0.6495 GB, free: 11.19 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001522/0.4387, allocations: 0.8268 MB / 0.6503 GB, free: 10.34 MB / 462.1 MB Notification: Performance of pre-optimization done (n=95): time 2.555e-06/0.4387, allocations: 0 / 0.6503 GB, free: 10.34 MB / 462.1 MB Notification: Performance of matching and sorting (n=95): time 0.02878/0.4675, allocations: 7.187 MB / 0.6573 GB, free: 3.094 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.29e-05/0.4676, allocations: 127.7 kB / 0.6574 GB, free: 2.945 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002077/0.4697, allocations: 1.095 MB / 0.6585 GB, free: 1.836 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000225/0.4699, allocations: 45.7 kB / 0.6585 GB, free: 1.785 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004409/0.4704, allocations: 0.4897 MB / 0.659 GB, free: 1.289 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000506/0.4709, allocations: 364.9 kB / 0.6594 GB, free: 0.9297 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007664/0.4717, allocations: 283.5 kB / 0.6596 GB, free: 0.6484 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.875e-05/0.4718, allocations: 301.1 kB / 0.6599 GB, free: 360 kB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001701/0.4735, allocations: 0.7536 MB / 0.6607 GB, free: 15.59 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001783/0.4753, allocations: 0.9342 MB / 0.6616 GB, free: 14.62 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02318/0.4985, allocations: 5.556 MB / 0.667 GB, free: 8.98 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.14e-05/0.4986, allocations: 0 / 0.667 GB, free: 8.98 MB / 478.1 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.01414/0.5127, allocations: 4.368 MB / 0.6713 GB, free: 4.582 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.949e-05/0.5128, allocations: 69.75 kB / 0.6713 GB, free: 4.504 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.968e-05/0.5129, allocations: 4 kB / 0.6713 GB, free: 4.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00579/0.5187, allocations: 1.584 MB / 0.6729 GB, free: 2.914 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001433/0.5201, allocations: 283.6 kB / 0.6731 GB, free: 2.637 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02029/0.5404, allocations: 8.511 MB / 0.6815 GB, free: 9.973 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002021/0.5425, allocations: 207.2 kB / 0.6817 GB, free: 9.77 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003014/0.5428, allocations: 55.97 kB / 0.6817 GB, free: 9.715 MB / 494.1 MB Warning: Assuming fixed start value for the following 4 variables: order3.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order2.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order2.delta:VARIABLE(flow=false start = order2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order3.delta:VARIABLE(flow=false start = order3.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (160): * Single equations (assignments): 157 * Array equations: 0 * Algorithm blocks: 2 * 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): 1 system {(19,14,24.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008884/0.5437, allocations: 296.2 kB / 0.682 GB, free: 9.406 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004133/0.5441, allocations: 135.2 kB / 0.6821 GB, free: 9.273 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01265/0.5568, allocations: 3.869 MB / 0.6859 GB, free: 5.367 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.187e-05/0.5569, allocations: 12 kB / 0.6859 GB, free: 5.355 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.597e-05/0.5569, allocations: 8 kB / 0.6859 GB, free: 5.348 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.385e-05/0.5569, allocations: 3.984 kB / 0.6859 GB, free: 5.344 MB / 494.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 postOpt removeSimpleEquations (simulation): time 0.0153/0.5722, allocations: 5.456 MB / 0.6912 GB, free: 15.78 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.399e-05/0.5723, allocations: 4 kB / 0.6912 GB, free: 15.78 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006286/0.5729, allocations: 99.83 kB / 0.6913 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005555/0.5785, allocations: 1.607 MB / 0.6929 GB, free: 14.07 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002121/0.5787, allocations: 16 kB / 0.6929 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02048/0.5992, allocations: 9.651 MB / 0.7024 GB, free: 4.109 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.028e-06/0.5993, allocations: 0 / 0.7024 GB, free: 4.109 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01449/0.6138, allocations: 4.736 MB / 0.707 GB, free: 15.34 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005174/0.6144, allocations: 228 kB / 0.7072 GB, free: 15.1 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004089/0.6148, allocations: 23.94 kB / 0.7072 GB, free: 15.07 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001376/0.6162, allocations: 107.9 kB / 0.7073 GB, free: 14.97 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000656/0.6169, allocations: 200.8 kB / 0.7075 GB, free: 14.77 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001295/0.617, allocations: 20 kB / 0.7075 GB, free: 14.75 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001304/0.6183, allocations: 0.7393 MB / 0.7083 GB, free: 14.01 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.2e-07/0.6183, allocations: 4 kB / 0.7083 GB, free: 14 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001779/0.6201, allocations: 467.7 kB / 0.7087 GB, free: 13.55 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 9 (order2.delta,order2.w,order3.delta,order3.w,order3.e1q,aVRTypeII.ExcitationSystem.x_scaled[1],aVRTypeII.derivativeBlock.x,aVRTypeII.firstOrder2.y,aVRTypeII.simpleLagLim.state) * Number of discrete variables: 2 ($whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(20,12,23.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01484/0.635, allocations: 5.326 MB / 0.7139 GB, free: 8.172 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.006767/0.6418, allocations: 2.52 MB / 0.7164 GB, free: 5.609 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.37e-06/0.6418, allocations: 0 / 0.7164 GB, free: 5.609 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.004528/0.6464, allocations: 1.615 MB / 0.7179 GB, free: 3.953 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00162/0.648, allocations: 123.5 kB / 0.7181 GB, free: 3.84 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0402/0.6882, allocations: 16.04 MB / 0.7337 GB, free: 3.574 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008161/0.6891, allocations: 1.12 MB / 0.7348 GB, free: 2.422 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0005635/0.6897, allocations: 120 kB / 0.7349 GB, free: 2.301 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007487/0.6905, allocations: 479.3 kB / 0.7354 GB, free: 1.832 MB / 0.5294 GB Notification: Performance of SimCode: time 7.72e-07/0.6905, allocations: 0 / 0.7354 GB, free: 1.832 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3777/1.068, allocations: 34.27 MB / 0.7689 GB, free: 137.6 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.41/14.47, allocations: 14.11 kB / 0.7689 GB, free: 137.6 MB / 0.5606 GB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.sim & python3 -m fmpy simulate --output-file OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.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_OpenIPSL_Examples_PSATSystems_TwoAreaOld_ThirdOrder_AVRII.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe 2>&1)