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.001614/0.001614, allocations: 118.2 kB / 19.74 MB, free: 2.152 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.001922/0.001922, allocations: 225.2 kB / 23.05 MB, free: 4.996 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.521/1.521, allocations: 230.6 MB / 256.8 MB, free: 8.07 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.04402/0.04402, allocations: 6.13 MB / 319.4 MB, free: 13 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.001736/0.001736, allocations: 47.92 kB / 444.5 MB, free: 5.461 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.1155, allocations: 55.03 MB / 499.5 MB, free: 14.33 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.QfURegulation): time 0.003469/0.119, allocations: 2.029 MB / 0.4898 GB, free: 12.3 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002541/0.1215, allocations: 1.704 MB / 0.4915 GB, free: 10.59 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001154/0.1216, allocations: 4 kB / 0.4915 GB, free: 10.58 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004089/0.122, allocations: 147.2 kB / 0.4916 GB, free: 10.44 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006148/0.1226, allocations: 218.8 kB / 0.4918 GB, free: 10.22 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002382/0.125, allocations: 1.224 MB / 0.493 GB, free: 8.996 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007751/0.1258, allocations: 370.5 kB / 0.4934 GB, free: 8.633 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000231/0.126, allocations: 80.17 kB / 0.4934 GB, free: 8.547 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003406/0.1264, allocations: 163.5 kB / 0.4936 GB, free: 8.387 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003416/0.1267, allocations: 199.2 kB / 0.4938 GB, free: 8.191 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.882e-05/0.1268, allocations: 32 kB / 0.4938 GB, free: 8.16 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006073/0.1274, allocations: 303.7 kB / 0.4941 GB, free: 7.863 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001324/0.1275, allocations: 87.72 kB / 0.4942 GB, free: 7.777 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001881/0.1277, allocations: 171.2 kB / 0.4944 GB, free: 7.609 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008033/0.1285, allocations: 0.5567 MB / 0.4949 GB, free: 7.051 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.1285, allocations: 3.938 kB / 0.4949 GB, free: 7.047 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1285, allocations: 0 / 0.4949 GB, free: 7.047 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.753e-06/0.1285, allocations: 3.938 kB / 0.4949 GB, free: 7.043 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.004109/0.1326, allocations: 1.055 MB / 0.4959 GB, free: 5.949 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.089e-05/0.1327, allocations: 8.031 kB / 0.4959 GB, free: 5.941 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.916e-05/0.1327, allocations: 70.73 kB / 0.496 GB, free: 5.863 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.899e-05/0.1328, allocations: 40.7 kB / 0.4961 GB, free: 5.824 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003982/0.1332, allocations: 226.7 kB / 0.4963 GB, free: 5.578 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003164/0.1336, allocations: 237 kB / 0.4965 GB, free: 5.305 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.55e-05/0.1336, allocations: 28.38 kB / 0.4965 GB, free: 5.277 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001741/0.1354, allocations: 0.7182 MB / 0.4972 GB, free: 4.539 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.494e-05/0.1354, allocations: 0 / 0.4972 GB, free: 4.539 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.467e-05/0.1354, allocations: 12 kB / 0.4972 GB, free: 4.527 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.043e-05/0.1354, allocations: 8 kB / 0.4972 GB, free: 4.52 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001108/0.1365, allocations: 469.4 kB / 0.4977 GB, free: 4.062 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00239/0.1389, allocations: 1.309 MB / 0.499 GB, free: 2.676 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001644/0.1406, allocations: 0.601 MB / 0.4996 GB, free: 2.047 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006849/0.1412, allocations: 290.5 kB / 0.4998 GB, free: 1.754 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001387/0.1414, allocations: 20.12 kB / 0.4998 GB, free: 1.734 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005208/0.1419, allocations: 273.4 kB / 0.5001 GB, free: 1.449 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 2.514e-06/0.1419, allocations: 0 / 0.5001 GB, free: 1.449 MB / 366.1 MB Notification: Performance of matching and sorting (n=43): time 0.004026/0.1459, allocations: 1.147 MB / 0.5012 GB, free: 300 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001266/0.1461, allocations: 140.5 kB / 0.5014 GB, free: 128 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003178/0.1464, allocations: 231 kB / 0.5016 GB, free: 15.89 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.008e-05/0.1464, allocations: 37.7 kB / 0.5016 GB, free: 15.85 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001311/0.1466, allocations: 157 kB / 0.5018 GB, free: 15.69 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001142/0.1467, allocations: 111.1 kB / 0.5019 GB, free: 15.58 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001748/0.1469, allocations: 98.17 kB / 0.502 GB, free: 15.48 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001683/0.147, allocations: 330.8 kB / 0.5023 GB, free: 15.15 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004536/0.1475, allocations: 212.9 kB / 0.5025 GB, free: 14.94 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005057/0.148, allocations: 335.8 kB / 0.5028 GB, free: 14.55 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008933/0.1489, allocations: 0.5438 MB / 0.5033 GB, free: 13.96 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.604e-06/0.1489, allocations: 7.938 kB / 0.5033 GB, free: 13.95 MB / 382.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001854/0.1507, allocations: 0.7874 MB / 0.5041 GB, free: 13.16 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.795e-05/0.1508, allocations: 8 kB / 0.5041 GB, free: 13.15 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.289e-05/0.1508, allocations: 4 kB / 0.5041 GB, free: 13.14 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002386/0.1532, allocations: 464.3 kB / 0.5046 GB, free: 12.69 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003522/0.1535, allocations: 87.84 kB / 0.5047 GB, free: 12.6 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001742/0.1553, allocations: 0.9114 MB / 0.5055 GB, free: 11.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003775/0.1556, allocations: 51.67 kB / 0.5056 GB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.921e-05/0.1557, allocations: 23.98 kB / 0.5056 GB, free: 11.59 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.0002531/0.156, allocations: 165.7 kB / 0.5058 GB, free: 11.42 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007512/0.1567, allocations: 253.3 kB / 0.506 GB, free: 11.16 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001296/0.158, allocations: 0.5641 MB / 0.5066 GB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.045e-06/0.158, allocations: 8 kB / 0.5066 GB, free: 10.58 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.787e-06/0.158, allocations: 0 / 0.5066 GB, free: 10.58 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.206e-05/0.158, allocations: 7.984 kB / 0.5066 GB, free: 10.57 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003015/0.1611, allocations: 1.346 MB / 0.5079 GB, free: 9.176 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.629e-06/0.1611, allocations: 0 / 0.5079 GB, free: 9.176 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004122/0.1615, allocations: 87.88 kB / 0.508 GB, free: 9.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00218/0.1637, allocations: 452.4 kB / 0.5084 GB, free: 8.645 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.821e-05/0.1637, allocations: 7.984 kB / 0.5084 GB, free: 8.637 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001704/0.1654, allocations: 0.916 MB / 0.5093 GB, free: 7.695 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.803e-06/0.1654, allocations: 4.094 kB / 0.5093 GB, free: 7.691 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002821/0.1682, allocations: 0.9933 MB / 0.5103 GB, free: 6.668 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.256e-05/0.1683, allocations: 39.67 kB / 0.5103 GB, free: 6.629 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.424e-05/0.1684, allocations: 19.92 kB / 0.5103 GB, free: 6.609 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004781/0.1689, allocations: 43.97 kB / 0.5104 GB, free: 6.566 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.475e-05/0.169, allocations: 19.95 kB / 0.5104 GB, free: 6.547 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.572e-05/0.169, allocations: 19.98 kB / 0.5104 GB, free: 6.527 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001957/0.1692, allocations: 163.4 kB / 0.5106 GB, free: 6.367 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1692, allocations: 4 kB / 0.5106 GB, free: 6.363 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005282/0.1697, allocations: 115.9 kB / 0.5107 GB, free: 6.25 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.00332/0.1731, allocations: 1.564 MB / 0.5122 GB, free: 4.648 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00221/0.1753, allocations: 0.6591 MB / 0.5129 GB, free: 3.992 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.126e-06/0.1753, allocations: 4 kB / 0.5129 GB, free: 3.988 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001213/0.1765, allocations: 311.8 kB / 0.5132 GB, free: 3.684 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008816/0.1774, allocations: 144.7 kB / 0.5133 GB, free: 3.539 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.222/0.3994, allocations: 4.221 MB / 0.5174 GB, free: 29.77 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002277/0.3996, allocations: 0.781 MB / 0.5182 GB, free: 29.07 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002099/0.3998, allocations: 45.23 kB / 0.5182 GB, free: 29.06 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001721/0.4, allocations: 99.19 kB / 0.5183 GB, free: 29.05 MB / 382.1 MB Notification: Performance of SimCode: time 1.292e-06/0.4, allocations: 0 / 0.5183 GB, free: 29.05 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04136/0.4414, allocations: 9.45 MB / 0.5276 GB, free: 27.91 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.86/13.3, allocations: 8.062 kB / 0.5276 GB, free: 27.9 MB / 382.1 MB " [Timeout remaining time 647] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_QfURegulation_fmu --startTime=0 --stopTime=200 --stepSize=0.08 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_QfURegulation.fmu > PowerSysPro_PowerSysPro.Examples.QfURegulation.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.070874383905903] Failed to read output from testmodel.py, exit status != 0: 13.422218582127243 13.437141048 13.306069895 Calling exit ...