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.008231/0.008231, allocations: 97.8 kB / 15.73 MB, free: 6.051 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.556/1.556, allocations: 222.9 MB / 239.4 MB, free: 4.543 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.001793/0.001793, allocations: 188.5 kB / 289.7 MB, free: 2.266 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.5235/0.5235, allocations: 78.54 MB / 418.4 MB, free: 3.152 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002371/0.002371, allocations: 79.8 kB / 0.5532 GB, free: 1.453 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4888/0.4912, allocations: 68.17 MB / 0.6197 GB, free: 9.395 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII): time 0.007027/0.4983, allocations: 6.506 MB / 0.6261 GB, free: 3.676 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.004468/0.5028, allocations: 1.955 MB / 0.628 GB, free: 1.715 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00101/0.5039, allocations: 12 kB / 0.628 GB, free: 1.703 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007699/0.5047, allocations: 237.9 kB / 0.6282 GB, free: 1.469 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001995/0.5067, allocations: 0.8155 MB / 0.629 GB, free: 0.6562 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001177/0.5079, allocations: 0.6175 MB / 0.6296 GB, free: 44 kB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.002575/0.5105, allocations: 1.577 MB / 0.6312 GB, free: 14.46 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007284/0.5112, allocations: 326.4 kB / 0.6315 GB, free: 14.13 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001282/0.5125, allocations: 0.6535 MB / 0.6321 GB, free: 13.47 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001104/0.5136, allocations: 0.8246 MB / 0.6329 GB, free: 12.64 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002019/0.5138, allocations: 120 kB / 0.633 GB, free: 12.53 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006165/0.5145, allocations: 263.8 kB / 0.6333 GB, free: 12.27 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003523/0.5148, allocations: 326.6 kB / 0.6336 GB, free: 11.95 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006785/0.5155, allocations: 0.668 MB / 0.6343 GB, free: 11.28 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002305/0.5178, allocations: 1.673 MB / 0.6359 GB, free: 9.602 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.5178, allocations: 0 / 0.6359 GB, free: 9.602 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.5179, allocations: 3.938 kB / 0.6359 GB, free: 9.598 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.852e-05/0.5179, allocations: 0 / 0.6359 GB, free: 9.598 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.009699/0.5276, allocations: 2.734 MB / 0.6386 GB, free: 6.793 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.732e-05/0.5277, allocations: 8.031 kB / 0.6386 GB, free: 6.785 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001944/0.5279, allocations: 130.6 kB / 0.6387 GB, free: 6.648 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005109/0.533, allocations: 0.7796 MB / 0.6395 GB, free: 5.867 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00199/0.535, allocations: 0.899 MB / 0.6403 GB, free: 4.914 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003649/0.5354, allocations: 256.2 kB / 0.6406 GB, free: 4.625 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001816/0.5356, allocations: 87.98 kB / 0.6407 GB, free: 4.539 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002412/0.538, allocations: 1.079 MB / 0.6417 GB, free: 3.449 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.97e-05/0.538, allocations: 4 kB / 0.6417 GB, free: 3.445 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.56e-05/0.5381, allocations: 28 kB / 0.6417 GB, free: 3.418 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.33e-05/0.5382, allocations: 20 kB / 0.6418 GB, free: 3.398 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002191/0.5403, allocations: 0.9877 MB / 0.6427 GB, free: 2.41 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.007653/0.548, allocations: 3.801 MB / 0.6464 GB, free: 14.43 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007941/0.556, allocations: 2.365 MB / 0.6487 GB, free: 11.98 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001595/0.5576, allocations: 0.6828 MB / 0.6494 GB, free: 11.29 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001122/0.5577, allocations: 12.98 kB / 0.6494 GB, free: 11.28 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001771/0.5595, allocations: 0.8216 MB / 0.6502 GB, free: 10.44 MB / 462.1 MB Notification: Performance of pre-optimization done (n=95): time 3.026e-06/0.5595, allocations: 0 / 0.6502 GB, free: 10.44 MB / 462.1 MB Notification: Performance of matching and sorting (n=95): time 0.03108/0.5906, allocations: 7.195 MB / 0.6573 GB, free: 3.18 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.774e-05/0.5908, allocations: 115.8 kB / 0.6574 GB, free: 3.043 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00201/0.5928, allocations: 1.095 MB / 0.6584 GB, free: 1.934 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002411/0.593, allocations: 49.69 kB / 0.6585 GB, free: 1.879 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004776/0.5935, allocations: 0.4936 MB / 0.659 GB, free: 1.379 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004628/0.594, allocations: 360.9 kB / 0.6593 GB, free: 1.023 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005364/0.5945, allocations: 283.5 kB / 0.6596 GB, free: 0.7422 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001572/0.5947, allocations: 301.1 kB / 0.6599 GB, free: 456 kB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001759/0.5965, allocations: 0.7574 MB / 0.6606 GB, free: 15.69 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001879/0.5984, allocations: 0.9303 MB / 0.6615 GB, free: 14.71 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02522/0.6236, allocations: 5.556 MB / 0.6669 GB, free: 9.074 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.445e-05/0.6237, allocations: 3.938 kB / 0.6669 GB, free: 9.07 MB / 478.1 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.01562/0.6393, allocations: 4.368 MB / 0.6712 GB, free: 4.672 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.131e-05/0.6394, allocations: 63.41 kB / 0.6713 GB, free: 4.598 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.046e-05/0.6395, allocations: 4 kB / 0.6713 GB, free: 4.594 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006231/0.6457, allocations: 1.588 MB / 0.6728 GB, free: 3.004 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00155/0.6473, allocations: 283.6 kB / 0.6731 GB, free: 2.727 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02301/0.6703, allocations: 8.5 MB / 0.6814 GB, free: 10.07 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002327/0.6727, allocations: 207.2 kB / 0.6816 GB, free: 9.871 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003855/0.6731, allocations: 51.98 kB / 0.6816 GB, free: 9.82 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.001146/0.6743, allocations: 318.9 kB / 0.6819 GB, free: 9.492 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005299/0.6748, allocations: 135.2 kB / 0.6821 GB, free: 9.359 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01439/0.6892, allocations: 3.869 MB / 0.6859 GB, free: 5.453 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.951e-05/0.6893, allocations: 8 kB / 0.6859 GB, free: 5.445 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.126e-05/0.6894, allocations: 8 kB / 0.6859 GB, free: 5.438 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.849e-05/0.6894, allocations: 3.984 kB / 0.6859 GB, free: 5.434 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.0175/0.7069, allocations: 5.456 MB / 0.6912 GB, free: 15.87 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-05/0.707, allocations: 0 / 0.6912 GB, free: 15.87 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007086/0.7077, allocations: 99.83 kB / 0.6913 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006196/0.7139, allocations: 1.607 MB / 0.6929 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002579/0.7142, allocations: 16 kB / 0.6929 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02397/0.7382, allocations: 9.645 MB / 0.7023 GB, free: 4.211 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.7383, allocations: 0 / 0.7023 GB, free: 4.211 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0169/0.7552, allocations: 4.743 MB / 0.7069 GB, free: 15.43 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007917/0.7561, allocations: 228 kB / 0.7071 GB, free: 15.19 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005633/0.7566, allocations: 28 kB / 0.7072 GB, free: 15.16 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001672/0.7583, allocations: 107.9 kB / 0.7073 GB, free: 15.06 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000861/0.7592, allocations: 196.7 kB / 0.7075 GB, free: 14.87 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001822/0.7594, allocations: 20 kB / 0.7075 GB, free: 14.85 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001676/0.7611, allocations: 0.7393 MB / 0.7082 GB, free: 14.1 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.91e-07/0.7611, allocations: 4 kB / 0.7082 GB, free: 14.1 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.002326/0.7635, allocations: 467.7 kB / 0.7087 GB, free: 13.64 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.01722/0.7807, allocations: 5.326 MB / 0.7139 GB, free: 8.266 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.008179/0.7889, allocations: 2.52 MB / 0.7163 GB, free: 5.703 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.14e-05/0.789, allocations: 4 kB / 0.7163 GB, free: 5.699 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.005298/0.7943, allocations: 1.603 MB / 0.7179 GB, free: 4.055 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001706/0.796, allocations: 113 kB / 0.718 GB, free: 3.945 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04805/0.8441, allocations: 16.05 MB / 0.7337 GB, free: 3.664 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001233/0.8454, allocations: 1.12 MB / 0.7348 GB, free: 2.512 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0007721/0.8462, allocations: 120 kB / 0.7349 GB, free: 2.391 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001006/0.8472, allocations: 479.3 kB / 0.7353 GB, free: 1.922 MB / 0.5294 GB Notification: Performance of SimCode: time 7.11e-07/0.8473, allocations: 0 / 0.7353 GB, free: 1.922 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4681/1.315, allocations: 34.27 MB / 0.7688 GB, free: 142.4 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.72/17.04, allocations: 4.75 kB / 0.7688 GB, free: 142.4 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)