Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00146/0.00146, allocations: 106 kB / 16.4 MB, free: 6.504 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.303/1.303, allocations: 222.9 MB / 242.1 MB, free: 15.21 MB / 206.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001427/0.001427, allocations: 195.4 kB / 294.4 MB, free: 12.66 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.4065/0.4065, allocations: 78.53 MB / 425.1 MB, free: 11.18 MB / 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.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.Discretization.FourthOrder_AVRII_Continuous,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002147/0.002147, allocations: 79.88 kB / 0.5617 GB, free: 18.95 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1098, allocations: 68.19 MB / 0.6283 GB, free: 14.73 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous): time 0.007325/0.1172, allocations: 6.555 MB / 0.6347 GB, free: 8.141 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.004292/0.1215, allocations: 1.963 MB / 0.6366 GB, free: 6.172 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009541/0.1225, allocations: 12 kB / 0.6366 GB, free: 6.16 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007568/0.1233, allocations: 245.8 kB / 0.6368 GB, free: 5.918 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002074/0.1254, allocations: 0.8065 MB / 0.6376 GB, free: 5.113 MB / 446.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.001317/0.1267, allocations: 0.6317 MB / 0.6382 GB, free: 4.484 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.00174/0.1284, allocations: 1.585 MB / 0.6398 GB, free: 2.895 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004734/0.1289, allocations: 330.3 kB / 0.6401 GB, free: 2.559 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007656/0.1297, allocations: 0.6535 MB / 0.6407 GB, free: 1.902 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000932/0.1306, allocations: 0.8323 MB / 0.6415 GB, free: 1.066 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001762/0.1308, allocations: 120 kB / 0.6416 GB, free: 0.9492 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004811/0.1313, allocations: 259.9 kB / 0.6419 GB, free: 0.6953 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003077/0.1316, allocations: 326.6 kB / 0.6422 GB, free: 384 kB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006149/0.1323, allocations: 0.6641 MB / 0.6429 GB, free: 15.7 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001732/0.134, allocations: 1.673 MB / 0.6445 GB, free: 14.02 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.134, allocations: 0 / 0.6445 GB, free: 14.02 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.134, allocations: 0 / 0.6445 GB, free: 14.02 MB / 462.1 MB Notification: Performance of Transformations before backend: time 2.256e-05/0.134, allocations: 0 / 0.6445 GB, free: 14.02 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: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.008547/0.1426, allocations: 2.73 MB / 0.6472 GB, free: 11.23 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.938e-05/0.1426, allocations: 12.03 kB / 0.6472 GB, free: 11.21 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001503/0.1428, allocations: 122.7 kB / 0.6473 GB, free: 11.09 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004855/0.1477, allocations: 0.7874 MB / 0.6481 GB, free: 10.3 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001491/0.1492, allocations: 0.899 MB / 0.6489 GB, free: 9.344 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003001/0.1495, allocations: 256.1 kB / 0.6492 GB, free: 9.055 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001576/0.1497, allocations: 87.98 kB / 0.6493 GB, free: 8.969 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00214/0.1518, allocations: 1.09 MB / 0.6503 GB, free: 7.867 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.81e-05/0.1518, allocations: 0 / 0.6503 GB, free: 7.867 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.202e-05/0.1519, allocations: 32 kB / 0.6504 GB, free: 7.836 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.002e-05/0.152, allocations: 23.98 kB / 0.6504 GB, free: 7.812 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002064/0.154, allocations: 0.9799 MB / 0.6513 GB, free: 6.832 MB / 462.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.006462/0.1605, allocations: 3.801 MB / 0.655 GB, free: 2.855 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007491/0.168, allocations: 2.377 MB / 0.6574 GB, free: 392 kB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001428/0.1694, allocations: 0.6723 MB / 0.658 GB, free: 15.71 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000103/0.1696, allocations: 16.98 kB / 0.658 GB, free: 15.69 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001656/0.1712, allocations: 0.8254 MB / 0.6588 GB, free: 14.84 MB / 478.1 MB Notification: Performance of pre-optimization done (n=96): time 2.515e-06/0.1712, allocations: 0 / 0.6588 GB, free: 14.84 MB / 478.1 MB Notification: Performance of matching and sorting (n=96): time 0.02865/0.1999, allocations: 7.09 MB / 0.6658 GB, free: 7.691 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.58e-05/0.2, allocations: 119.8 kB / 0.6659 GB, free: 7.551 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001696/0.2017, allocations: 1.079 MB / 0.6669 GB, free: 6.457 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002125/0.2019, allocations: 45.7 kB / 0.667 GB, free: 6.406 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004116/0.2024, allocations: 0.4936 MB / 0.6675 GB, free: 5.906 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004008/0.2028, allocations: 372.8 kB / 0.6678 GB, free: 5.539 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000505/0.2033, allocations: 295.4 kB / 0.6681 GB, free: 5.246 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001217/0.2034, allocations: 301.1 kB / 0.6684 GB, free: 4.949 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001661/0.2051, allocations: 0.7652 MB / 0.6691 GB, free: 4.184 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0018/0.2069, allocations: 0.9304 MB / 0.67 GB, free: 3.211 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02304/0.2299, allocations: 5.583 MB / 0.6755 GB, free: 13.54 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.245e-06/0.23, allocations: 0 / 0.6755 GB, free: 13.54 MB / 494.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01358/0.2436, allocations: 4.344 MB / 0.6797 GB, free: 9.172 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.396e-05/0.2437, allocations: 67.39 kB / 0.6798 GB, free: 9.094 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.19e-05/0.2437, allocations: 0 / 0.6798 GB, free: 9.094 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005565/0.2493, allocations: 1.516 MB / 0.6813 GB, free: 7.574 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001418/0.2507, allocations: 295.6 kB / 0.6816 GB, free: 7.285 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2326/0.4833, allocations: 8.257 MB / 0.6896 GB, free: 52.69 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001849/0.4852, allocations: 204.4 kB / 0.6898 GB, free: 52.69 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001847/0.4854, allocations: 58.47 kB / 0.6899 GB, free: 52.69 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.0005602/0.486, allocations: 305.5 kB / 0.6902 GB, free: 52.54 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002335/0.4862, allocations: 135.4 kB / 0.6903 GB, free: 52.54 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01297/0.4992, allocations: 3.874 MB / 0.6941 GB, free: 52.4 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.731e-05/0.4992, allocations: 9.844 kB / 0.6941 GB, free: 52.4 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.448e-05/0.4992, allocations: 6.438 kB / 0.6941 GB, free: 52.4 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-05/0.4993, allocations: 3.906 kB / 0.6941 GB, free: 52.4 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.01483/0.5141, allocations: 5.454 MB / 0.6994 GB, free: 50.86 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.14e-05/0.5142, allocations: 1.188 kB / 0.6994 GB, free: 50.86 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005922/0.5148, allocations: 102.9 kB / 0.6995 GB, free: 50.84 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0055/0.5203, allocations: 1.606 MB / 0.7011 GB, free: 50.62 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001728/0.5205, allocations: 26.06 kB / 0.7011 GB, free: 50.61 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01777/0.5382, allocations: 9.616 MB / 0.7105 GB, free: 45.29 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.5383, allocations: 1.312 kB / 0.7105 GB, free: 45.29 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01336/0.5516, allocations: 4.754 MB / 0.7152 GB, free: 43.89 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003836/0.5521, allocations: 226.4 kB / 0.7154 GB, free: 43.71 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001659/0.5522, allocations: 21.78 kB / 0.7154 GB, free: 43.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00105/0.5533, allocations: 114.7 kB / 0.7155 GB, free: 43.68 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005397/0.5538, allocations: 190.5 kB / 0.7157 GB, free: 43.64 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.347e-05/0.5539, allocations: 30.69 kB / 0.7157 GB, free: 43.63 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0009107/0.5548, allocations: 0.7319 MB / 0.7164 GB, free: 43.28 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5549, allocations: 2.531 kB / 0.7164 GB, free: 43.28 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001119/0.556, allocations: 472.6 kB / 0.7169 GB, free: 43.22 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.01279/0.5688, allocations: 5.331 MB / 0.7221 GB, free: 40.23 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.005284/0.5741, allocations: 2.502 MB / 0.7245 GB, free: 38.88 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.5741, allocations: 0.75 kB / 0.7245 GB, free: 38.88 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003742/0.5779, allocations: 1.62 MB / 0.7261 GB, free: 37.61 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008978/0.5788, allocations: 116.5 kB / 0.7262 GB, free: 37.51 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03185/0.6107, allocations: 16.06 MB / 0.7419 GB, free: 21.27 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003761/0.6111, allocations: 1.12 MB / 0.743 GB, free: 20.12 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0004326/0.6115, allocations: 120 kB / 0.7431 GB, free: 20 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004587/0.612, allocations: 471.3 kB / 0.7436 GB, free: 19.54 MB / 494.1 MB Notification: Performance of SimCode: time 6.51e-07/0.612, allocations: 4 kB / 0.7436 GB, free: 19.54 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06534/0.6773, allocations: 34.25 MB / 0.777 GB, free: 1.523 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.17/13.85, allocations: 7.703 kB / 0.777 GB, free: 1.52 MB / 0.4981 GB " [Timeout remaining time 646] (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.sim & python3 -m fmpy simulate --output-file OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous_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_Discretization_FourthOrder_AVRII_Continuous.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.81990650901571] Failed to read output from testmodel.py, exit status != 0: 13.967634374974295 13.988750448 13.851022673 Calling exit ...