Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00135/0.00135, allocations: 111 kB / 16.46 MB, free: 6.504 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001313/0.001313, allocations: 195.8 kB / 19.41 MB, free: 3.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.431/1.431, allocations: 225.6 MB / 247.8 MB, free: 13.95 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.06372/0.06372, allocations: 11.35 MB / 314 MB, free: 14.94 MB / 254.1 MB " [Timeout remaining time 180] Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestPD_bias,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPD_bias",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestPD_bias,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPD_bias",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001928/0.001928, allocations: 71.88 kB / 437.3 MB, free: 10.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1035, allocations: 54.83 MB / 492.2 MB, free: 3.504 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestPD_bias): time 0.003681/0.1071, allocations: 2.255 MB / 494.4 MB, free: 1.23 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001912/0.109, allocations: 1.03 MB / 495.5 MB, free: 200 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001737/0.1092, allocations: 15.94 kB / 495.5 MB, free: 184 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003066/0.1095, allocations: 91.28 kB / 495.6 MB, free: 92 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001343/0.1097, allocations: 75.48 kB / 495.6 MB, free: 16 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009226/0.1106, allocations: 343.2 kB / 496 MB, free: 15.68 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00069/0.1113, allocations: 0.6145 MB / 496.6 MB, free: 15.06 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001705/0.1114, allocations: 69.05 kB / 496.7 MB, free: 14.99 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002514/0.1117, allocations: 215.3 kB / 496.9 MB, free: 14.78 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003474/0.112, allocations: 262.9 kB / 497.1 MB, free: 14.52 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.372e-05/0.1121, allocations: 36 kB / 497.2 MB, free: 14.48 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001696/0.1123, allocations: 107.9 kB / 497.3 MB, free: 14.38 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000171/0.1125, allocations: 163.4 kB / 497.4 MB, free: 14.22 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002146/0.1127, allocations: 230.5 kB / 497.6 MB, free: 13.99 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005832/0.1132, allocations: 0.5289 MB / 498.2 MB, free: 13.46 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.1133, allocations: 0 / 498.2 MB, free: 13.46 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1133, allocations: 0 / 498.2 MB, free: 13.46 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.514e-06/0.1133, allocations: 0 / 498.2 MB, free: 13.46 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: 108 * Number of variables: 108 Notification: Performance of Generate backend data structure: time 0.001441/0.1147, allocations: 0.8973 MB / 499.1 MB, free: 12.5 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.843e-05/0.1147, allocations: 23.77 kB / 499.1 MB, free: 12.48 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.568e-05/0.1148, allocations: 82.72 kB / 499.2 MB, free: 12.39 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001006/0.1149, allocations: 64.52 kB / 499.2 MB, free: 12.33 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006963/0.1156, allocations: 458.1 kB / 499.7 MB, free: 11.84 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.341e-05/0.1157, allocations: 29.38 kB / 499.7 MB, free: 11.81 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.605e-05/0.1158, allocations: 56.33 kB / 499.8 MB, free: 11.76 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008529/0.1166, allocations: 0.5547 MB / 0.4886 GB, free: 11.17 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.584e-05/0.1166, allocations: 4 kB / 0.4886 GB, free: 11.16 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.774e-05/0.1167, allocations: 16 kB / 0.4886 GB, free: 11.15 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.279e-05/0.1167, allocations: 16 kB / 0.4886 GB, free: 11.13 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007207/0.1174, allocations: 403.5 kB / 0.489 GB, free: 10.74 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003196/0.1206, allocations: 2.155 MB / 0.4911 GB, free: 8.492 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000529/0.1211, allocations: 259.6 kB / 0.4914 GB, free: 8.23 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002927/0.1214, allocations: 165 kB / 0.4915 GB, free: 8.066 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.937e-05/0.1214, allocations: 7.984 kB / 0.4915 GB, free: 8.059 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004058/0.1219, allocations: 264.9 kB / 0.4918 GB, free: 7.781 MB / 366.1 MB Notification: Performance of pre-optimization done (n=36): time 1.904e-06/0.1219, allocations: 0 / 0.4918 GB, free: 7.781 MB / 366.1 MB Notification: Performance of matching and sorting (n=36): time 0.001057/0.1229, allocations: 0.586 MB / 0.4924 GB, free: 7.176 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.023e-05/0.123, allocations: 81.11 kB / 0.4924 GB, free: 7.078 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006084/0.1236, allocations: 0.5136 MB / 0.4929 GB, free: 6.551 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.724e-05/0.1236, allocations: 33.7 kB / 0.493 GB, free: 6.512 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002598/0.1239, allocations: 304.3 kB / 0.4933 GB, free: 6.211 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001239/0.124, allocations: 142.8 kB / 0.4934 GB, free: 6.07 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001683/0.1242, allocations: 114.2 kB / 0.4935 GB, free: 5.953 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001956/0.1244, allocations: 370.8 kB / 0.4939 GB, free: 5.582 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002978/0.1247, allocations: 165.1 kB / 0.494 GB, free: 5.422 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004904/0.1252, allocations: 365.9 kB / 0.4944 GB, free: 4.984 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002227/0.1274, allocations: 1.109 MB / 0.4954 GB, free: 3.77 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.733e-06/0.1274, allocations: 7.938 kB / 0.4955 GB, free: 3.762 MB / 366.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001169/0.1286, allocations: 0.746 MB / 0.4962 GB, free: 3.004 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.673e-05/0.1286, allocations: 37.7 kB / 0.4962 GB, free: 2.961 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.187e-05/0.1286, allocations: 8 kB / 0.4962 GB, free: 2.953 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.403e-05/0.1287, allocations: 11.94 kB / 0.4962 GB, free: 2.941 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005221/0.1292, allocations: 140.3 kB / 0.4964 GB, free: 2.805 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.412e-05/0.1292, allocations: 8 kB / 0.4964 GB, free: 2.797 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002674/0.1295, allocations: 75.5 kB / 0.4965 GB, free: 2.723 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.588e-05/0.1295, allocations: 27.98 kB / 0.4965 GB, free: 2.695 MB / 366.1 MB Warning: Assuming fixed start value for the following 15 variables: processNoCtrl.w:VARIABLE(fixed = true protected = true ) \"proper part of the output\" type: Real processNoCtrl.U[3]:VARIABLE(fixed = true protected = true ) type: Real [3] processNoCtrl.U[2]:VARIABLE(fixed = true protected = true ) type: Real [3] processNoCtrl.Y[4]:VARIABLE(fixed = true protected = true ) type: Real [4] processNoCtrl.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [4] ProcessBias.w:VARIABLE(fixed = true protected = true ) \"proper part of the output\" type: Real ProcessBias.U[3]:VARIABLE(fixed = true protected = true ) type: Real [3] ProcessBias.U[2]:VARIABLE(fixed = true protected = true ) type: Real [3] ProcessBias.Y[4]:VARIABLE(fixed = true protected = true ) type: Real [4] ProcessBias.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [4] ProcessCtrl.w:VARIABLE(fixed = true protected = true ) \"proper part of the output\" type: Real ProcessCtrl.U[3]:VARIABLE(fixed = true protected = true ) type: Real [3] ProcessCtrl.U[2]:VARIABLE(fixed = true protected = true ) type: Real [3] ProcessCtrl.Y[4]:VARIABLE(fixed = true protected = true ) type: Real [4] ProcessCtrl.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [4] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 15 (Disturbance.nextEventScaled,Disturbance.nextEvent,$PRE.Disturbance.nextEvent,Disturbance.last,Disturbance.b,Disturbance.a,$whenCondition1,R_Bias.TS_in,R.TS_in,R_Bias.satLOW_in,R_Bias.satHIGH_in,R_Bias.ATreq_in,R.satLOW_in,R.satHIGH_in,R.ATreq_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (74): * Single equations (assignments): 73 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004073/0.1299, allocations: 291.2 kB / 0.4968 GB, free: 2.398 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.738e-05/0.13, allocations: 55.67 kB / 0.4968 GB, free: 2.344 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008969/0.1309, allocations: 0.5148 MB / 0.4973 GB, free: 1.812 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.476e-06/0.1309, allocations: 11.94 kB / 0.4973 GB, free: 1.801 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.1309, allocations: 0 / 0.4973 GB, free: 1.801 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/0.1309, allocations: 3.984 kB / 0.4973 GB, free: 1.797 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005544/0.1315, allocations: 496.8 kB / 0.4978 GB, free: 1.262 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.1315, allocations: 4 kB / 0.4978 GB, free: 1.258 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004781/0.1319, allocations: 79.94 kB / 0.4979 GB, free: 1.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.1319, allocations: 4 kB / 0.4979 GB, free: 1.176 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.901e-05/0.132, allocations: 15.98 kB / 0.4979 GB, free: 1.16 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.879e-06/0.132, allocations: 3.938 kB / 0.4979 GB, free: 1.156 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.132, allocations: 0 / 0.4979 GB, free: 1.156 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001083/0.1331, allocations: 0.7344 MB / 0.4986 GB, free: 408 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001339/0.1332, allocations: 128.7 kB / 0.4987 GB, free: 260 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.545e-05/0.1333, allocations: 15.98 kB / 0.4988 GB, free: 244 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001568/0.1334, allocations: 19.92 kB / 0.4988 GB, free: 224 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.724e-05/0.1335, allocations: 27.97 kB / 0.4988 GB, free: 196 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.941e-05/0.1335, allocations: 8 kB / 0.4988 GB, free: 188 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004015/0.1339, allocations: 354.8 kB / 0.4991 GB, free: 15.84 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1339, allocations: 0 / 0.4991 GB, free: 15.84 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004525/0.1344, allocations: 119.8 kB / 0.4993 GB, free: 15.72 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 17 (R.Fin,R_Bias.Fin,ProcessCtrl.Y[3],ProcessCtrl.Y[4],ProcessCtrl.U[2],ProcessCtrl.U[3],ProcessCtrl.w,processNoCtrl.Y[3],processNoCtrl.Y[4],processNoCtrl.U[2],processNoCtrl.U[3],processNoCtrl.w,ProcessBias.Y[3],ProcessBias.Y[4],ProcessBias.U[2],ProcessBias.U[3],ProcessBias.w) * Number of discrete variables: 6 ($whenCondition1,Disturbance.a,Disturbance.b,Disturbance.last,Disturbance.nextEvent,Disturbance.nextEventScaled) * Number of discrete states: 6 (Disturbance.nextEvent,Disturbance.last,Disturbance.nextEventScaled,Disturbance.b,Disturbance.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001505/0.1359, allocations: 1.305 MB / 0.5005 GB, free: 14.38 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008525/0.1367, allocations: 0.5164 MB / 0.501 GB, free: 13.86 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.1367, allocations: 0 / 0.501 GB, free: 13.86 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003468/0.1371, allocations: 239.2 kB / 0.5013 GB, free: 13.61 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003321/0.1374, allocations: 70.89 kB / 0.5013 GB, free: 13.54 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006573/0.144, allocations: 5.083 MB / 0.5063 GB, free: 8.199 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005309/0.1445, allocations: 0.8976 MB / 0.5072 GB, free: 7.277 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002903/0.1448, allocations: 112.3 kB / 0.5073 GB, free: 7.168 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00024/0.145, allocations: 191.4 kB / 0.5075 GB, free: 6.98 MB / 382.1 MB Notification: Performance of SimCode: time 7.62e-07/0.145, allocations: 0 / 0.5075 GB, free: 6.98 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2309/0.3759, allocations: 9.332 MB / 0.5166 GB, free: 33.53 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.191/9.567, allocations: 8.797 kB / 0.5166 GB, free: 33.53 MB / 382.1 MB " [Timeout remaining time 650] (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPD_bias_fmu --startTime=0 --stopTime=100 --stepSize=0.04 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPD_bias.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.140004957094789] Failed to read output from testmodel.py, exit status != 0: 9.63899108627811 9.650946504 9.535241442 Calling exit ...