Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.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.001427/0.001427, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001701/0.001701, allocations: 215.4 kB / 22.24 MB, free: 5.258 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.393/1.393, allocations: 230.6 MB / 256 MB, free: 7.773 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo): time 0.06272/0.06272, allocations: 11.34 MB / 323.8 MB, free: 8.125 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/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(IndustrialControlSystems.Controllers.Examples.TestPD_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPD_tracking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestPD_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPD_tracking",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: IndustrialControlSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002042/0.002042, allocations: 63.89 kB / 451 MB, free: 10.36 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.1035, allocations: 56.07 MB / 0.4951 GB, free: 2.184 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestPD_tracking): time 0.003953/0.1074, allocations: 2.353 MB / 0.4974 GB, free: 15.81 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002865/0.1103, allocations: 1.61 MB / 0.499 GB, free: 14.19 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001897/0.1105, allocations: 23.75 kB / 0.499 GB, free: 14.17 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006901/0.1112, allocations: 223 kB / 0.4993 GB, free: 13.95 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004644/0.1117, allocations: 215 kB / 0.4995 GB, free: 13.74 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009631/0.1126, allocations: 430.1 kB / 0.4999 GB, free: 13.32 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008432/0.1135, allocations: 0.6607 MB / 0.5005 GB, free: 12.66 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001917/0.1136, allocations: 69.5 kB / 0.5006 GB, free: 12.59 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003206/0.114, allocations: 243.1 kB / 0.5008 GB, free: 12.35 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003466/0.1143, allocations: 250.9 kB / 0.501 GB, free: 12.1 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.789e-05/0.1144, allocations: 36 kB / 0.5011 GB, free: 12.07 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002899/0.1147, allocations: 155.8 kB / 0.5012 GB, free: 11.91 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001789/0.1149, allocations: 159.4 kB / 0.5014 GB, free: 11.76 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001926/0.115, allocations: 170.9 kB / 0.5015 GB, free: 11.59 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007298/0.1158, allocations: 0.5911 MB / 0.5021 GB, free: 11 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.1158, allocations: 0 / 0.5021 GB, free: 11 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1158, allocations: 4 kB / 0.5021 GB, free: 10.99 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.985e-06/0.1158, allocations: 0 / 0.5021 GB, free: 10.99 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.001522/0.1173, allocations: 0.8651 MB / 0.503 GB, free: 10.09 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.842e-05/0.1173, allocations: 8.031 kB / 0.503 GB, free: 10.08 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.101e-05/0.1174, allocations: 82.72 kB / 0.5031 GB, free: 9.988 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001082/0.1175, allocations: 64.52 kB / 0.5031 GB, free: 9.926 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007266/0.1183, allocations: 414.8 kB / 0.5035 GB, free: 9.492 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.724e-05/0.1183, allocations: 29.38 kB / 0.5035 GB, free: 9.465 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.46e-05/0.1184, allocations: 39.94 kB / 0.5036 GB, free: 9.426 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007679/0.1191, allocations: 0.4971 MB / 0.5041 GB, free: 8.891 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.303e-05/0.1192, allocations: 4 kB / 0.5041 GB, free: 8.887 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.933e-05/0.1192, allocations: 16 kB / 0.5041 GB, free: 8.871 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.256e-05/0.1192, allocations: 11.94 kB / 0.5041 GB, free: 8.859 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000611/0.1198, allocations: 360 kB / 0.5044 GB, free: 8.504 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00263/0.1225, allocations: 1.827 MB / 0.5062 GB, free: 6.586 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004872/0.1229, allocations: 263.9 kB / 0.5065 GB, free: 6.316 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002715/0.1232, allocations: 166.7 kB / 0.5066 GB, free: 6.145 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.144e-05/0.1233, allocations: 4.234 kB / 0.5066 GB, free: 6.141 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000446/0.1237, allocations: 277.8 kB / 0.5069 GB, free: 5.848 MB / 382.1 MB Notification: Performance of pre-optimization done (n=33): time 1.904e-06/0.1237, allocations: 0 / 0.5069 GB, free: 5.848 MB / 382.1 MB Notification: Performance of matching and sorting (n=33): time 0.001088/0.1248, allocations: 0.6253 MB / 0.5075 GB, free: 5.199 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.668e-05/0.1249, allocations: 85.11 kB / 0.5076 GB, free: 5.098 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006792/0.1255, allocations: 0.569 MB / 0.5082 GB, free: 4.516 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.256e-05/0.1256, allocations: 33.7 kB / 0.5082 GB, free: 4.477 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002322/0.1258, allocations: 288.3 kB / 0.5085 GB, free: 4.191 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001079/0.1259, allocations: 127 kB / 0.5086 GB, free: 4.066 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001439/0.126, allocations: 102.1 kB / 0.5087 GB, free: 3.961 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001857/0.1262, allocations: 370.8 kB / 0.509 GB, free: 3.59 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002915/0.1265, allocations: 178.7 kB / 0.5092 GB, free: 3.41 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000444/0.127, allocations: 372.7 kB / 0.5096 GB, free: 2.965 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0019/0.1289, allocations: 0.9447 MB / 0.5105 GB, free: 1.926 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.427e-06/0.1289, allocations: 8 kB / 0.5105 GB, free: 1.918 MB / 382.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001057/0.1299, allocations: 0.6851 MB / 0.5112 GB, free: 1.215 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.174e-05/0.13, allocations: 37.7 kB / 0.5112 GB, free: 1.172 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.092e-05/0.13, allocations: 7.984 kB / 0.5112 GB, free: 1.164 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.01e-05/0.13, allocations: 8 kB / 0.5112 GB, free: 1.156 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004261/0.1304, allocations: 107.8 kB / 0.5113 GB, free: 1.051 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.58e-05/0.1304, allocations: 15.92 kB / 0.5113 GB, free: 1.035 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002433/0.1307, allocations: 63.55 kB / 0.5114 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.957e-05/0.1307, allocations: 24 kB / 0.5114 GB, free: 0.9492 MB / 382.1 MB Warning: Assuming fixed start value for the following 10 variables: processTrack.w:VARIABLE(fixed = true protected = true ) \"proper part of the output\" type: Real processTrack.U[3]:VARIABLE(fixed = true protected = true ) type: Real [3] processTrack.U[2]:VARIABLE(fixed = true protected = true ) type: Real [3] processTrack.Y[4]:VARIABLE(fixed = true protected = true ) type: Real [4] processTrack.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [4] process.w:VARIABLE(fixed = true protected = true ) \"proper part of the output\" type: Real process.U[3]:VARIABLE(fixed = true protected = true ) type: Real [3] process.U[2]:VARIABLE(fixed = true protected = true ) type: Real [3] process.Y[4]:VARIABLE(fixed = true protected = true ) type: Real [4] process.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [4] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 20 ($PRE.TSsignal.combiTimeTable.nextTimeEvent,$whenCondition2,TrackRef.nextEventScaled,TrackRef.nextEvent,$PRE.TrackRef.nextEvent,TrackRef.last,TrackRef.b,TrackRef.a,TSsignal.combiTimeTable.nextTimeEventScaled,$PRE.TSsignal.combiTimeTable.nextTimeEventScaled,TSsignal.combiTimeTable.nextTimeEvent,R_track.ts,$whenCondition1,R.TS_in,R_track.satLOW_in,R_track.satHIGH_in,R_track.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 (63): * Single equations (assignments): 62 * 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.0003435/0.1311, allocations: 279 kB / 0.5117 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.846e-05/0.1312, allocations: 59.56 kB / 0.5117 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008918/0.132, allocations: 0.534 MB / 0.5123 GB, free: 48 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.83e-06/0.132, allocations: 4 kB / 0.5123 GB, free: 44 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.1321, allocations: 4 kB / 0.5123 GB, free: 40 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.478e-06/0.1321, allocations: 0 / 0.5123 GB, free: 40 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1983/0.3304, allocations: 394.8 kB / 0.5126 GB, free: 23.2 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.3304, allocations: 0.6562 kB / 0.5126 GB, free: 23.2 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003959/0.3308, allocations: 72.33 kB / 0.5127 GB, free: 23.2 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.011e-06/0.3308, allocations: 3.312 kB / 0.5127 GB, free: 23.2 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.681e-05/0.3308, allocations: 15.7 kB / 0.5127 GB, free: 23.2 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.798e-06/0.3308, allocations: 1.344 kB / 0.5127 GB, free: 23.2 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.3308, allocations: 0.9062 kB / 0.5127 GB, free: 23.2 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009644/0.3318, allocations: 0.7467 MB / 0.5135 GB, free: 23.04 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.561e-05/0.3319, allocations: 63.19 kB / 0.5135 GB, free: 23.04 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.474e-05/0.3319, allocations: 14.52 kB / 0.5135 GB, free: 23.04 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001562/0.3321, allocations: 16.2 kB / 0.5135 GB, free: 23.04 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.9e-05/0.3322, allocations: 27.97 kB / 0.5136 GB, free: 23.04 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.894e-05/0.3322, allocations: 14.8 kB / 0.5136 GB, free: 23.04 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003513/0.3325, allocations: 386.3 kB / 0.514 GB, free: 22.95 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3325, allocations: 1.844 kB / 0.514 GB, free: 22.95 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004445/0.333, allocations: 125.5 kB / 0.5141 GB, free: 22.95 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 12 (R.Fin,R_track.Fin,process.Y[3],process.Y[4],process.U[2],process.U[3],process.w,processTrack.Y[3],processTrack.Y[4],processTrack.U[2],processTrack.U[3],processTrack.w) * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,R_track.ts,TSsignal.combiTimeTable.nextTimeEvent,TSsignal.combiTimeTable.nextTimeEventScaled,TrackRef.a,TrackRef.b,TrackRef.last,TrackRef.nextEvent,TrackRef.nextEventScaled) * Number of discrete states: 8 (TrackRef.nextEvent,TrackRef.last,TrackRef.nextEventScaled,TrackRef.b,TrackRef.a,$whenCondition1,TSsignal.combiTimeTable.nextTimeEvent,TSsignal.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * 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.002669/0.3356, allocations: 1.675 MB / 0.5157 GB, free: 22.2 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008004/0.3364, allocations: 0.5151 MB / 0.5162 GB, free: 22.07 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.3365, allocations: 0 / 0.5162 GB, free: 22.07 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000298/0.3367, allocations: 263 kB / 0.5165 GB, free: 21.97 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004852/0.3372, allocations: 75.39 kB / 0.5165 GB, free: 21.97 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005461/0.3427, allocations: 5.067 MB / 0.5215 GB, free: 19.83 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002975/0.343, allocations: 282.9 kB / 0.5218 GB, free: 19.75 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002904/0.3433, allocations: 106.7 kB / 0.5219 GB, free: 19.74 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002184/0.3435, allocations: 192.5 kB / 0.522 GB, free: 19.73 MB / 382.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3435, allocations: 1.156 kB / 0.522 GB, free: 19.73 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04249/0.386, allocations: 11.54 MB / 0.5333 GB, free: 16.46 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.05/11.43, allocations: 13.41 kB / 0.5333 GB, free: 16.45 MB / 382.1 MB " [Timeout remaining time 648] (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPD_tracking_fmu --startTime=0 --stopTime=120 --stepSize=0.048 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPD_tracking.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.004742817953229] Failed to read output from testmodel.py, exit status != 0: 11.61181030003354 11.631712803 11.512605078 Calling exit ...