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.001679/0.001679, allocations: 104.3 kB / 19.74 MB, free: 1.766 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.002126/0.002126, allocations: 219.3 kB / 23.03 MB, free: 4.625 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.502/1.502, 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.03758/0.03758, allocations: 6.143 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.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.001595/0.001595, allocations: 55.92 kB / 444.4 MB, free: 5.109 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.111, allocations: 55.02 MB / 499.4 MB, free: 13.99 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.QfURegulation): time 0.003198/0.1142, allocations: 1.856 MB / 0.4895 GB, free: 12.14 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002481/0.1167, allocations: 1.622 MB / 0.4911 GB, free: 10.5 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001205/0.1168, allocations: 4 kB / 0.4911 GB, free: 10.5 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003809/0.1172, allocations: 131.3 kB / 0.4913 GB, free: 10.37 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006138/0.1178, allocations: 234.6 kB / 0.4915 GB, free: 10.14 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002228/0.12, allocations: 1.115 MB / 0.4926 GB, free: 9.02 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005415/0.1206, allocations: 362.6 kB / 0.4929 GB, free: 8.664 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001831/0.1207, allocations: 68.23 kB / 0.493 GB, free: 8.59 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003039/0.121, allocations: 175.5 kB / 0.4932 GB, free: 8.418 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003032/0.1214, allocations: 175.2 kB / 0.4933 GB, free: 8.246 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.2e-05/0.1214, allocations: 32 kB / 0.4933 GB, free: 8.215 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005585/0.122, allocations: 275.8 kB / 0.4936 GB, free: 7.945 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001171/0.1221, allocations: 99.64 kB / 0.4937 GB, free: 7.848 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001779/0.1223, allocations: 139.3 kB / 0.4938 GB, free: 7.711 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007492/0.123, allocations: 0.5607 MB / 0.4944 GB, free: 7.148 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.123, allocations: 0 / 0.4944 GB, free: 7.148 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.123, allocations: 0 / 0.4944 GB, free: 7.148 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.36e-06/0.123, allocations: 0 / 0.4944 GB, free: 7.148 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.003932/0.127, allocations: 1.051 MB / 0.4954 GB, free: 6.059 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.673e-05/0.127, allocations: 12.03 kB / 0.4954 GB, free: 6.047 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.6e-05/0.1271, allocations: 70.67 kB / 0.4955 GB, free: 5.969 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.373e-05/0.1272, allocations: 44.69 kB / 0.4955 GB, free: 5.926 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003788/0.1276, allocations: 222.7 kB / 0.4957 GB, free: 5.684 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002878/0.1278, allocations: 229.1 kB / 0.496 GB, free: 5.418 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.32e-05/0.1279, allocations: 32.38 kB / 0.496 GB, free: 5.387 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001795/0.1297, allocations: 0.844 MB / 0.4968 GB, free: 4.488 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.129e-05/0.1297, allocations: 0 / 0.4968 GB, free: 4.488 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.142e-05/0.1298, allocations: 16 kB / 0.4968 GB, free: 4.473 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.114e-05/0.1298, allocations: 12 kB / 0.4968 GB, free: 4.461 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001098/0.1309, allocations: 461.4 kB / 0.4973 GB, free: 4.012 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002152/0.133, allocations: 1.103 MB / 0.4984 GB, free: 2.855 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001643/0.1347, allocations: 0.5815 MB / 0.4989 GB, free: 2.246 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006488/0.1353, allocations: 306.5 kB / 0.4992 GB, free: 1.938 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000113/0.1354, allocations: 15.98 kB / 0.4992 GB, free: 1.922 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005116/0.1359, allocations: 371.8 kB / 0.4996 GB, free: 1.516 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 1.894e-06/0.1359, allocations: 0 / 0.4996 GB, free: 1.516 MB / 366.1 MB Notification: Performance of matching and sorting (n=43): time 0.003838/0.1398, allocations: 1.147 MB / 0.5007 GB, free: 368 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000112/0.1399, allocations: 144.5 kB / 0.5009 GB, free: 192 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000294/0.1402, allocations: 227.3 kB / 0.5011 GB, free: 15.95 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.167e-05/0.1402, allocations: 37.7 kB / 0.5011 GB, free: 15.91 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001273/0.1404, allocations: 156.9 kB / 0.5013 GB, free: 15.76 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001111/0.1405, allocations: 115 kB / 0.5014 GB, free: 15.64 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001716/0.1406, allocations: 94.17 kB / 0.5015 GB, free: 15.55 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001678/0.1408, allocations: 338.8 kB / 0.5018 GB, free: 15.21 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003541/0.1412, allocations: 204.9 kB / 0.502 GB, free: 15.01 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004946/0.1417, allocations: 364.2 kB / 0.5023 GB, free: 14.59 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008584/0.1425, allocations: 0.5476 MB / 0.5029 GB, free: 13.99 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.165e-06/0.1425, allocations: 7.984 kB / 0.5029 GB, free: 13.98 MB / 382.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001789/0.1443, allocations: 0.7874 MB / 0.5036 GB, free: 13.19 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.393e-05/0.1443, allocations: 4 kB / 0.5036 GB, free: 13.18 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.094e-05/0.1443, allocations: 4 kB / 0.5036 GB, free: 13.18 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002307/0.1467, allocations: 464.4 kB / 0.5041 GB, free: 12.72 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003398/0.147, allocations: 87.83 kB / 0.5042 GB, free: 12.64 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001636/0.1486, allocations: 0.9192 MB / 0.5051 GB, free: 11.69 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003573/0.149, allocations: 47.66 kB / 0.5051 GB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.524e-05/0.149, allocations: 20 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.0002614/0.1493, allocations: 165.7 kB / 0.5053 GB, free: 11.45 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007801/0.1501, allocations: 253.4 kB / 0.5055 GB, free: 11.2 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001207/0.1513, allocations: 0.5718 MB / 0.5061 GB, free: 10.62 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.033e-06/0.1513, allocations: 8 kB / 0.5061 GB, free: 10.61 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.1513, allocations: 4 kB / 0.5061 GB, free: 10.61 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.737e-06/0.1513, allocations: 3.984 kB / 0.5061 GB, free: 10.6 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002696/0.154, allocations: 1.249 MB / 0.5073 GB, free: 9.301 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.154, allocations: 0 / 0.5073 GB, free: 9.301 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003889/0.1544, allocations: 83.88 kB / 0.5074 GB, free: 9.219 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002065/0.1565, allocations: 460.4 kB / 0.5078 GB, free: 8.766 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.562e-05/0.1565, allocations: 11.98 kB / 0.5079 GB, free: 8.754 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00162/0.1581, allocations: 0.9154 MB / 0.5087 GB, free: 7.812 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.1581, allocations: 3.938 kB / 0.5087 GB, free: 7.809 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002708/0.1608, allocations: 0.9934 MB / 0.5097 GB, free: 6.785 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.739e-05/0.1609, allocations: 35.67 kB / 0.5098 GB, free: 6.75 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.813e-05/0.161, allocations: 15.94 kB / 0.5098 GB, free: 6.734 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004355/0.1614, allocations: 47.95 kB / 0.5098 GB, free: 6.688 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.288e-05/0.1615, allocations: 19.95 kB / 0.5098 GB, free: 6.668 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.835e-05/0.1616, allocations: 19.98 kB / 0.5099 GB, free: 6.648 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001869/0.1617, allocations: 163.4 kB / 0.51 GB, free: 6.488 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1617, allocations: 7.938 kB / 0.51 GB, free: 6.48 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004919/0.1622, allocations: 115.9 kB / 0.5101 GB, free: 6.367 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.003296/0.1655, allocations: 1.549 MB / 0.5116 GB, free: 4.781 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002029/0.1676, allocations: 0.6702 MB / 0.5123 GB, free: 4.113 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.48e-06/0.1676, allocations: 4 kB / 0.5123 GB, free: 4.109 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001123/0.1687, allocations: 312.4 kB / 0.5126 GB, free: 3.805 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008033/0.1695, allocations: 148.7 kB / 0.5127 GB, free: 3.656 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1897/0.3592, allocations: 4.22 MB / 0.5169 GB, free: 29.89 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001423/0.3593, allocations: 178.9 kB / 0.517 GB, free: 29.82 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001804/0.3595, allocations: 36.22 kB / 0.5171 GB, free: 29.81 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001591/0.3597, allocations: 101.7 kB / 0.5172 GB, free: 29.8 MB / 382.1 MB Notification: Performance of SimCode: time 1.292e-06/0.3597, allocations: 0 / 0.5172 GB, free: 29.8 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03844/0.3981, allocations: 9.603 MB / 0.5265 GB, free: 28.42 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.62/13.02, allocations: 7.594 kB / 0.5265 GB, free: 28.42 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: 15.726690319366753] Failed to read output from testmodel.py, exit status != 0: 13.138535900972784 13.16138299 13.03432128 Calling exit ...