Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_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.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_ThreeArea_FourthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_ThreeArea_FourthOrder_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.00716/0.00716, allocations: 96.11 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.342/1.342, 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.001383/0.001383, allocations: 192.5 kB / 289.7 MB, free: 2.254 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5162/0.5162, allocations: 91.9 MB / 431.8 MB, free: 9.188 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001491/0.001491, allocations: 77.59 kB / 0.5723 GB, free: 33.69 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1371/0.1386, allocations: 71.29 MB / 0.6419 GB, free: 4.059 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII): time 0.01303/0.1517, allocations: 13.71 MB / 0.6553 GB, free: 6.293 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.008508/0.1602, allocations: 3.48 MB / 0.6587 GB, free: 2.797 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003388/0.1636, allocations: 28 kB / 0.6587 GB, free: 2.77 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002266/0.1659, allocations: 0.5615 MB / 0.6593 GB, free: 2.203 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006336/0.1723, allocations: 1.566 MB / 0.6608 GB, free: 0.6367 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004446/0.1768, allocations: 1.515 MB / 0.6623 GB, free: 15.14 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.006623/0.1835, allocations: 3.725 MB / 0.6659 GB, free: 11.4 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001973/0.1855, allocations: 0.8973 MB / 0.6668 GB, free: 10.45 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002864/0.1884, allocations: 1.529 MB / 0.6683 GB, free: 8.918 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00311/0.1915, allocations: 1.948 MB / 0.6702 GB, free: 6.961 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001132/0.1927, allocations: 284 kB / 0.6705 GB, free: 6.684 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001519/0.1942, allocations: 435.8 kB / 0.6709 GB, free: 6.258 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001069/0.1953, allocations: 0.7546 MB / 0.6716 GB, free: 5.5 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002599/0.1979, allocations: 1.631 MB / 0.6732 GB, free: 3.859 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005691/0.2036, allocations: 3.994 MB / 0.6771 GB, free: 15.85 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.173e-06/0.2036, allocations: 0 / 0.6771 GB, free: 15.85 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.2036, allocations: 3.938 kB / 0.6771 GB, free: 15.84 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.0001623/0.2038, allocations: 0 / 0.6771 GB, free: 15.84 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 523 * Number of variables: 523 Notification: Performance of Generate backend data structure: time 0.02435/0.2282, allocations: 6.678 MB / 0.6836 GB, free: 9.066 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.201e-05/0.2282, allocations: 8.031 kB / 0.6836 GB, free: 9.059 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006952/0.2289, allocations: 307.2 kB / 0.6839 GB, free: 8.746 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01522/0.2442, allocations: 2.292 MB / 0.6862 GB, free: 6.449 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004472/0.2487, allocations: 1.892 MB / 0.688 GB, free: 4.492 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000859/0.2496, allocations: 0.7291 MB / 0.6887 GB, free: 3.648 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007677/0.2504, allocations: 212 kB / 0.6889 GB, free: 3.441 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007455/0.2578, allocations: 3.039 MB / 0.6919 GB, free: 332 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.251e-05/0.2579, allocations: 0 / 0.6919 GB, free: 332 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003621/0.2583, allocations: 87.92 kB / 0.692 GB, free: 244 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.419e-05/0.2583, allocations: 55.98 kB / 0.692 GB, free: 188 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006906/0.2652, allocations: 2.78 MB / 0.6948 GB, free: 13.39 MB / 0.4981 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 preOpt removeSimpleEquations (simulation): time 0.02159/0.2869, allocations: 9.858 MB / 0.7044 GB, free: 3.113 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01144/0.2983, allocations: 4.184 MB / 0.7085 GB, free: 14.79 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004529/0.3029, allocations: 1.964 MB / 0.7104 GB, free: 12.82 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003903/0.3033, allocations: 37.95 kB / 0.7104 GB, free: 12.79 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005245/0.3086, allocations: 2.24 MB / 0.7126 GB, free: 10.52 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=248): time 5.831e-06/0.3086, allocations: 0 / 0.7126 GB, free: 10.52 MB / 0.5137 GB Notification: Performance of matching and sorting (n=248): time 0.1235/0.4321, allocations: 28.18 MB / 0.7401 GB, free: 14.21 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001319/0.4323, allocations: 192.3 kB / 0.7403 GB, free: 13.99 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004258/0.4366, allocations: 2.273 MB / 0.7425 GB, free: 11.7 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0007143/0.4373, allocations: 77.62 kB / 0.7426 GB, free: 11.61 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.001082/0.4384, allocations: 1.181 MB / 0.7438 GB, free: 10.42 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001458/0.4399, allocations: 0.9102 MB / 0.7447 GB, free: 9.504 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002099/0.442, allocations: 0.5698 MB / 0.7452 GB, free: 8.926 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001105/0.4421, allocations: 305.1 kB / 0.7455 GB, free: 8.625 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004925/0.447, allocations: 1.951 MB / 0.7474 GB, free: 6.672 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005363/0.4524, allocations: 2.314 MB / 0.7497 GB, free: 4.266 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.05772/0.5102, allocations: 14.02 MB / 0.7634 GB, free: 6.008 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.039e-05/0.5103, allocations: 3.938 kB / 0.7634 GB, free: 6.004 MB / 0.5606 GB Notification: Performance of matching and sorting (n=417) (initialization): time 0.356/0.8662, allocations: 12.51 MB / 0.7756 GB, free: 108.1 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.045e-05/0.8664, allocations: 121 kB / 0.7757 GB, free: 108 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.819e-05/0.8664, allocations: 6.125 kB / 0.7757 GB, free: 108 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01882/0.8852, allocations: 5.286 MB / 0.7809 GB, free: 107.9 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003052/0.8883, allocations: 0.5714 MB / 0.7814 GB, free: 107.9 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05764/0.946, allocations: 23.2 MB / 0.8041 GB, free: 99.27 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005456/0.9515, allocations: 495.8 kB / 0.8046 GB, free: 98.91 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009285/0.9525, allocations: 116 kB / 0.8047 GB, free: 98.8 MB / 0.5606 GB Warning: Assuming fixed start value for the following 7 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 order4_1.delta:VARIABLE(flow=false start = order4_1.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order4_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 (330): * Single equations (assignments): 325 * 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): 1 system {(63,25,8.1%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00222/0.9547, allocations: 0.5306 MB / 0.8052 GB, free: 98.26 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001046/0.9558, allocations: 320.4 kB / 0.8055 GB, free: 97.98 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06256/1.018, allocations: 11.9 MB / 0.8171 GB, free: 86.03 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.307e-05/1.018, allocations: 24 kB / 0.8171 GB, free: 86.01 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001238/1.019, allocations: 20 kB / 0.8172 GB, free: 85.99 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.382e-05/1.019, allocations: 11.95 kB / 0.8172 GB, free: 85.98 MB / 0.5606 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.06526/1.084, allocations: 15.51 MB / 0.8323 GB, free: 70.41 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.573e-05/1.084, allocations: 6.062 kB / 0.8323 GB, free: 70.41 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002106/1.086, allocations: 246.3 kB / 0.8326 GB, free: 70.17 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0239/1.11, allocations: 5.245 MB / 0.8377 GB, free: 64.91 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008383/1.111, allocations: 55.98 kB / 0.8377 GB, free: 64.86 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.07275/1.184, allocations: 24.97 MB / 0.8621 GB, free: 39.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/1.184, allocations: 0 / 0.8621 GB, free: 39.5 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04215/1.226, allocations: 14.29 MB / 0.8761 GB, free: 25.1 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008823/1.227, allocations: 423.7 kB / 0.8765 GB, free: 24.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007294/1.228, allocations: 47.94 kB / 0.8765 GB, free: 24.66 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002876/1.231, allocations: 303.6 kB / 0.8768 GB, free: 24.36 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002071/1.233, allocations: 0.5802 MB / 0.8774 GB, free: 23.78 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002211/1.233, allocations: 67.98 kB / 0.8774 GB, free: 23.71 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001918/1.235, allocations: 1.503 MB / 0.8789 GB, free: 22.2 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.71e-07/1.235, allocations: 0 / 0.8789 GB, free: 22.2 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.002975/1.238, allocations: 1.178 MB / 0.8801 GB, free: 21.06 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 17 (order3_2.delta,order3_2.w,order3_2.e1q,order2.delta,order2.w,order4_1.delta,order4_1.w,order4_1.e1q,order4_1.e1d,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 (157): * Single equations (assignments): 152 * 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 {(65,23,7.8%)} * 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.04237/1.28, allocations: 14.91 MB / 0.8946 GB, free: 6.027 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01837/1.299, allocations: 6.644 MB / 0.9011 GB, free: 15.32 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 9.949e-06/1.299, allocations: 4.188 kB / 0.9011 GB, free: 15.31 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.01504/1.314, allocations: 4.414 MB / 0.9054 GB, free: 10.83 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003489/1.317, allocations: 266 kB / 0.9057 GB, free: 10.57 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1315/1.449, allocations: 41.88 MB / 0.9466 GB, free: 292 kB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002275/1.451, allocations: 1.806 MB / 0.9483 GB, free: 14.45 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.001637/1.453, allocations: 262.5 kB / 0.9486 GB, free: 14.19 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00213/1.455, allocations: 1.233 MB / 0.9498 GB, free: 12.95 MB / 0.6231 GB Notification: Performance of SimCode: time 1.433e-06/1.455, allocations: 3.938 kB / 0.9498 GB, free: 12.95 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1603/1.615, allocations: 87.77 MB / 1.036 GB, free: 5.391 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.94/19.56, allocations: 6.031 kB / 1.036 GB, free: 5.387 MB / 0.7012 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.sim & python3 -m fmpy simulate --output-file OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_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_FourthOrder_AVRII.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe 2>&1)