Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.QfURegulation.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.001216/0.001216, 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.001441/0.001441, allocations: 224.1 kB / 23.06 MB, free: 4.938 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.478/1.478, allocations: 230.6 MB / 256.8 MB, free: 8.016 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.03628/0.03628, allocations: 6.142 MB / 319.4 MB, free: 12.97 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.QfURegulation,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_QfURegulation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.QfURegulation,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_QfURegulation",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00152/0.00152, allocations: 43.92 kB / 444.5 MB, free: 5.402 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1079, allocations: 55.02 MB / 499.5 MB, free: 14.27 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.QfURegulation): time 0.003578/0.1115, allocations: 2.044 MB / 0.4898 GB, free: 12.24 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002628/0.1141, allocations: 1.692 MB / 0.4915 GB, free: 10.53 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001353/0.1143, allocations: 4 kB / 0.4915 GB, free: 10.53 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004392/0.1147, allocations: 143.2 kB / 0.4916 GB, free: 10.39 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006257/0.1153, allocations: 226.8 kB / 0.4918 GB, free: 10.16 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002294/0.1176, allocations: 1.214 MB / 0.493 GB, free: 8.945 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005968/0.1182, allocations: 374.5 kB / 0.4934 GB, free: 8.578 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002115/0.1184, allocations: 80.17 kB / 0.4934 GB, free: 8.492 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002988/0.1187, allocations: 175.5 kB / 0.4936 GB, free: 8.32 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003287/0.119, allocations: 199.2 kB / 0.4938 GB, free: 8.125 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.194e-05/0.1191, allocations: 32 kB / 0.4938 GB, free: 8.094 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006762/0.1198, allocations: 303.7 kB / 0.4941 GB, free: 7.797 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001135/0.1199, allocations: 83.73 kB / 0.4942 GB, free: 7.715 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001911/0.1201, allocations: 167.2 kB / 0.4944 GB, free: 7.551 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008379/0.1209, allocations: 0.5645 MB / 0.4949 GB, free: 6.984 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.1209, allocations: 3.938 kB / 0.4949 GB, free: 6.98 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1209, allocations: 4 kB / 0.4949 GB, free: 6.977 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.021e-06/0.1209, allocations: 0 / 0.4949 GB, free: 6.977 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.004082/0.125, allocations: 1.051 MB / 0.4959 GB, free: 5.887 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.268e-05/0.1251, allocations: 8.031 kB / 0.4959 GB, free: 5.879 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.091e-05/0.1251, allocations: 66.72 kB / 0.496 GB, free: 5.805 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001019/0.1252, allocations: 40.7 kB / 0.4961 GB, free: 5.766 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003904/0.1256, allocations: 230.7 kB / 0.4963 GB, free: 5.516 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003111/0.1259, allocations: 241 kB / 0.4965 GB, free: 5.238 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.638e-05/0.126, allocations: 28.38 kB / 0.4965 GB, free: 5.211 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001695/0.1277, allocations: 0.7105 MB / 0.4972 GB, free: 4.48 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.386e-05/0.1277, allocations: 4 kB / 0.4972 GB, free: 4.477 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.159e-05/0.1278, allocations: 16 kB / 0.4972 GB, free: 4.461 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.078e-05/0.1278, allocations: 8 kB / 0.4972 GB, free: 4.453 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001043/0.1288, allocations: 457.4 kB / 0.4977 GB, free: 4.008 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00243/0.1312, allocations: 1.313 MB / 0.499 GB, free: 2.617 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001627/0.1329, allocations: 0.601 MB / 0.4996 GB, free: 1.988 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006285/0.1335, allocations: 298.4 kB / 0.4998 GB, free: 1.688 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001292/0.1336, allocations: 11.98 kB / 0.4998 GB, free: 1.676 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005017/0.1341, allocations: 273.4 kB / 0.5001 GB, free: 1.391 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 1.953e-06/0.1341, allocations: 0 / 0.5001 GB, free: 1.391 MB / 366.1 MB Notification: Performance of matching and sorting (n=43): time 0.003822/0.138, allocations: 1.143 MB / 0.5012 GB, free: 244 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001535/0.1381, allocations: 140.5 kB / 0.5014 GB, free: 72 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003114/0.1384, allocations: 227 kB / 0.5016 GB, free: 15.84 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.354e-05/0.1385, allocations: 37.7 kB / 0.5016 GB, free: 15.8 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001374/0.1386, allocations: 157.2 kB / 0.5018 GB, free: 15.64 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001175/0.1387, allocations: 123 kB / 0.5019 GB, free: 15.52 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001656/0.1389, allocations: 94.17 kB / 0.502 GB, free: 15.42 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001632/0.1391, allocations: 334.8 kB / 0.5023 GB, free: 15.09 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003417/0.1394, allocations: 212.9 kB / 0.5025 GB, free: 14.88 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000449/0.1399, allocations: 335.8 kB / 0.5028 GB, free: 14.49 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007725/0.1406, allocations: 0.5399 MB / 0.5033 GB, free: 13.9 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.327e-06/0.1406, allocations: 4 kB / 0.5033 GB, free: 13.9 MB / 382.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001719/0.1423, allocations: 0.7874 MB / 0.5041 GB, free: 13.1 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.173e-05/0.1424, allocations: 4 kB / 0.5041 GB, free: 13.1 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.269e-05/0.1424, allocations: 7.984 kB / 0.5041 GB, free: 13.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002239/0.1446, allocations: 464.4 kB / 0.5046 GB, free: 12.63 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003367/0.145, allocations: 91.83 kB / 0.5047 GB, free: 12.54 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001578/0.1465, allocations: 0.9104 MB / 0.5055 GB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003573/0.1469, allocations: 51.66 kB / 0.5056 GB, free: 11.56 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.15e-05/0.1469, allocations: 20 kB / 0.5056 GB, free: 11.54 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (52): * Single equations (assignments): 51 * 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,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0002216/0.1472, allocations: 165.6 kB / 0.5058 GB, free: 11.37 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000684/0.1478, allocations: 257.3 kB / 0.506 GB, free: 11.11 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001173/0.149, allocations: 0.568 MB / 0.5066 GB, free: 10.53 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.123e-06/0.149, allocations: 4 kB / 0.5066 GB, free: 10.53 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/0.149, allocations: 4 kB / 0.5066 GB, free: 10.52 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/0.149, allocations: 3.984 kB / 0.5066 GB, free: 10.52 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00269/0.1517, allocations: 1.35 MB / 0.5079 GB, free: 9.117 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.072e-06/0.1517, allocations: 7.938 kB / 0.5079 GB, free: 9.109 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003886/0.1521, allocations: 87.86 kB / 0.508 GB, free: 9.023 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002109/0.1542, allocations: 448.4 kB / 0.5084 GB, free: 8.582 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.117e-05/0.1543, allocations: 12 kB / 0.5084 GB, free: 8.57 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001559/0.1558, allocations: 0.9121 MB / 0.5093 GB, free: 7.633 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.1558, allocations: 0 / 0.5093 GB, free: 7.633 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002674/0.1585, allocations: 0.9973 MB / 0.5103 GB, free: 6.605 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.669e-05/0.1586, allocations: 35.69 kB / 0.5103 GB, free: 6.57 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.819e-05/0.1587, allocations: 15.94 kB / 0.5103 GB, free: 6.555 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004318/0.1591, allocations: 47.95 kB / 0.5104 GB, free: 6.508 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.288e-05/0.1592, allocations: 23.95 kB / 0.5104 GB, free: 6.484 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.441e-05/0.1592, allocations: 20 kB / 0.5104 GB, free: 6.465 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001968/0.1594, allocations: 163.3 kB / 0.5106 GB, free: 6.305 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1594, allocations: 0 / 0.5106 GB, free: 6.305 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005235/0.1599, allocations: 111.9 kB / 0.5107 GB, free: 6.195 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (38): * Single equations (assignments): 37 * 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,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003173/0.1631, allocations: 1.561 MB / 0.5122 GB, free: 4.598 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002008/0.1651, allocations: 0.6669 MB / 0.5129 GB, free: 3.934 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.1651, allocations: 4.062 kB / 0.5129 GB, free: 3.93 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001135/0.1663, allocations: 315.7 kB / 0.5132 GB, free: 3.621 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008105/0.1671, allocations: 140.7 kB / 0.5133 GB, free: 3.48 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1933/0.3603, allocations: 4.23 MB / 0.5174 GB, free: 29.92 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001943/0.3605, allocations: 0.7776 MB / 0.5182 GB, free: 29.22 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001786/0.3607, allocations: 46.3 kB / 0.5182 GB, free: 29.21 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001532/0.3608, allocations: 97.72 kB / 0.5183 GB, free: 29.21 MB / 382.1 MB Notification: Performance of SimCode: time 1.422e-06/0.3608, allocations: 0 / 0.5183 GB, free: 29.21 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04076/0.4016, allocations: 9.433 MB / 0.5275 GB, free: 28.09 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.06/13.46, allocations: 7.922 kB / 0.5276 GB, free: 28.08 MB / 382.1 MB " [Timeout remaining time 646] (rm -f PowerSysPro_PowerSysPro.Examples.QfURegulation.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.QfURegulation.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.QfURegulation.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.QfURegulation.sim & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.QfURegulation_res.csv --start-time 0 --stop-time 200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.08 PowerSysPro_PowerSysPro_Examples_QfURegulation.fmu > PowerSysPro_PowerSysPro.Examples.QfURegulation.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.21916523699474] Failed to read output from testmodel.py, exit status != 0: 13.579201053995348 13.593217873 13.469477802 Calling exit ...