Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001944/0.001944, allocations: 103.2 kB / 16.45 MB, free: 6.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.551/1.551, allocations: 230.6 MB / 249.8 MB, free: 9.25 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001647/0.001647, allocations: 215.1 kB / 306 MB, free: 4.309 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.5029/0.5029, allocations: 79.72 MB / 441.8 MB, free: 156 kB / 302.1 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: OpenIPSL requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: OpenIPSL requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002471/0.002471, allocations: 86.22 kB / 0.5878 GB, free: 1.578 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1714/0.1739, allocations: 73.25 MB / 0.6594 GB, free: 8.227 MB / 462.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII): time 0.00889/0.1828, allocations: 6.602 MB / 0.6658 GB, free: 1.586 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.005563/0.1884, allocations: 2.009 MB / 0.6678 GB, free: 15.57 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001095/0.1895, allocations: 12 kB / 0.6678 GB, free: 15.56 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009146/0.1904, allocations: 241.9 kB / 0.668 GB, free: 15.32 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003092/0.1935, allocations: 0.8757 MB / 0.6689 GB, free: 14.45 MB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/Electrical/Machines/PSAT/Order4.mo:25:3-30:9:writable] Warning: In relation order4.xq <> order4.x1q, <> on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.001702/0.1952, allocations: 0.6308 MB / 0.6695 GB, free: 13.82 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.002653/0.1978, allocations: 1.592 MB / 0.671 GB, free: 12.22 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005163/0.1983, allocations: 222.5 kB / 0.6713 GB, free: 12 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001227/0.1996, allocations: 0.6847 MB / 0.6719 GB, free: 11.31 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001134/0.2007, allocations: 0.844 MB / 0.6727 GB, free: 10.46 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002119/0.2009, allocations: 120 kB / 0.6729 GB, free: 10.34 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006518/0.2016, allocations: 275.9 kB / 0.6731 GB, free: 10.07 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003615/0.2019, allocations: 330.6 kB / 0.6734 GB, free: 9.75 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007207/0.2026, allocations: 0.6719 MB / 0.6741 GB, free: 9.074 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00226/0.2049, allocations: 1.692 MB / 0.6757 GB, free: 7.375 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.133e-06/0.2049, allocations: 4 kB / 0.6757 GB, free: 7.371 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.514e-06/0.2049, allocations: 0 / 0.6757 GB, free: 7.371 MB / 478.1 MB Notification: Performance of Transformations before backend: time 2.719e-05/0.2049, allocations: 0 / 0.6757 GB, free: 7.371 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.01023/0.2152, allocations: 2.745 MB / 0.6784 GB, free: 4.559 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.075e-05/0.2152, allocations: 16.02 kB / 0.6784 GB, free: 4.543 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002083/0.2154, allocations: 122.7 kB / 0.6786 GB, free: 4.414 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005612/0.2211, allocations: 0.7952 MB / 0.6793 GB, free: 3.617 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002059/0.2231, allocations: 0.8912 MB / 0.6802 GB, free: 2.672 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003559/0.2235, allocations: 268 kB / 0.6805 GB, free: 2.371 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001963/0.2237, allocations: 88 kB / 0.6805 GB, free: 2.285 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002434/0.2261, allocations: 1.09 MB / 0.6816 GB, free: 1.184 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.885e-05/0.2261, allocations: 0 / 0.6816 GB, free: 1.184 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001022/0.2262, allocations: 32 kB / 0.6816 GB, free: 1.152 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.154e-05/0.2262, allocations: 16 kB / 0.6817 GB, free: 1.137 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002304/0.2285, allocations: 0.9877 MB / 0.6826 GB, free: 148 kB / 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.007668/0.2362, allocations: 3.809 MB / 0.6863 GB, free: 12.16 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008132/0.2443, allocations: 2.304 MB / 0.6886 GB, free: 9.758 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001751/0.2461, allocations: 0.6175 MB / 0.6892 GB, free: 9.137 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001299/0.2462, allocations: 20.98 kB / 0.6892 GB, free: 9.117 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001888/0.2481, allocations: 0.8216 MB / 0.69 GB, free: 8.277 MB / 494.1 MB Notification: Performance of pre-optimization done (n=96): time 2.725e-06/0.2481, allocations: 0 / 0.69 GB, free: 8.277 MB / 494.1 MB Notification: Performance of matching and sorting (n=96): time 0.03146/0.2796, allocations: 7.051 MB / 0.6969 GB, free: 1.16 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.932e-05/0.2797, allocations: 119.8 kB / 0.697 GB, free: 1.02 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3612/0.6409, allocations: 1.083 MB / 0.6981 GB, free: 35.47 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003547/0.6412, allocations: 46.61 kB / 0.6981 GB, free: 35.44 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004398/0.6416, allocations: 0.495 MB / 0.6986 GB, free: 35.36 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003678/0.642, allocations: 370.4 kB / 0.699 GB, free: 35.23 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005605/0.6426, allocations: 286.4 kB / 0.6992 GB, free: 35.21 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.797e-05/0.6426, allocations: 306.3 kB / 0.6995 GB, free: 34.91 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001741/0.6444, allocations: 0.7648 MB / 0.7003 GB, free: 34.91 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001914/0.6463, allocations: 0.9332 MB / 0.7012 GB, free: 34.79 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02815/0.6744, allocations: 5.795 MB / 0.7068 GB, free: 33.98 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.644e-05/0.6744, allocations: 1.375 kB / 0.7068 GB, free: 33.98 MB / 494.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01577/0.6902, allocations: 4.32 MB / 0.7111 GB, free: 32.84 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.956e-05/0.6903, allocations: 59.89 kB / 0.7111 GB, free: 32.78 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.911e-05/0.6903, allocations: 2.562 kB / 0.7111 GB, free: 32.78 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006082/0.6964, allocations: 1.517 MB / 0.7126 GB, free: 32.5 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001748/0.6981, allocations: 299.6 kB / 0.7129 GB, free: 32.48 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02047/0.7186, allocations: 8.271 MB / 0.721 GB, free: 28.57 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002221/0.7208, allocations: 207.7 kB / 0.7212 GB, free: 28.5 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000201/0.721, allocations: 56.47 kB / 0.7212 GB, free: 28.49 MB / 494.1 MB Warning: Assuming fixed start value for the following 4 variables: order4.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 order4.delta:VARIABLE(flow=false start = order4.delta0 unit = \"rad\" fixed = true ) \"Rotor angle\" type: Real order4.e1q:VARIABLE(start = order4.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 (166): * Single equations (assignments): 163 * 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 {(18,13,25.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007434/0.7218, allocations: 308.3 kB / 0.7215 GB, free: 28.24 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003249/0.7221, allocations: 131.5 kB / 0.7216 GB, free: 28.17 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0132/0.7353, allocations: 3.847 MB / 0.7254 GB, free: 26.89 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.263e-05/0.7353, allocations: 10.53 kB / 0.7254 GB, free: 26.89 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.462e-05/0.7353, allocations: 8.594 kB / 0.7254 GB, free: 26.89 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.397e-05/0.7354, allocations: 8.969 kB / 0.7254 GB, free: 26.89 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.01424/0.7496, allocations: 5.43 MB / 0.7307 GB, free: 23.63 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-05/0.7496, allocations: 0 / 0.7307 GB, free: 23.63 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006819/0.7503, allocations: 101.4 kB / 0.7308 GB, free: 23.61 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005362/0.7557, allocations: 1.606 MB / 0.7324 GB, free: 22.9 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002036/0.7559, allocations: 23.97 kB / 0.7324 GB, free: 22.88 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01849/0.7744, allocations: 9.622 MB / 0.7418 GB, free: 13.93 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.7744, allocations: 0 / 0.7418 GB, free: 13.93 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01365/0.788, allocations: 4.724 MB / 0.7464 GB, free: 9.176 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004927/0.7885, allocations: 224.2 kB / 0.7466 GB, free: 8.953 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001982/0.7887, allocations: 20 kB / 0.7467 GB, free: 8.934 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001145/0.7898, allocations: 115.9 kB / 0.7468 GB, free: 8.82 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005799/0.7904, allocations: 188.7 kB / 0.7469 GB, free: 8.637 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.506e-05/0.7905, allocations: 32.61 kB / 0.747 GB, free: 8.609 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0009674/0.7915, allocations: 0.7313 MB / 0.7477 GB, free: 7.871 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.7915, allocations: 0 / 0.7477 GB, free: 7.871 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001567/0.793, allocations: 471.5 kB / 0.7481 GB, free: 7.422 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 10 (order2.delta,order2.w,order4.delta,order4.w,order4.e1q,order4.e1d,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 (64): * Single equations (assignments): 61 * 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 {(21,11,21.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01379/0.8068, allocations: 5.303 MB / 0.7533 GB, free: 2.078 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.006381/0.8132, allocations: 2.368 MB / 0.7556 GB, free: 15.66 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.61e-06/0.8132, allocations: 0 / 0.7556 GB, free: 15.66 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.005102/0.8183, allocations: 1.563 MB / 0.7572 GB, free: 14.07 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00129/0.8196, allocations: 111 kB / 0.7573 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04558/0.8652, allocations: 16.04 MB / 0.7729 GB, free: 13.75 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009615/0.8662, allocations: 1.116 MB / 0.774 GB, free: 12.61 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0006703/0.8668, allocations: 120 kB / 0.7741 GB, free: 12.48 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007618/0.8676, allocations: 475.3 kB / 0.7746 GB, free: 12.02 MB / 0.5137 GB Notification: Performance of SimCode: time 1.583e-06/0.8676, allocations: 0 / 0.7746 GB, free: 12.02 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08955/0.9571, allocations: 34.71 MB / 0.8085 GB, free: 9.484 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.21/16.17, allocations: 6.516 kB / 0.8085 GB, free: 9.48 MB / 0.545 GB " [Timeout remaining time 644] (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.sim & python3 -m fmpy simulate --output-file OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.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_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRII.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 19.884081486001378] Failed to read output from testmodel.py, exit status != 0: 16.28641358000459 16.310911446 16.101326567 Calling exit ...