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.001985/0.001985, allocations: 111.4 kB / 17.16 MB, free: 5.887 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.001447/0.001447, allocations: 208 kB / 20.14 MB, free: 2.934 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.539/1.539, allocations: 230.6 MB / 253.5 MB, free: 15.09 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.05477/0.05477, allocations: 6.128 MB / 315.7 MB, free: 1.121 MB / 238.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.001506/0.001506, allocations: 49.47 kB / 439.2 MB, free: 40.91 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.1034, allocations: 54.99 MB / 494.2 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.QfURegulation): time 0.002826/0.1062, allocations: 2.018 MB / 496.2 MB, free: 8.594 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001936/0.1081, allocations: 1.703 MB / 497.9 MB, free: 6.875 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001168/0.1082, allocations: 4 kB / 497.9 MB, free: 6.871 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003827/0.1086, allocations: 139.2 kB / 498.1 MB, free: 6.734 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005323/0.1092, allocations: 226.8 kB / 498.3 MB, free: 6.512 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001606/0.1108, allocations: 1.214 MB / 499.5 MB, free: 5.293 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003802/0.1111, allocations: 366.5 kB / 499.9 MB, free: 4.934 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001673/0.1113, allocations: 76 kB / 499.9 MB, free: 4.848 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002264/0.1115, allocations: 175.5 kB / 0.4884 GB, free: 4.676 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000225/0.1118, allocations: 195.2 kB / 0.4886 GB, free: 4.484 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.565e-05/0.1118, allocations: 32 kB / 0.4886 GB, free: 4.453 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004093/0.1122, allocations: 303.7 kB / 0.4889 GB, free: 4.156 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.497e-05/0.1123, allocations: 87.73 kB / 0.489 GB, free: 4.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001196/0.1124, allocations: 171.2 kB / 0.4892 GB, free: 3.902 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005697/0.113, allocations: 0.5529 MB / 0.4897 GB, free: 3.348 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.113, allocations: 7.938 kB / 0.4897 GB, free: 3.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.113, allocations: 3.938 kB / 0.4897 GB, free: 3.336 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.863e-06/0.113, allocations: 0 / 0.4897 GB, free: 3.336 MB / 350.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.003805/0.1168, allocations: 1.122 MB / 0.4908 GB, free: 2.164 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.664e-05/0.1168, allocations: 16.03 kB / 0.4908 GB, free: 2.148 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.365e-05/0.1169, allocations: 66.72 kB / 0.4909 GB, free: 2.074 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.93e-05/0.117, allocations: 40.7 kB / 0.4909 GB, free: 2.035 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003208/0.1173, allocations: 282.8 kB / 0.4912 GB, free: 1.723 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002005/0.1175, allocations: 108.4 kB / 0.4913 GB, free: 1.605 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.713e-05/0.1176, allocations: 36.38 kB / 0.4913 GB, free: 1.57 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001452/0.119, allocations: 0.7091 MB / 0.492 GB, free: 0.8438 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.447e-05/0.119, allocations: 0 / 0.492 GB, free: 0.8438 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.235e-05/0.1191, allocations: 16 kB / 0.492 GB, free: 0.8281 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.394e-06/0.1191, allocations: 4 kB / 0.492 GB, free: 0.8242 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009079/0.12, allocations: 453.4 kB / 0.4925 GB, free: 392 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00218/0.1222, allocations: 1.337 MB / 0.4938 GB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001767/0.1239, allocations: 0.6724 MB / 0.4944 GB, free: 14.24 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000703/0.1246, allocations: 294.4 kB / 0.4947 GB, free: 13.95 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001758/0.1248, allocations: 89.47 kB / 0.4948 GB, free: 13.84 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004868/0.1253, allocations: 281.4 kB / 0.4951 GB, free: 13.55 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 1.693e-06/0.1253, allocations: 4 kB / 0.4951 GB, free: 13.54 MB / 366.1 MB Notification: Performance of matching and sorting (n=43): time 0.004084/0.1294, allocations: 1.202 MB / 0.4962 GB, free: 12.31 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001232/0.1295, allocations: 144.5 kB / 0.4964 GB, free: 12.14 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002923/0.1298, allocations: 227.1 kB / 0.4966 GB, free: 11.91 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.725e-05/0.1299, allocations: 33.7 kB / 0.4966 GB, free: 11.87 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001235/0.13, allocations: 157 kB / 0.4968 GB, free: 11.71 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001348/0.1301, allocations: 115 kB / 0.4969 GB, free: 11.6 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001715/0.1303, allocations: 90.23 kB / 0.497 GB, free: 11.5 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001758/0.1305, allocations: 338.8 kB / 0.4973 GB, free: 11.16 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003563/0.1308, allocations: 209 kB / 0.4975 GB, free: 10.96 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004555/0.1313, allocations: 340.4 kB / 0.4978 GB, free: 10.57 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008184/0.1321, allocations: 0.536 MB / 0.4983 GB, free: 9.988 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.1321, allocations: 0 / 0.4983 GB, free: 9.988 MB / 366.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001782/0.1339, allocations: 0.7876 MB / 0.4991 GB, free: 9.191 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.185e-05/0.1339, allocations: 8 kB / 0.4991 GB, free: 9.184 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.418e-06/0.1339, allocations: 7.938 kB / 0.4991 GB, free: 9.176 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002442/0.1364, allocations: 460.4 kB / 0.4996 GB, free: 8.723 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003874/0.1368, allocations: 87.83 kB / 0.4997 GB, free: 8.637 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001741/0.1385, allocations: 0.913 MB / 0.5005 GB, free: 7.699 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003822/0.1389, allocations: 51.66 kB / 0.5006 GB, free: 7.648 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.7e-05/0.1389, allocations: 24 kB / 0.5006 GB, free: 7.625 MB / 366.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.0002637/0.1392, allocations: 161.7 kB / 0.5008 GB, free: 7.457 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007655/0.14, allocations: 253.8 kB / 0.501 GB, free: 7.203 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001259/0.1412, allocations: 0.5669 MB / 0.5016 GB, free: 6.629 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-05/0.1412, allocations: 8 kB / 0.5016 GB, free: 6.621 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.1412, allocations: 3.938 kB / 0.5016 GB, free: 6.617 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.531e-05/0.1412, allocations: 3.984 kB / 0.5016 GB, free: 6.613 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002848/0.1441, allocations: 1.37 MB / 0.5029 GB, free: 5.18 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.1441, allocations: 0 / 0.5029 GB, free: 5.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004224/0.1445, allocations: 87.88 kB / 0.503 GB, free: 5.094 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002235/0.1468, allocations: 452.3 kB / 0.5034 GB, free: 4.648 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.156e-05/0.1468, allocations: 15.98 kB / 0.5034 GB, free: 4.633 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001688/0.1485, allocations: 0.9076 MB / 0.5043 GB, free: 3.699 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.1485, allocations: 0 / 0.5043 GB, free: 3.699 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002887/0.1514, allocations: 0.9932 MB / 0.5053 GB, free: 2.68 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001137/0.1515, allocations: 104.9 kB / 0.5054 GB, free: 2.559 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.123e-05/0.1516, allocations: 24.02 kB / 0.5054 GB, free: 2.535 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004448/0.152, allocations: 43.91 kB / 0.5055 GB, free: 2.492 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.208e-05/0.1521, allocations: 23.97 kB / 0.5055 GB, free: 2.469 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.783e-05/0.1521, allocations: 19.98 kB / 0.5055 GB, free: 2.449 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002095/0.1524, allocations: 159.4 kB / 0.5057 GB, free: 2.293 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1524, allocations: 0 / 0.5057 GB, free: 2.293 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000524/0.1529, allocations: 115.9 kB / 0.5058 GB, free: 2.18 MB / 366.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.003334/0.1562, allocations: 1.568 MB / 0.5073 GB, free: 0.5742 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00217/0.1584, allocations: 0.655 MB / 0.5079 GB, free: 15.92 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.723e-06/0.1584, allocations: 4.312 kB / 0.5079 GB, free: 15.92 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001182/0.1596, allocations: 304.2 kB / 0.5082 GB, free: 15.62 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000836/0.1604, allocations: 144.7 kB / 0.5084 GB, free: 15.48 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008436/0.1688, allocations: 4.227 MB / 0.5125 GB, free: 11.07 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005025/0.1694, allocations: 0.781 MB / 0.5133 GB, free: 10.26 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001679/0.1695, allocations: 42.95 kB / 0.5133 GB, free: 10.22 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001958/0.1697, allocations: 103.3 kB / 0.5134 GB, free: 10.12 MB / 382.1 MB Notification: Performance of SimCode: time 1.743e-06/0.1697, allocations: 0 / 0.5134 GB, free: 10.12 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03587/0.2056, allocations: 9.015 MB / 0.5222 GB, free: 1.188 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.98/12.18, allocations: 16.75 kB / 0.5222 GB, free: 1.176 MB / 382.1 MB " [Timeout remaining time 648] (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: 15.078154692993849] Failed to read output from testmodel.py, exit status != 0: 12.278463919996284 12.299742395 12.182608465 Calling exit ...