Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.VariableLoad.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.001315/0.001315, allocations: 115.7 kB / 19.74 MB, free: 2.141 MB / 14.72 MB " [Timeout remaining time 180] 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.001473/0.001473, allocations: 217.5 kB / 23.05 MB, free: 4.941 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.474/1.474, allocations: 230.6 MB / 256.8 MB, free: 7.988 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.1.3/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.1.3/package.mo): time 0.03619/0.03619, allocations: 6.133 MB / 319.4 MB, free: 12.96 MB / 254.1 MB " [Timeout remaining time 180] Using package PowerSysPro with version 2.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.1.3/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 Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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(PowerSysPro.Examples.VariableLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_VariableLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.VariableLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_VariableLoad",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001535/0.001535, allocations: 47.92 kB / 444.5 MB, free: 5.414 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.106, allocations: 55.03 MB / 499.5 MB, free: 14.28 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.VariableLoad): time 0.004295/0.1103, allocations: 2.463 MB / 0.4902 GB, free: 11.82 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004409/0.1148, allocations: 2.841 MB / 0.493 GB, free: 8.957 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001888/0.1149, allocations: 4 kB / 0.493 GB, free: 8.953 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005834/0.1155, allocations: 171 kB / 0.4932 GB, free: 8.785 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008785/0.1164, allocations: 338.2 kB / 0.4935 GB, free: 8.453 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002451/0.1189, allocations: 1.287 MB / 0.4947 GB, free: 7.164 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006878/0.1195, allocations: 414.2 kB / 0.4951 GB, free: 6.758 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002056/0.1197, allocations: 84.86 kB / 0.4952 GB, free: 6.676 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002209/0.12, allocations: 175.3 kB / 0.4954 GB, free: 6.504 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003544/0.1203, allocations: 207.1 kB / 0.4956 GB, free: 6.301 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.853e-05/0.1204, allocations: 32 kB / 0.4956 GB, free: 6.27 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008668/0.1212, allocations: 419.6 kB / 0.496 GB, free: 5.859 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001194/0.1214, allocations: 83.62 kB / 0.4961 GB, free: 5.777 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001943/0.1216, allocations: 191 kB / 0.4963 GB, free: 5.59 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00101/0.1226, allocations: 0.6812 MB / 0.4969 GB, free: 4.906 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.1226, allocations: 4 kB / 0.4969 GB, free: 4.902 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1226, allocations: 0 / 0.4969 GB, free: 4.902 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.444e-06/0.1226, allocations: 0 / 0.4969 GB, free: 4.902 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 66 * Number of variables: 66 Notification: Performance of Generate backend data structure: time 0.00439/0.127, allocations: 1.187 MB / 0.4981 GB, free: 3.684 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.926e-05/0.127, allocations: 16.03 kB / 0.4981 GB, free: 3.668 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.415e-05/0.1271, allocations: 62.73 kB / 0.4982 GB, free: 3.598 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001359/0.1272, allocations: 48.66 kB / 0.4982 GB, free: 3.551 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004525/0.1277, allocations: 277.3 kB / 0.4985 GB, free: 3.254 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.484e-05/0.1277, allocations: 50.92 kB / 0.4985 GB, free: 3.195 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.823e-05/0.1278, allocations: 35.94 kB / 0.4986 GB, free: 3.16 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007449/0.1286, allocations: 449.9 kB / 0.499 GB, free: 2.707 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/0.1286, allocations: 0 / 0.499 GB, free: 2.707 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.033e-05/0.1286, allocations: 16 kB / 0.499 GB, free: 2.691 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.735e-06/0.1286, allocations: 7.938 kB / 0.499 GB, free: 2.684 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000644/0.1293, allocations: 394.5 kB / 0.4994 GB, free: 2.297 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002453/0.1317, allocations: 1.301 MB / 0.5007 GB, free: 0.9297 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009676/0.1327, allocations: 461.3 kB / 0.5011 GB, free: 480 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003805/0.1331, allocations: 224.8 kB / 0.5013 GB, free: 252 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.19e-05/0.1331, allocations: 7.984 kB / 0.5013 GB, free: 244 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006485/0.1338, allocations: 327.2 kB / 0.5016 GB, free: 15.9 MB / 382.1 MB Notification: Performance of pre-optimization done (n=43): time 2.745e-06/0.1338, allocations: 0 / 0.5016 GB, free: 15.9 MB / 382.1 MB Notification: Performance of matching and sorting (n=43): time 0.004463/0.1382, allocations: 1.268 MB / 0.5029 GB, free: 14.62 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.267e-05/0.1383, allocations: 110.8 kB / 0.503 GB, free: 14.49 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003939/0.1387, allocations: 300.1 kB / 0.5033 GB, free: 14.19 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.288e-05/0.1388, allocations: 37.7 kB / 0.5033 GB, free: 14.14 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001442/0.1389, allocations: 172.9 kB / 0.5035 GB, free: 13.98 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001621/0.1391, allocations: 146.8 kB / 0.5036 GB, free: 13.83 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001809/0.1393, allocations: 98.17 kB / 0.5037 GB, free: 13.73 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000174/0.1394, allocations: 342.8 kB / 0.504 GB, free: 13.39 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004336/0.1399, allocations: 268.8 kB / 0.5043 GB, free: 13.12 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004858/0.1404, allocations: 311.9 kB / 0.5046 GB, free: 12.81 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009125/0.1413, allocations: 0.5613 MB / 0.5051 GB, free: 12.25 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.1413, allocations: 0 / 0.5051 GB, free: 12.25 MB / 382.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.002155/0.1434, allocations: 0.9041 MB / 0.506 GB, free: 11.33 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.229e-05/0.1435, allocations: 8 kB / 0.506 GB, free: 11.32 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.093e-05/0.1435, allocations: 7.938 kB / 0.506 GB, free: 11.32 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002869/0.1463, allocations: 0.6124 MB / 0.5066 GB, free: 10.7 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003314/0.1467, allocations: 79.83 kB / 0.5067 GB, free: 10.62 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001785/0.1485, allocations: 1.064 MB / 0.5078 GB, free: 9.535 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003821/0.1488, allocations: 43.69 kB / 0.5078 GB, free: 9.492 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.554e-05/0.1489, allocations: 19.98 kB / 0.5078 GB, free: 9.473 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (varLoad.degradedMode,$PRE.varLoad.degradedMode,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(7,9)} Notification: Performance of prepare postOptimizeDAE: time 0.000225/0.1491, allocations: 165.7 kB / 0.508 GB, free: 9.301 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.537e-05/0.1492, allocations: 35.77 kB / 0.508 GB, free: 9.266 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001433/0.1506, allocations: 0.7622 MB / 0.5087 GB, free: 8.488 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.255e-06/0.1506, allocations: 8 kB / 0.5088 GB, free: 8.48 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.1506, allocations: 0 / 0.5088 GB, free: 8.48 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.773e-06/0.1506, allocations: 3.984 kB / 0.5088 GB, free: 8.477 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006515/0.1513, allocations: 0.5397 MB / 0.5093 GB, free: 7.891 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.1513, allocations: 4 kB / 0.5093 GB, free: 7.887 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001944/0.1515, allocations: 55.92 kB / 0.5093 GB, free: 7.832 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00268/0.1542, allocations: 0.5814 MB / 0.5099 GB, free: 7.25 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.815e-05/0.1542, allocations: 12 kB / 0.5099 GB, free: 7.238 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001785/0.156, allocations: 1.083 MB / 0.511 GB, free: 6.129 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.156, allocations: 0 / 0.511 GB, free: 6.129 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001293/0.1573, allocations: 0.7211 MB / 0.5117 GB, free: 5.387 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.88e-05/0.1574, allocations: 43.69 kB / 0.5117 GB, free: 5.344 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.136e-05/0.1575, allocations: 7.938 kB / 0.5117 GB, free: 5.336 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003221/0.1578, allocations: 27.92 kB / 0.5118 GB, free: 5.309 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.584e-05/0.1579, allocations: 36.38 kB / 0.5118 GB, free: 5.273 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.855e-05/0.1579, allocations: 12 kB / 0.5118 GB, free: 5.262 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000258/0.1582, allocations: 215.1 kB / 0.512 GB, free: 5.055 MB / 382.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1582, allocations: 0 / 0.512 GB, free: 5.055 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005109/0.1587, allocations: 151.8 kB / 0.5122 GB, free: 4.906 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,varLoad.degradedMode) * Number of discrete states: 1 (varLoad.degradedMode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(7,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003174/0.1618, allocations: 1.646 MB / 0.5138 GB, free: 3.391 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001858/0.1637, allocations: 0.673 MB / 0.5144 GB, free: 2.719 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.808e-06/0.1637, allocations: 0 / 0.5144 GB, free: 2.719 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001268/0.165, allocations: 374.3 kB / 0.5148 GB, free: 2.352 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004363/0.1654, allocations: 51.39 kB / 0.5148 GB, free: 2.297 MB / 382.1 MB Warning: Could not resolve URI (uri) at compile-time; copying all loaded packages into the FMU Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2006/0.366, allocations: 4.358 MB / 0.5191 GB, free: 29.66 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001971/0.3662, allocations: 0.7889 MB / 0.5199 GB, free: 28.96 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000215/0.3664, allocations: 64.06 kB / 0.5199 GB, free: 28.96 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001759/0.3666, allocations: 123.1 kB / 0.52 GB, free: 28.96 MB / 382.1 MB Notification: Performance of SimCode: time 1.293e-06/0.3666, allocations: 0 / 0.52 GB, free: 28.96 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2271/0.5936, allocations: 12.74 MB / 0.5325 GB, free: 25.88 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.61/14.2, allocations: 3.156 kB / 0.5325 GB, free: 25.88 MB / 382.1 MB " [Timeout remaining time 645] (rm -f PowerSysPro_PowerSysPro.Examples.VariableLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.VariableLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.VariableLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.VariableLoad.sim & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.VariableLoad_res.csv --start-time 0 --stop-time 3.15324e+07 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 12613 PowerSysPro_PowerSysPro_Examples_VariableLoad.fmu > PowerSysPro_PowerSysPro.Examples.VariableLoad.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 18.537803305000125] Failed to read output from testmodel.py, exit status != 0: 15.396471602995007 15.411558848 15.286294768 Calling exit ...