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.001409/0.001409, 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.001543/0.001543, allocations: 217.1 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.476/1.476, allocations: 230.6 MB / 256.8 MB, free: 7.957 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.06401/0.06401, allocations: 6.142 MB / 319.4 MB, free: 12.76 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.001581/0.001581, allocations: 47.92 kB / 444.4 MB, free: 5.109 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1038, allocations: 55.02 MB / 499.4 MB, free: 13.98 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.QfURegulation): time 0.003417/0.1073, allocations: 1.847 MB / 0.4895 GB, free: 12.14 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002783/0.11, allocations: 1.625 MB / 0.4911 GB, free: 10.5 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001948/0.1102, allocations: 4 kB / 0.4911 GB, free: 10.5 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005009/0.1107, allocations: 135.3 kB / 0.4913 GB, free: 10.36 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008036/0.1115, allocations: 222.7 kB / 0.4915 GB, free: 10.14 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002446/0.114, allocations: 1.123 MB / 0.4926 GB, free: 9.02 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000578/0.1146, allocations: 366.6 kB / 0.4929 GB, free: 8.66 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001823/0.1147, allocations: 68.23 kB / 0.493 GB, free: 8.586 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002899/0.115, allocations: 175.4 kB / 0.4932 GB, free: 8.414 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002987/0.1153, allocations: 179.2 kB / 0.4933 GB, free: 8.238 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.975e-05/0.1154, allocations: 32 kB / 0.4934 GB, free: 8.207 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00057/0.116, allocations: 279.8 kB / 0.4936 GB, free: 7.934 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001152/0.1161, allocations: 87.67 kB / 0.4937 GB, free: 7.848 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001793/0.1163, allocations: 143.3 kB / 0.4938 GB, free: 7.707 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009106/0.1172, allocations: 0.5568 MB / 0.4944 GB, free: 7.148 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.683e-06/0.1172, allocations: 4 kB / 0.4944 GB, free: 7.145 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.1172, allocations: 0 / 0.4944 GB, free: 7.145 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.706e-06/0.1172, allocations: 0 / 0.4944 GB, free: 7.145 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.004072/0.1213, allocations: 1.055 MB / 0.4954 GB, free: 6.051 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.782e-05/0.1213, allocations: 8.031 kB / 0.4954 GB, free: 6.043 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.646e-05/0.1214, allocations: 70.73 kB / 0.4955 GB, free: 5.965 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.991e-05/0.1215, allocations: 40.7 kB / 0.4955 GB, free: 5.926 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004062/0.1219, allocations: 230.7 kB / 0.4958 GB, free: 5.676 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003069/0.1222, allocations: 233.1 kB / 0.496 GB, free: 5.406 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.474e-05/0.1223, allocations: 24.38 kB / 0.496 GB, free: 5.383 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00179/0.1241, allocations: 0.8501 MB / 0.4968 GB, free: 4.48 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.208e-05/0.1241, allocations: 0 / 0.4968 GB, free: 4.48 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.995e-05/0.1241, allocations: 12 kB / 0.4968 GB, free: 4.469 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.001e-05/0.1241, allocations: 8 kB / 0.4968 GB, free: 4.461 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001071/0.1252, allocations: 461.5 kB / 0.4973 GB, free: 4.012 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002183/0.1274, allocations: 1.107 MB / 0.4984 GB, free: 2.852 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00166/0.129, allocations: 0.5845 MB / 0.4989 GB, free: 2.242 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006393/0.1297, allocations: 302.4 kB / 0.4992 GB, free: 1.938 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001179/0.1298, allocations: 15.98 kB / 0.4992 GB, free: 1.922 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005482/0.1303, allocations: 375.8 kB / 0.4996 GB, free: 1.512 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 3.046e-06/0.1303, allocations: 0 / 0.4996 GB, free: 1.512 MB / 366.1 MB Notification: Performance of matching and sorting (n=43): time 0.00374/0.1341, allocations: 1.147 MB / 0.5007 GB, free: 364 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001161/0.1342, allocations: 144.5 kB / 0.5009 GB, free: 188 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000304/0.1345, allocations: 235.1 kB / 0.5011 GB, free: 15.95 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.397e-05/0.1345, allocations: 29.7 kB / 0.5011 GB, free: 15.91 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000127/0.1347, allocations: 157 kB / 0.5013 GB, free: 15.75 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001216/0.1348, allocations: 119.2 kB / 0.5014 GB, free: 15.64 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001645/0.135, allocations: 90.17 kB / 0.5015 GB, free: 15.54 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001708/0.1351, allocations: 338.8 kB / 0.5018 GB, free: 15.2 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003469/0.1355, allocations: 208.9 kB / 0.502 GB, free: 15 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004612/0.1359, allocations: 357.6 kB / 0.5023 GB, free: 14.59 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000779/0.1367, allocations: 0.5437 MB / 0.5029 GB, free: 13.99 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.703e-06/0.1367, allocations: 4 kB / 0.5029 GB, free: 13.99 MB / 382.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001695/0.1384, allocations: 0.7913 MB / 0.5036 GB, free: 13.19 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.1384, allocations: 4 kB / 0.5036 GB, free: 13.18 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.608e-06/0.1384, allocations: 7.938 kB / 0.5036 GB, free: 13.18 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002222/0.1407, allocations: 464.3 kB / 0.5041 GB, free: 12.72 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003416/0.141, allocations: 91.83 kB / 0.5042 GB, free: 12.63 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001636/0.1426, allocations: 0.9144 MB / 0.5051 GB, free: 11.69 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003511/0.143, allocations: 47.66 kB / 0.5051 GB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.147e-05/0.143, allocations: 23.94 kB / 0.5051 GB, free: 11.62 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.0002209/0.1433, allocations: 165.7 kB / 0.5053 GB, free: 11.45 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007182/0.144, allocations: 245.4 kB / 0.5055 GB, free: 11.2 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001139/0.1451, allocations: 0.5796 MB / 0.5061 GB, free: 10.61 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.164e-06/0.1451, allocations: 4 kB / 0.5061 GB, free: 10.61 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.554e-06/0.1451, allocations: 8 kB / 0.5061 GB, free: 10.6 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.273e-06/0.1451, allocations: 3.984 kB / 0.5061 GB, free: 10.6 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002655/0.1478, allocations: 1.248 MB / 0.5073 GB, free: 9.297 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.1478, allocations: 4 kB / 0.5073 GB, free: 9.293 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000392/0.1482, allocations: 83.88 kB / 0.5074 GB, free: 9.211 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002102/0.1503, allocations: 452.4 kB / 0.5078 GB, free: 8.766 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.568e-05/0.1504, allocations: 15.98 kB / 0.5079 GB, free: 8.75 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001613/0.152, allocations: 0.912 MB / 0.5087 GB, free: 7.812 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/0.152, allocations: 0 / 0.5087 GB, free: 7.812 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002732/0.1547, allocations: 0.9973 MB / 0.5097 GB, free: 6.785 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.57e-05/0.1548, allocations: 31.69 kB / 0.5098 GB, free: 6.754 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.628e-05/0.1548, allocations: 20.02 kB / 0.5098 GB, free: 6.734 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004103/0.1553, allocations: 43.91 kB / 0.5098 GB, free: 6.691 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.863e-05/0.1553, allocations: 23.95 kB / 0.5098 GB, free: 6.668 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.145e-05/0.1554, allocations: 16 kB / 0.5099 GB, free: 6.652 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001898/0.1556, allocations: 163.3 kB / 0.51 GB, free: 6.492 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1556, allocations: 0 / 0.51 GB, free: 6.492 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004908/0.1561, allocations: 115.9 kB / 0.5101 GB, free: 6.379 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.003133/0.1592, allocations: 1.569 MB / 0.5116 GB, free: 4.773 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002044/0.1612, allocations: 0.6704 MB / 0.5123 GB, free: 4.105 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/0.1612, allocations: 4 kB / 0.5123 GB, free: 4.102 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00114/0.1624, allocations: 308.2 kB / 0.5126 GB, free: 3.801 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008299/0.1632, allocations: 148.5 kB / 0.5127 GB, free: 3.652 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1947/0.3579, allocations: 4.214 MB / 0.5169 GB, free: 29.89 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001422/0.3581, allocations: 174.4 kB / 0.517 GB, free: 29.81 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001809/0.3582, allocations: 43.31 kB / 0.5171 GB, free: 29.8 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001628/0.3584, allocations: 110 kB / 0.5172 GB, free: 29.8 MB / 382.1 MB Notification: Performance of SimCode: time 1.232e-06/0.3584, allocations: 0 / 0.5172 GB, free: 29.8 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04003/0.3984, allocations: 9.587 MB / 0.5265 GB, free: 28.38 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.02/13.42, allocations: 3.812 kB / 0.5265 GB, free: 28.38 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.202419955283403] Failed to read output from testmodel.py, exit status != 0: 13.549210999161005 13.576262779 13.453915889 Calling exit ...