Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.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.ThreeArea.FifthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_ThreeArea_FifthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.ThreeArea.FifthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_ThreeArea_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.009747/0.009747, allocations: 100.1 kB / 15.73 MB, free: 6.004 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.65/1.65, allocations: 222.9 MB / 239.4 MB, free: 4.527 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.001834/0.001834, allocations: 192.5 kB / 289.7 MB, free: 2.238 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5674/0.5674, allocations: 91.9 MB / 431.8 MB, free: 9.195 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002275/0.002275, allocations: 79.16 kB / 0.5723 GB, free: 33.54 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1619/0.1642, allocations: 71.29 MB / 0.6419 GB, free: 4.047 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.FifthOrder_AVRII): time 0.01543/0.1797, allocations: 13.81 MB / 0.6554 GB, free: 6.184 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.009939/0.1897, allocations: 3.507 MB / 0.6588 GB, free: 2.66 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003625/0.1934, allocations: 28 kB / 0.6589 GB, free: 2.633 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002246/0.1956, allocations: 0.5614 MB / 0.6594 GB, free: 2.066 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006743/0.2025, allocations: 1.434 MB / 0.6608 GB, free: 0.6289 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004788/0.2073, allocations: 1.518 MB / 0.6623 GB, free: 15.12 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.007335/0.2146, allocations: 3.777 MB / 0.666 GB, free: 11.33 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001782/0.2165, allocations: 0.8973 MB / 0.6668 GB, free: 10.39 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003056/0.2195, allocations: 1.544 MB / 0.6684 GB, free: 8.836 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003468/0.223, allocations: 1.991 MB / 0.6703 GB, free: 6.836 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001184/0.2242, allocations: 292 kB / 0.6706 GB, free: 6.551 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001454/0.2257, allocations: 435.9 kB / 0.671 GB, free: 6.125 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008634/0.2266, allocations: 0.7701 MB / 0.6717 GB, free: 5.352 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002269/0.2289, allocations: 1.654 MB / 0.6734 GB, free: 3.688 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006435/0.2353, allocations: 4.033 MB / 0.6773 GB, free: 15.64 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.934e-06/0.2353, allocations: 0 / 0.6773 GB, free: 15.64 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.2354, allocations: 0 / 0.6773 GB, free: 15.64 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.0001328/0.2355, allocations: 4 kB / 0.6773 GB, free: 15.63 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: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.0258/0.2613, allocations: 6.75 MB / 0.6839 GB, free: 8.785 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.026e-05/0.2614, allocations: 12.03 kB / 0.6839 GB, free: 8.773 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006097/0.262, allocations: 299.3 kB / 0.6842 GB, free: 8.469 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0156/0.2776, allocations: 2.296 MB / 0.6864 GB, free: 6.168 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005722/0.2834, allocations: 1.932 MB / 0.6883 GB, free: 4.172 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009474/0.2844, allocations: 0.7253 MB / 0.689 GB, free: 3.332 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009745/0.2853, allocations: 212 kB / 0.6892 GB, free: 3.125 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009465/0.2948, allocations: 3.047 MB / 0.6922 GB, free: 0 / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001116/0.295, allocations: 4.047 kB / 0.6922 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006788/0.2957, allocations: 83.94 kB / 0.6923 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.256e-05/0.2958, allocations: 48 kB / 0.6923 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008115/0.3039, allocations: 2.796 MB / 0.6951 GB, free: 13.05 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.02657/0.3305, allocations: 9.878 MB / 0.7047 GB, free: 2.762 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01268/0.3432, allocations: 4.203 MB / 0.7088 GB, free: 14.41 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005602/0.3489, allocations: 1.972 MB / 0.7107 GB, free: 12.44 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005996/0.3496, allocations: 45.95 kB / 0.7108 GB, free: 12.39 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006741/0.3563, allocations: 2.249 MB / 0.713 GB, free: 10.12 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=249): time 1.443e-05/0.3564, allocations: 0 / 0.713 GB, free: 10.12 MB / 0.5137 GB Notification: Performance of matching and sorting (n=249): time 0.1277/0.4841, allocations: 27.44 MB / 0.7398 GB, free: 14.57 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001668/0.4843, allocations: 188.2 kB / 0.74 GB, free: 14.34 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005725/0.4901, allocations: 2.309 MB / 0.7422 GB, free: 12.02 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001057/0.4912, allocations: 77.64 kB / 0.7423 GB, free: 11.93 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.001584/0.4928, allocations: 1.193 MB / 0.7435 GB, free: 10.73 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002344/0.4951, allocations: 0.9257 MB / 0.7444 GB, free: 9.797 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003633/0.4988, allocations: 0.566 MB / 0.7449 GB, free: 9.223 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001797/0.499, allocations: 305.1 kB / 0.7452 GB, free: 8.922 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005457/0.5045, allocations: 1.974 MB / 0.7471 GB, free: 6.945 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005979/0.5105, allocations: 2.338 MB / 0.7494 GB, free: 4.52 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.06141/0.5719, allocations: 14.24 MB / 0.7633 GB, free: 6.047 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.858e-05/0.572, allocations: 3.938 kB / 0.7633 GB, free: 6.043 MB / 0.5606 GB Notification: Performance of matching and sorting (n=421) (initialization): time 0.4257/0.9977, allocations: 12.56 MB / 0.7756 GB, free: 107.9 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001007/0.9978, allocations: 112.4 kB / 0.7757 GB, free: 107.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.189e-05/0.9979, allocations: 5.938 kB / 0.7757 GB, free: 107.7 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01838/1.016, allocations: 5.261 MB / 0.7808 GB, free: 107.6 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003471/1.02, allocations: 0.5873 MB / 0.7814 GB, free: 107.6 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05636/1.076, allocations: 23.2 MB / 0.8041 GB, free: 99.06 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005226/1.081, allocations: 498.4 kB / 0.8045 GB, free: 98.84 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001022/1.083, allocations: 120 kB / 0.8047 GB, free: 98.73 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 Syn2.delta:VARIABLE(flow=false start = Syn2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real Syn2.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 (334): * Single equations (assignments): 329 * 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.00259/1.085, allocations: 0.5309 MB / 0.8052 GB, free: 98.18 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00135/1.086, allocations: 319.9 kB / 0.8055 GB, free: 97.91 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03803/1.125, allocations: 11.93 MB / 0.8171 GB, free: 85.89 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.746e-05/1.125, allocations: 25.31 kB / 0.8172 GB, free: 85.86 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.09e-05/1.125, allocations: 24 kB / 0.8172 GB, free: 85.84 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.268e-05/1.125, allocations: 11.95 kB / 0.8172 GB, free: 85.83 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.04447/1.169, allocations: 15.56 MB / 0.8324 GB, free: 70.16 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.105e-05/1.169, allocations: 0 / 0.8324 GB, free: 70.16 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001686/1.171, allocations: 251.6 kB / 0.8326 GB, free: 69.92 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0162/1.187, allocations: 5.299 MB / 0.8378 GB, free: 64.61 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008553/1.188, allocations: 50.61 kB / 0.8379 GB, free: 64.56 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05633/1.245, allocations: 24.96 MB / 0.8622 GB, free: 39.2 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.311e-06/1.245, allocations: 0 / 0.8622 GB, free: 39.2 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04206/1.287, allocations: 14.33 MB / 0.8762 GB, free: 24.75 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001111/1.288, allocations: 429.8 kB / 0.8766 GB, free: 24.35 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001464/1.289, allocations: 47.91 kB / 0.8767 GB, free: 24.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003882/1.293, allocations: 299.6 kB / 0.877 GB, free: 24.01 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002571/1.296, allocations: 0.5802 MB / 0.8775 GB, free: 23.43 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005992/1.296, allocations: 67.98 kB / 0.8776 GB, free: 23.36 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002947/1.299, allocations: 1.531 MB / 0.8791 GB, free: 21.83 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.61e-07/1.299, allocations: 4 kB / 0.8791 GB, free: 21.82 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.006311/1.306, allocations: 1.182 MB / 0.8803 GB, free: 20.68 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 18 (order3_2.delta,order3_2.w,order3_2.e1q,order2.delta,order2.w,Syn2.delta,Syn2.w,Syn2.e1q,Syn2.e2q,Syn2.e2d,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 (158): * Single equations (assignments): 153 * 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 {(67,21,7.5%)} * 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.04352/1.349, allocations: 14.96 MB / 0.8949 GB, free: 5.586 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01913/1.368, allocations: 6.675 MB / 0.9014 GB, free: 14.82 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.332e-05/1.369, allocations: 4.562 kB / 0.9014 GB, free: 14.82 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0152/1.384, allocations: 4.451 MB / 0.9057 GB, free: 10.3 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004306/1.388, allocations: 266.7 kB / 0.906 GB, free: 10.05 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1345/1.523, allocations: 42.22 MB / 0.9472 GB, free: 15.4 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002682/1.525, allocations: 1.815 MB / 0.949 GB, free: 13.56 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.001715/1.527, allocations: 258.6 kB / 0.9492 GB, free: 13.3 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002433/1.53, allocations: 1.241 MB / 0.9504 GB, free: 12.06 MB / 0.6231 GB Notification: Performance of SimCode: time 1.382e-06/1.53, allocations: 0 / 0.9504 GB, free: 12.06 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1847/1.714, allocations: 88.49 MB / 1.037 GB, free: 3.785 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.45/21.16, allocations: 7.922 kB / 1.037 GB, free: 3.777 MB / 0.7012 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FifthOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FifthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FifthOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FifthOrder_AVRII.sim & python3 -m fmpy simulate --output-file OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.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_ThreeArea_FifthOrder_AVRII.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FifthOrder_AVRII.pipe 2>&1)