Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_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.TwoAreaOld.FifthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FifthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FifthOrder_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.001654/0.001654, allocations: 104 kB / 15.6 MB, free: 148 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.545/1.545, allocations: 222.9 MB / 239.3 MB, free: 4.602 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.002207/0.002207, allocations: 195.7 kB / 289.6 MB, free: 2.316 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5918/0.5918, allocations: 91.9 MB / 431.6 MB, free: 9.281 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002932/0.002933, allocations: 75.88 kB / 0.502 GB, free: 7.66 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5279/0.5309, allocations: 71.28 MB / 0.5716 GB, free: 36.63 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII): time 0.006931/0.5379, allocations: 6.66 MB / 0.5781 GB, free: 32.79 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.004346/0.5423, allocations: 1.996 MB / 0.58 GB, free: 31.44 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008319/0.5432, allocations: 15.25 kB / 0.58 GB, free: 31.44 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008028/0.544, allocations: 236.2 kB / 0.5803 GB, free: 31.31 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002019/0.546, allocations: 0.8216 MB / 0.5811 GB, free: 30.78 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001355/0.5474, allocations: 0.6342 MB / 0.5817 GB, free: 30.46 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001657/0.5491, allocations: 1.626 MB / 0.5833 GB, free: 29.67 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004949/0.5496, allocations: 331 kB / 0.5836 GB, free: 29.54 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008658/0.5505, allocations: 0.6702 MB / 0.5842 GB, free: 29.21 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007755/0.5512, allocations: 0.8595 MB / 0.5851 GB, free: 28.8 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000191/0.5514, allocations: 125.8 kB / 0.5852 GB, free: 28.8 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000619/0.5521, allocations: 271.3 kB / 0.5855 GB, free: 28.75 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002847/0.5524, allocations: 340.5 kB / 0.5858 GB, free: 28.54 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006011/0.553, allocations: 0.6904 MB / 0.5865 GB, free: 28.07 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001822/0.5548, allocations: 1.688 MB / 0.5881 GB, free: 27.31 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.311e-06/0.5548, allocations: 0 / 0.5881 GB, free: 27.31 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.5548, allocations: 0 / 0.5881 GB, free: 27.31 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.709e-05/0.5549, allocations: 0 / 0.5881 GB, free: 27.31 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: 191 * Number of variables: 191 Notification: Performance of Generate backend data structure: time 0.009559/0.5644, allocations: 2.756 MB / 0.5908 GB, free: 26.03 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.881e-05/0.5645, allocations: 9.531 kB / 0.5908 GB, free: 26.03 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001707/0.5647, allocations: 124.3 kB / 0.5909 GB, free: 25.94 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005179/0.5699, allocations: 0.7723 MB / 0.5917 GB, free: 25.78 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001855/0.5717, allocations: 0.9141 MB / 0.5926 GB, free: 25.17 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002906/0.5721, allocations: 261.3 kB / 0.5928 GB, free: 24.95 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001912/0.5723, allocations: 91.34 kB / 0.5929 GB, free: 24.91 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002288/0.5746, allocations: 1.103 MB / 0.594 GB, free: 24.49 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.094e-05/0.5746, allocations: 0 / 0.594 GB, free: 24.49 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001015/0.5747, allocations: 30.53 kB / 0.594 GB, free: 24.46 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.484e-05/0.5747, allocations: 18.28 kB / 0.594 GB, free: 24.46 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002287/0.577, allocations: 0.9994 MB / 0.595 GB, free: 24.13 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.007772/0.5848, allocations: 3.88 MB / 0.5988 GB, free: 21.89 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008746/0.5936, allocations: 2.389 MB / 0.6011 GB, free: 21.05 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001945/0.5956, allocations: 0.6842 MB / 0.6018 GB, free: 20.78 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001123/0.5957, allocations: 16.67 kB / 0.6018 GB, free: 20.78 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002126/0.5978, allocations: 0.8334 MB / 0.6026 GB, free: 20.45 MB / 430.1 MB Notification: Performance of pre-optimization done (n=97): time 4.489e-06/0.5978, allocations: 1.281 kB / 0.6026 GB, free: 20.45 MB / 430.1 MB Notification: Performance of matching and sorting (n=97): time 0.03322/0.6311, allocations: 7.222 MB / 0.6097 GB, free: 19.04 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.618e-05/0.6312, allocations: 113.7 kB / 0.6098 GB, free: 18.92 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00253/0.6337, allocations: 1.132 MB / 0.6109 GB, free: 18.45 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003001/0.634, allocations: 42.69 kB / 0.6109 GB, free: 18.4 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004138/0.6344, allocations: 0.4992 MB / 0.6114 GB, free: 18 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004829/0.6349, allocations: 358.6 kB / 0.6118 GB, free: 17.72 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006651/0.6356, allocations: 292.2 kB / 0.6121 GB, free: 17.59 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 7.255e-05/0.6357, allocations: 306.7 kB / 0.6123 GB, free: 17.29 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001752/0.6374, allocations: 0.7791 MB / 0.6131 GB, free: 16.89 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001953/0.6394, allocations: 0.955 MB / 0.614 GB, free: 16.33 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02564/0.6651, allocations: 5.819 MB / 0.6197 GB, free: 12.77 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.478e-05/0.6651, allocations: 4 kB / 0.6197 GB, free: 12.76 MB / 430.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.0133/0.6784, allocations: 4.446 MB / 0.6241 GB, free: 8.285 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.432e-05/0.6786, allocations: 69.42 kB / 0.6241 GB, free: 8.207 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.992e-05/0.6786, allocations: 8 kB / 0.6241 GB, free: 8.199 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005934/0.6845, allocations: 1.635 MB / 0.6257 GB, free: 6.562 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001607/0.6862, allocations: 287.6 kB / 0.626 GB, free: 6.281 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02117/0.7073, allocations: 8.611 MB / 0.6344 GB, free: 13.51 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002792/0.7102, allocations: 210.6 kB / 0.6346 GB, free: 13.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004066/0.7106, allocations: 51.98 kB / 0.6347 GB, free: 13.25 MB / 446.1 MB Warning: Assuming fixed start value for the following 5 variables: order5.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 order5.delta:VARIABLE(flow=false start = order5.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order5.e1q:VARIABLE(start = order5.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" 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 (167): * Single equations (assignments): 164 * 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 {(20,14,23.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001279/0.7119, allocations: 308.4 kB / 0.635 GB, free: 12.93 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00058/0.7125, allocations: 122.5 kB / 0.6351 GB, free: 12.81 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01395/0.7265, allocations: 3.9 MB / 0.6389 GB, free: 8.883 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.809e-05/0.7265, allocations: 15.98 kB / 0.6389 GB, free: 8.867 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.748e-05/0.7266, allocations: 11.94 kB / 0.6389 GB, free: 8.855 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.192e-05/0.7266, allocations: 3.984 kB / 0.6389 GB, free: 8.852 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 postOpt removeSimpleEquations (simulation): time 0.01733/0.744, allocations: 5.516 MB / 0.6443 GB, free: 3.223 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.531e-05/0.744, allocations: 0 / 0.6443 GB, free: 3.223 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000797/0.7448, allocations: 103.8 kB / 0.6444 GB, free: 3.121 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006031/0.7509, allocations: 1.591 MB / 0.646 GB, free: 1.523 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002617/0.7512, allocations: 31.98 kB / 0.646 GB, free: 1.492 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0223/0.7735, allocations: 9.653 MB / 0.6554 GB, free: 7.547 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.171e-06/0.7736, allocations: 4 kB / 0.6554 GB, free: 7.543 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01612/0.7897, allocations: 4.768 MB / 0.6601 GB, free: 2.742 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008663/0.7906, allocations: 223.2 kB / 0.6603 GB, free: 2.504 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005699/0.7912, allocations: 31.86 kB / 0.6603 GB, free: 2.473 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001698/0.7929, allocations: 107.9 kB / 0.6604 GB, free: 2.367 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008181/0.7938, allocations: 196.7 kB / 0.6606 GB, free: 2.172 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001353/0.7939, allocations: 28 kB / 0.6606 GB, free: 2.145 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001518/0.7954, allocations: 0.7592 MB / 0.6614 GB, free: 1.379 MB / 462.1 MB Notification: Performance of sort global known variables: time 7.62e-07/0.7955, allocations: 0 / 0.6614 GB, free: 1.379 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002331/0.7978, allocations: 491.5 kB / 0.6618 GB, free: 0.8984 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 11 (order2.delta,order2.w,order5.delta,order5.w,order5.e1q,order5.e2q,order5.e2d,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 (65): * Single equations (assignments): 62 * 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 {(18,14,25.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01667/0.8145, allocations: 5.359 MB / 0.6671 GB, free: 11.49 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.008539/0.8231, allocations: 2.64 MB / 0.6697 GB, free: 8.816 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.383e-06/0.8231, allocations: 0 / 0.6697 GB, free: 8.816 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004905/0.828, allocations: 1.59 MB / 0.6712 GB, free: 7.184 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001856/0.8299, allocations: 116.1 kB / 0.6713 GB, free: 7.07 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04756/0.8775, allocations: 17.3 MB / 0.6882 GB, free: 5.316 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001058/0.8786, allocations: 1.136 MB / 0.6893 GB, free: 4.152 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0008054/0.8795, allocations: 124.1 kB / 0.6894 GB, free: 4.031 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001015/0.8805, allocations: 475.2 kB / 0.6899 GB, free: 3.57 MB / 494.1 MB Notification: Performance of SimCode: time 1.533e-06/0.8805, allocations: 4 kB / 0.6899 GB, free: 3.566 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08967/0.9702, allocations: 34.74 MB / 0.7238 GB, free: 1.012 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.1/15.07, allocations: 2.188 kB / 0.7238 GB, free: 1.012 MB / 0.5137 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.sim & python3 -m fmpy simulate --output-file OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_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_TwoAreaOld_FifthOrder_AVRII.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe 2>&1)