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.00126/0.00126, allocations: 108.3 kB / 19.75 MB, free: 1.879 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.001502/0.001502, allocations: 218.9 kB / 23.03 MB, free: 5.016 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.461/1.461, allocations: 230.6 MB / 256.8 MB, free: 7.797 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.0377/0.0377, allocations: 6.152 MB / 319.4 MB, free: 12.75 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.001619/0.001619, allocations: 51.92 kB / 444.4 MB, free: 5.113 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1108, allocations: 55.03 MB / 499.5 MB, free: 13.98 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.VariableLoad): time 0.0039/0.1147, allocations: 2.234 MB / 0.4899 GB, free: 11.75 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004102/0.1188, allocations: 2.736 MB / 0.4926 GB, free: 8.996 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001434/0.119, allocations: 4 kB / 0.4926 GB, free: 8.992 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005363/0.1195, allocations: 167 kB / 0.4928 GB, free: 8.828 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008393/0.1204, allocations: 330.2 kB / 0.4931 GB, free: 8.504 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002257/0.1226, allocations: 1.174 MB / 0.4942 GB, free: 7.328 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005341/0.1231, allocations: 418.2 kB / 0.4946 GB, free: 6.918 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001859/0.1233, allocations: 76.86 kB / 0.4947 GB, free: 6.844 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001999/0.1235, allocations: 179.3 kB / 0.4949 GB, free: 6.668 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002884/0.1238, allocations: 183.1 kB / 0.495 GB, free: 6.488 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.903e-05/0.1239, allocations: 35.94 kB / 0.4951 GB, free: 6.453 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006826/0.1246, allocations: 375.7 kB / 0.4954 GB, free: 6.086 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001192/0.1247, allocations: 87.62 kB / 0.4955 GB, free: 6 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000167/0.1249, allocations: 155.2 kB / 0.4957 GB, free: 5.848 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000916/0.1258, allocations: 0.6928 MB / 0.4963 GB, free: 5.152 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.1258, allocations: 0 / 0.4963 GB, free: 5.152 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.1258, allocations: 0 / 0.4963 GB, free: 5.152 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.883e-06/0.1258, allocations: 0 / 0.4963 GB, free: 5.152 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.00421/0.13, allocations: 1.179 MB / 0.4975 GB, free: 3.941 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.876e-05/0.13, allocations: 12.03 kB / 0.4975 GB, free: 3.93 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.136e-05/0.1301, allocations: 62.72 kB / 0.4976 GB, free: 3.859 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001655/0.1303, allocations: 48.66 kB / 0.4976 GB, free: 3.812 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004647/0.1307, allocations: 269.3 kB / 0.4979 GB, free: 3.523 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.926e-05/0.1308, allocations: 54.92 kB / 0.4979 GB, free: 3.461 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.849e-05/0.1309, allocations: 35.94 kB / 0.498 GB, free: 3.426 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008471/0.1317, allocations: 0.6189 MB / 0.4986 GB, free: 2.75 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.223e-05/0.1317, allocations: 0 / 0.4986 GB, free: 2.75 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.219e-05/0.1318, allocations: 12 kB / 0.4986 GB, free: 2.738 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.568e-06/0.1318, allocations: 8 kB / 0.4986 GB, free: 2.73 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006379/0.1324, allocations: 394.5 kB / 0.499 GB, free: 2.344 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002221/0.1346, allocations: 1.072 MB / 0.5 GB, free: 1.23 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009397/0.1356, allocations: 466.9 kB / 0.5004 GB, free: 0.7617 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003628/0.1359, allocations: 216.8 kB / 0.5007 GB, free: 0.5469 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.185e-05/0.136, allocations: 15.98 kB / 0.5007 GB, free: 0.5312 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006897/0.1367, allocations: 451.6 kB / 0.5011 GB, free: 48 kB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 1.974e-06/0.1367, allocations: 0 / 0.5011 GB, free: 48 kB / 366.1 MB Notification: Performance of matching and sorting (n=43): time 0.004319/0.141, allocations: 1.276 MB / 0.5023 GB, free: 14.76 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.532e-05/0.1411, allocations: 110.8 kB / 0.5025 GB, free: 14.63 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003938/0.1415, allocations: 292.2 kB / 0.5027 GB, free: 14.33 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.887e-05/0.1416, allocations: 41.69 kB / 0.5028 GB, free: 14.29 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001325/0.1417, allocations: 169.1 kB / 0.5029 GB, free: 14.12 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001518/0.1418, allocations: 158.6 kB / 0.5031 GB, free: 13.96 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001705/0.142, allocations: 90.17 kB / 0.5032 GB, free: 13.87 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001824/0.1422, allocations: 346.8 kB / 0.5035 GB, free: 13.52 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004294/0.1426, allocations: 264.9 kB / 0.5038 GB, free: 13.26 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005169/0.1431, allocations: 363.4 kB / 0.5041 GB, free: 12.88 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009399/0.1441, allocations: 0.5652 MB / 0.5046 GB, free: 12.32 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.758e-06/0.1441, allocations: 0 / 0.5046 GB, free: 12.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.002203/0.1463, allocations: 0.9041 MB / 0.5055 GB, free: 11.4 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.62e-05/0.1463, allocations: 8 kB / 0.5055 GB, free: 11.39 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.14e-05/0.1463, allocations: 3.938 kB / 0.5055 GB, free: 11.39 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002668/0.149, allocations: 0.608 MB / 0.5061 GB, free: 10.78 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003022/0.1493, allocations: 75.89 kB / 0.5062 GB, free: 10.71 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001742/0.151, allocations: 1.068 MB / 0.5073 GB, free: 9.613 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003701/0.1514, allocations: 43.67 kB / 0.5073 GB, free: 9.57 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.51e-05/0.1515, allocations: 19.98 kB / 0.5073 GB, free: 9.551 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.0002475/0.1517, allocations: 165.7 kB / 0.5075 GB, free: 9.379 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.27e-05/0.1518, allocations: 39.77 kB / 0.5075 GB, free: 9.34 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001532/0.1533, allocations: 0.7662 MB / 0.5083 GB, free: 8.559 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.512e-06/0.1533, allocations: 4 kB / 0.5083 GB, free: 8.555 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.1533, allocations: 0 / 0.5083 GB, free: 8.555 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.967e-06/0.1533, allocations: 7.984 kB / 0.5083 GB, free: 8.547 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005499/0.1539, allocations: 444.9 kB / 0.5087 GB, free: 8.066 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.1539, allocations: 0 / 0.5087 GB, free: 8.066 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001879/0.1541, allocations: 55.91 kB / 0.5087 GB, free: 8.012 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002464/0.1565, allocations: 0.5783 MB / 0.5093 GB, free: 7.43 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.5e-05/0.1566, allocations: 15.98 kB / 0.5093 GB, free: 7.414 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001655/0.1583, allocations: 1.091 MB / 0.5104 GB, free: 6.301 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.1583, allocations: 0 / 0.5104 GB, free: 6.301 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001227/0.1595, allocations: 0.7172 MB / 0.5111 GB, free: 5.562 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.398e-05/0.1596, allocations: 43.69 kB / 0.5111 GB, free: 5.52 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.797e-05/0.1597, allocations: 11.94 kB / 0.5111 GB, free: 5.508 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003042/0.16, allocations: 31.92 kB / 0.5112 GB, free: 5.477 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.047e-05/0.1601, allocations: 36.31 kB / 0.5112 GB, free: 5.441 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.704e-05/0.1601, allocations: 12 kB / 0.5112 GB, free: 5.43 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000248/0.1603, allocations: 215.1 kB / 0.5114 GB, free: 5.223 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1603, allocations: 0 / 0.5114 GB, free: 5.223 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004714/0.1608, allocations: 151.8 kB / 0.5116 GB, free: 5.074 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.003165/0.164, allocations: 1.666 MB / 0.5132 GB, free: 3.566 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001796/0.1658, allocations: 0.6574 MB / 0.5138 GB, free: 2.91 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.1658, allocations: 0 / 0.5138 GB, free: 2.91 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001162/0.1669, allocations: 382.3 kB / 0.5142 GB, free: 2.535 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003753/0.1673, allocations: 48.97 kB / 0.5143 GB, free: 2.48 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1954/0.3627, allocations: 4.356 MB / 0.5185 GB, free: 29.79 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001401/0.3628, allocations: 189.2 kB / 0.5187 GB, free: 29.71 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002149/0.363, allocations: 58.69 kB / 0.5187 GB, free: 29.7 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001656/0.3632, allocations: 122.8 kB / 0.5189 GB, free: 29.7 MB / 382.1 MB Notification: Performance of SimCode: time 1.423e-06/0.3632, allocations: 0 / 0.5189 GB, free: 29.7 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04244/0.4057, allocations: 12.23 MB / 0.5308 GB, free: 26.7 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.07/13.48, allocations: 5.188 kB / 0.5308 GB, free: 26.69 MB / 382.1 MB " [Timeout remaining time 646] (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: 16.30504320608452] Failed to read output from testmodel.py, exit status != 0: 13.658653408754617 13.67981787 13.551435031 Calling exit ...