Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_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.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.ThirdOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_ThirdOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII,fileNamePrefix="OpenIPSL_dev_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.006162/0.006162, allocations: 94.86 kB / 15.73 MB, free: 6.039 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.334/1.334, 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.001595/0.001594, allocations: 192.4 kB / 289.7 MB, free: 2.262 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4976/0.4976, allocations: 91.91 MB / 431.8 MB, free: 9.168 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001385/0.001385, allocations: 77.97 kB / 0.5723 GB, free: 33.57 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1393/0.1407, allocations: 71.29 MB / 0.6419 GB, free: 4.074 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII): time 0.006567/0.1473, allocations: 6.515 MB / 0.6482 GB, free: 13.53 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.003801/0.1511, allocations: 1.955 MB / 0.6502 GB, free: 11.57 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004437/0.1516, allocations: 8 kB / 0.6502 GB, free: 11.56 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006671/0.1523, allocations: 241.9 kB / 0.6504 GB, free: 11.32 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00177/0.154, allocations: 0.8472 MB / 0.6512 GB, free: 10.48 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001178/0.1552, allocations: 0.6289 MB / 0.6518 GB, free: 9.852 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001404/0.1566, allocations: 1.585 MB / 0.6534 GB, free: 8.262 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004222/0.1571, allocations: 326.4 kB / 0.6537 GB, free: 7.934 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006317/0.1577, allocations: 0.6574 MB / 0.6543 GB, free: 7.273 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007537/0.1585, allocations: 0.8284 MB / 0.6551 GB, free: 6.441 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001585/0.1587, allocations: 120 kB / 0.6553 GB, free: 6.324 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004485/0.1591, allocations: 259.9 kB / 0.6555 GB, free: 6.07 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002658/0.1594, allocations: 330.6 kB / 0.6558 GB, free: 5.746 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004975/0.1599, allocations: 0.668 MB / 0.6565 GB, free: 5.074 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0015/0.1614, allocations: 1.673 MB / 0.6581 GB, free: 3.395 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.209e-06/0.1614, allocations: 0 / 0.6581 GB, free: 3.395 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1614, allocations: 0 / 0.6581 GB, free: 3.395 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.255e-05/0.1614, allocations: 0 / 0.6581 GB, free: 3.395 MB / 462.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.007914/0.1694, allocations: 2.737 MB / 0.6608 GB, free: 0.5859 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.531e-05/0.1694, allocations: 12.03 kB / 0.6608 GB, free: 0.5742 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00014/0.1696, allocations: 126.6 kB / 0.6609 GB, free: 452 kB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004626/0.1742, allocations: 0.7796 MB / 0.6617 GB, free: 15.66 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001427/0.1756, allocations: 0.899 MB / 0.6625 GB, free: 14.71 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002684/0.1759, allocations: 252.2 kB / 0.6628 GB, free: 14.43 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001514/0.1761, allocations: 88 kB / 0.6629 GB, free: 14.34 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001947/0.178, allocations: 1.083 MB / 0.6639 GB, free: 13.24 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.919e-05/0.1781, allocations: 0 / 0.6639 GB, free: 13.24 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.762e-05/0.1782, allocations: 31.98 kB / 0.664 GB, free: 13.21 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.615e-05/0.1782, allocations: 20 kB / 0.664 GB, free: 13.19 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001881/0.1801, allocations: 0.9877 MB / 0.6649 GB, free: 12.2 MB / 478.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.005854/0.1859, allocations: 3.801 MB / 0.6687 GB, free: 8.219 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006893/0.1928, allocations: 2.375 MB / 0.671 GB, free: 5.75 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00126/0.1941, allocations: 0.6684 MB / 0.6716 GB, free: 5.078 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001102/0.1942, allocations: 20.98 kB / 0.6716 GB, free: 5.059 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00149/0.1957, allocations: 0.8099 MB / 0.6724 GB, free: 4.23 MB / 478.1 MB Notification: Performance of pre-optimization done (n=95): time 2.685e-06/0.1957, allocations: 0 / 0.6724 GB, free: 4.23 MB / 478.1 MB Notification: Performance of matching and sorting (n=95): time 0.02707/0.2228, allocations: 7.206 MB / 0.6795 GB, free: 12.96 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.37e-05/0.2229, allocations: 111.8 kB / 0.6796 GB, free: 12.83 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001566/0.2245, allocations: 1.091 MB / 0.6806 GB, free: 11.72 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001632/0.2246, allocations: 41.7 kB / 0.6807 GB, free: 11.68 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003388/0.225, allocations: 0.4975 MB / 0.6812 GB, free: 11.17 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003424/0.2253, allocations: 361 kB / 0.6815 GB, free: 10.82 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004596/0.2258, allocations: 287.5 kB / 0.6818 GB, free: 10.53 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.834e-05/0.2259, allocations: 301.1 kB / 0.6821 GB, free: 10.23 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00148/0.2274, allocations: 0.7574 MB / 0.6828 GB, free: 9.477 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001569/0.229, allocations: 0.9264 MB / 0.6837 GB, free: 8.512 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0212/0.2502, allocations: 5.556 MB / 0.6892 GB, free: 2.871 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.738e-06/0.2502, allocations: 0 / 0.6892 GB, free: 2.871 MB / 494.1 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.01256/0.2628, allocations: 4.368 MB / 0.6934 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 5.92e-05/0.2629, allocations: 59.41 kB / 0.6935 GB, free: 14.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.435e-05/0.2629, allocations: 7.938 kB / 0.6935 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005433/0.2683, allocations: 1.592 MB / 0.695 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001326/0.2697, allocations: 275.6 kB / 0.6953 GB, free: 12.53 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01867/0.2884, allocations: 8.515 MB / 0.7036 GB, free: 3.863 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001782/0.2902, allocations: 203.2 kB / 0.7038 GB, free: 3.664 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001191/0.2903, allocations: 55.97 kB / 0.7039 GB, free: 3.609 MB / 0.4981 GB 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.0005541/0.2909, allocations: 308.6 kB / 0.7042 GB, free: 3.293 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001863/0.2911, allocations: 131.2 kB / 0.7043 GB, free: 3.164 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01187/0.3029, allocations: 3.877 MB / 0.7081 GB, free: 15.26 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.546e-05/0.303, allocations: 8 kB / 0.7081 GB, free: 15.25 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.076e-05/0.303, allocations: 8 kB / 0.7081 GB, free: 15.25 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.985e-05/0.303, allocations: 7.969 kB / 0.7081 GB, free: 15.24 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.01359/0.3166, allocations: 5.456 MB / 0.7134 GB, free: 9.668 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.867e-06/0.3167, allocations: 0 / 0.7134 GB, free: 9.668 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005395/0.3172, allocations: 95.84 kB / 0.7135 GB, free: 9.574 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005191/0.3224, allocations: 1.603 MB / 0.7151 GB, free: 7.965 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001228/0.3226, allocations: 27.98 kB / 0.7151 GB, free: 7.938 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01887/0.3415, allocations: 9.653 MB / 0.7245 GB, free: 14 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.3415, allocations: 0 / 0.7245 GB, free: 14 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01344/0.3549, allocations: 4.739 MB / 0.7292 GB, free: 9.223 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005038/0.3555, allocations: 231.9 kB / 0.7294 GB, free: 8.977 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001543/0.3556, allocations: 20 kB / 0.7294 GB, free: 8.957 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001034/0.3567, allocations: 107.9 kB / 0.7295 GB, free: 8.852 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005587/0.3573, allocations: 192.7 kB / 0.7297 GB, free: 8.66 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.891e-05/0.3573, allocations: 31.98 kB / 0.7297 GB, free: 8.629 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0009688/0.3583, allocations: 0.7276 MB / 0.7304 GB, free: 7.895 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3583, allocations: 4 kB / 0.7304 GB, free: 7.891 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001271/0.3596, allocations: 471.7 kB / 0.7309 GB, free: 7.43 MB / 0.5294 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.01364/0.3733, allocations: 5.324 MB / 0.7361 GB, free: 2.055 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.005954/0.3792, allocations: 2.528 MB / 0.7385 GB, free: 15.49 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.419e-06/0.3793, allocations: 0.75 kB / 0.7385 GB, free: 15.49 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004023/0.3833, allocations: 1.599 MB / 0.7401 GB, free: 13.85 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009579/0.3843, allocations: 117.7 kB / 0.7402 GB, free: 13.73 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03535/0.4196, allocations: 16.04 MB / 0.7559 GB, free: 13.46 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006063/0.4203, allocations: 1.12 MB / 0.757 GB, free: 12.31 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0005049/0.4208, allocations: 120 kB / 0.7571 GB, free: 12.19 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005546/0.4214, allocations: 483.3 kB / 0.7576 GB, free: 11.72 MB / 0.5606 GB Notification: Performance of SimCode: time 5.51e-07/0.4214, allocations: 0 / 0.7576 GB, free: 11.72 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3667/0.788, allocations: 34.28 MB / 0.791 GB, free: 111.8 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.78/14.57, allocations: 4.062 kB / 0.791 GB, free: 111.8 MB / 0.5606 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.sim & python3 -m fmpy simulate --output-file OpenIPSL_dev_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_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_ThirdOrder_AVRII.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe 2>&1)