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.00185/0.00185, allocations: 101 kB / 20.52 MB, free: 1.449 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.001599/0.001599, allocations: 205.7 kB / 23.83 MB, free: 4.664 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.489/1.489, allocations: 230.6 MB / 257.6 MB, free: 7.969 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.04307/0.04307, allocations: 6.128 MB / 320.2 MB, free: 12.95 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.QfURegulation,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_QfURegulation",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001657/0.001657, allocations: 43.94 kB / 445.3 MB, free: 5.379 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.104, allocations: 55.03 MB / 0.4886 GB, free: 14.24 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.QfURegulation): time 0.004015/0.108, allocations: 2.033 MB / 0.4906 GB, free: 12.21 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002793/0.1108, allocations: 1.7 MB / 0.4922 GB, free: 10.5 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002672/0.1111, allocations: 4 kB / 0.4922 GB, free: 10.49 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004803/0.1115, allocations: 139.2 kB / 0.4924 GB, free: 10.36 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007606/0.1123, allocations: 230.8 kB / 0.4926 GB, free: 10.13 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002275/0.1146, allocations: 1.218 MB / 0.4938 GB, free: 8.906 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005907/0.1152, allocations: 370.5 kB / 0.4941 GB, free: 8.543 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002006/0.1154, allocations: 76.19 kB / 0.4942 GB, free: 8.461 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003473/0.1157, allocations: 175.4 kB / 0.4944 GB, free: 8.289 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004026/0.1161, allocations: 199.2 kB / 0.4946 GB, free: 8.094 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.272e-05/0.1162, allocations: 28 kB / 0.4946 GB, free: 8.066 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005959/0.1168, allocations: 303.8 kB / 0.4949 GB, free: 7.77 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000111/0.1169, allocations: 87.67 kB / 0.495 GB, free: 7.684 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002153/0.1171, allocations: 171.2 kB / 0.4951 GB, free: 7.516 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008994/0.118, allocations: 0.5567 MB / 0.4957 GB, free: 6.957 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.118, allocations: 4 kB / 0.4957 GB, free: 6.953 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.118, allocations: 0 / 0.4957 GB, free: 6.953 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.08e-05/0.118, allocations: 4 kB / 0.4957 GB, free: 6.949 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.004243/0.1223, allocations: 1.05 MB / 0.4967 GB, free: 5.863 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.183e-05/0.1223, allocations: 12.03 kB / 0.4967 GB, free: 5.852 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.347e-05/0.1223, allocations: 16.83 kB / 0.4967 GB, free: 5.836 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.634e-05/0.1224, allocations: 62.73 kB / 0.4968 GB, free: 5.766 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001064/0.1225, allocations: 40.7 kB / 0.4968 GB, free: 5.727 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003921/0.1229, allocations: 230.7 kB / 0.4971 GB, free: 5.477 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003159/0.1232, allocations: 237.1 kB / 0.4973 GB, free: 5.203 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.153e-05/0.1233, allocations: 32.36 kB / 0.4973 GB, free: 5.172 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001782/0.1251, allocations: 0.7145 MB / 0.498 GB, free: 4.434 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.516e-05/0.1251, allocations: 3.938 kB / 0.498 GB, free: 4.43 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.681e-05/0.1251, allocations: 16 kB / 0.498 GB, free: 4.414 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.588e-05/0.1252, allocations: 4 kB / 0.498 GB, free: 4.41 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001097/0.1263, allocations: 461.5 kB / 0.4985 GB, free: 3.961 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002355/0.1287, allocations: 1.309 MB / 0.4997 GB, free: 2.574 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00165/0.1303, allocations: 0.5999 MB / 0.5003 GB, free: 1.949 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006557/0.131, allocations: 294.4 kB / 0.5006 GB, free: 1.652 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001121/0.1311, allocations: 20.12 kB / 0.5006 GB, free: 1.633 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004643/0.1315, allocations: 277.4 kB / 0.5009 GB, free: 1.344 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 2.214e-06/0.1315, allocations: 0 / 0.5009 GB, free: 1.344 MB / 366.1 MB Notification: Performance of matching and sorting (n=43): time 0.003849/0.1354, allocations: 1.143 MB / 0.502 GB, free: 196 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001304/0.1355, allocations: 140.5 kB / 0.5021 GB, free: 24 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003279/0.1359, allocations: 227 kB / 0.5024 GB, free: 15.79 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.438e-05/0.1359, allocations: 37.7 kB / 0.5024 GB, free: 15.75 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001371/0.1361, allocations: 153 kB / 0.5025 GB, free: 15.6 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001175/0.1362, allocations: 115 kB / 0.5027 GB, free: 15.48 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000178/0.1364, allocations: 102.2 kB / 0.5028 GB, free: 15.38 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001586/0.1365, allocations: 338.8 kB / 0.5031 GB, free: 15.04 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003547/0.1369, allocations: 208.9 kB / 0.5033 GB, free: 14.84 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004561/0.1373, allocations: 331.9 kB / 0.5036 GB, free: 14.45 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008159/0.1381, allocations: 0.5476 MB / 0.5041 GB, free: 13.86 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.042e-06/0.1381, allocations: 4 kB / 0.5041 GB, free: 13.85 MB / 382.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001748/0.1399, allocations: 0.7796 MB / 0.5049 GB, free: 13.06 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.081e-05/0.1399, allocations: 8 kB / 0.5049 GB, free: 13.05 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.016e-05/0.1399, allocations: 8 kB / 0.5049 GB, free: 13.05 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002315/0.1422, allocations: 464.3 kB / 0.5053 GB, free: 12.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003366/0.1426, allocations: 83.91 kB / 0.5054 GB, free: 12.51 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001648/0.1442, allocations: 0.9143 MB / 0.5063 GB, free: 11.57 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003706/0.1446, allocations: 47.66 kB / 0.5064 GB, free: 11.52 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.675e-05/0.1446, allocations: 20.09 kB / 0.5064 GB, free: 11.5 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.0002405/0.1449, allocations: 175.9 kB / 0.5066 GB, free: 11.32 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007622/0.1456, allocations: 261.2 kB / 0.5068 GB, free: 11.06 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001183/0.1468, allocations: 0.5641 MB / 0.5074 GB, free: 10.49 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.223e-06/0.1468, allocations: 4 kB / 0.5074 GB, free: 10.48 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.1468, allocations: 0 / 0.5074 GB, free: 10.48 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.188e-05/0.1468, allocations: 7.984 kB / 0.5074 GB, free: 10.48 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002818/0.1497, allocations: 1.346 MB / 0.5087 GB, free: 9.078 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.977e-06/0.1497, allocations: 0 / 0.5087 GB, free: 9.078 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003933/0.1501, allocations: 87.88 kB / 0.5088 GB, free: 8.992 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002236/0.1523, allocations: 461 kB / 0.5092 GB, free: 8.539 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.682e-05/0.1523, allocations: 11.98 kB / 0.5092 GB, free: 8.527 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001631/0.154, allocations: 0.9114 MB / 0.5101 GB, free: 7.59 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.539e-06/0.154, allocations: 4 kB / 0.5101 GB, free: 7.586 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002802/0.1568, allocations: 0.9896 MB / 0.5111 GB, free: 6.566 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.737e-05/0.1569, allocations: 35.69 kB / 0.5111 GB, free: 6.531 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.024e-05/0.157, allocations: 15.92 kB / 0.5111 GB, free: 6.516 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004492/0.1574, allocations: 43.97 kB / 0.5112 GB, free: 6.473 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.9e-05/0.1575, allocations: 27.89 kB / 0.5112 GB, free: 6.445 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.928e-05/0.1575, allocations: 19.98 kB / 0.5112 GB, free: 6.426 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001891/0.1577, allocations: 159.4 kB / 0.5114 GB, free: 6.27 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1577, allocations: 0 / 0.5114 GB, free: 6.27 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005873/0.1583, allocations: 115.9 kB / 0.5115 GB, free: 6.156 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.003381/0.1617, allocations: 1.561 MB / 0.513 GB, free: 4.559 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002243/0.1639, allocations: 0.666 MB / 0.5136 GB, free: 3.895 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/0.1639, allocations: 4 kB / 0.5137 GB, free: 3.891 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001204/0.1651, allocations: 312.7 kB / 0.514 GB, free: 3.586 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009694/0.1661, allocations: 145.5 kB / 0.5141 GB, free: 3.441 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.205/0.3711, allocations: 4.233 MB / 0.5182 GB, free: 29.82 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002215/0.3713, allocations: 0.7794 MB / 0.519 GB, free: 29.12 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001841/0.3715, allocations: 40.58 kB / 0.519 GB, free: 29.12 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001656/0.3717, allocations: 100.8 kB / 0.5191 GB, free: 29.11 MB / 382.1 MB Notification: Performance of SimCode: time 1.072e-06/0.3717, allocations: 1.156 kB / 0.5191 GB, free: 29.11 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03398/0.4056, allocations: 9.467 MB / 0.5284 GB, free: 27.97 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.33/13.74, allocations: 13.56 kB / 0.5284 GB, free: 27.96 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 & /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.447798148030415] Failed to read output from testmodel.py, exit status != 0: 13.911250112927519 13.924758831 13.803925264 Calling exit ...