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.001287/0.001287, allocations: 109.4 kB / 18.94 MB, free: 2.949 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.001451/0.001451, allocations: 218.5 kB / 22.26 MB, free: 5.125 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.445/1.445, allocations: 230.6 MB / 256 MB, free: 7.988 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.06636/0.06636, allocations: 11.34 MB / 323.8 MB, free: 8.234 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.002222/0.002222, allocations: 69.77 kB / 451 MB, free: 10.52 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.1041, allocations: 56.07 MB / 0.4952 GB, free: 2.34 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestPD_tracking): time 0.004781/0.1089, allocations: 2.504 MB / 0.4977 GB, free: 15.82 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003087/0.112, allocations: 1.712 MB / 0.4993 GB, free: 14.1 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002711/0.1122, allocations: 23.75 kB / 0.4994 GB, free: 14.07 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007485/0.113, allocations: 223 kB / 0.4996 GB, free: 13.86 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005714/0.1135, allocations: 211 kB / 0.4998 GB, free: 13.65 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001072/0.1146, allocations: 445.6 kB / 0.5002 GB, free: 13.21 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009423/0.1156, allocations: 0.6646 MB / 0.5009 GB, free: 12.55 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001909/0.1158, allocations: 69.5 kB / 0.5009 GB, free: 12.48 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004037/0.1162, allocations: 243.1 kB / 0.5012 GB, free: 12.24 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004213/0.1166, allocations: 262.9 kB / 0.5014 GB, free: 11.98 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.813e-05/0.1167, allocations: 36 kB / 0.5014 GB, free: 11.95 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003086/0.117, allocations: 167.8 kB / 0.5016 GB, free: 11.78 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001787/0.1172, allocations: 151.5 kB / 0.5017 GB, free: 11.63 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002548/0.1174, allocations: 230.5 kB / 0.502 GB, free: 11.41 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007913/0.1182, allocations: 0.5833 MB / 0.5025 GB, free: 10.82 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.1182, allocations: 0 / 0.5025 GB, free: 10.82 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.1182, allocations: 4 kB / 0.5025 GB, free: 10.82 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.569e-05/0.1182, allocations: 0 / 0.5025 GB, free: 10.82 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.001638/0.1199, allocations: 0.8632 MB / 0.5034 GB, free: 9.91 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.878e-05/0.1199, allocations: 12.03 kB / 0.5034 GB, free: 9.898 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.438e-05/0.12, allocations: 70.72 kB / 0.5035 GB, free: 9.82 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001381/0.1201, allocations: 68.52 kB / 0.5035 GB, free: 9.754 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000758/0.1209, allocations: 415.8 kB / 0.5039 GB, free: 9.32 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.32e-05/0.1209, allocations: 33.38 kB / 0.504 GB, free: 9.285 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.594e-05/0.121, allocations: 43.92 kB / 0.504 GB, free: 9.242 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007842/0.1218, allocations: 476.2 kB / 0.5044 GB, free: 8.742 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.834e-05/0.1218, allocations: 19.86 kB / 0.5045 GB, free: 8.723 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.044e-05/0.1219, allocations: 16 kB / 0.5045 GB, free: 8.707 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.221e-05/0.1219, allocations: 8 kB / 0.5045 GB, free: 8.699 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006352/0.1225, allocations: 322.3 kB / 0.5048 GB, free: 8.387 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002786/0.1253, allocations: 1.889 MB / 0.5066 GB, free: 6.406 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004655/0.1258, allocations: 226.8 kB / 0.5069 GB, free: 6.176 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002517/0.126, allocations: 137 kB / 0.507 GB, free: 6.039 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.55e-05/0.126, allocations: 4.234 kB / 0.507 GB, free: 6.035 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00045/0.1265, allocations: 244 kB / 0.5072 GB, free: 5.781 MB / 382.1 MB Notification: Performance of pre-optimization done (n=33): time 1.673e-06/0.1265, allocations: 0 / 0.5072 GB, free: 5.781 MB / 382.1 MB Notification: Performance of matching and sorting (n=33): time 0.001105/0.1276, allocations: 0.5556 MB / 0.5078 GB, free: 5.215 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.992e-05/0.1277, allocations: 106.8 kB / 0.5079 GB, free: 5.086 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006925/0.1284, allocations: 0.5613 MB / 0.5084 GB, free: 4.512 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.929e-05/0.1284, allocations: 29.7 kB / 0.5084 GB, free: 4.477 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002487/0.1287, allocations: 296.3 kB / 0.5087 GB, free: 4.18 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000111/0.1288, allocations: 127 kB / 0.5089 GB, free: 4.055 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001558/0.1289, allocations: 106.1 kB / 0.509 GB, free: 3.945 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001835/0.1291, allocations: 366.7 kB / 0.5093 GB, free: 3.578 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002943/0.1294, allocations: 145 kB / 0.5094 GB, free: 3.438 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004392/0.1299, allocations: 322 kB / 0.5097 GB, free: 3.051 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001988/0.1318, allocations: 0.9407 MB / 0.5107 GB, free: 2.016 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.553e-06/0.1318, allocations: 4 kB / 0.5107 GB, free: 2.012 MB / 382.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001078/0.1329, allocations: 0.644 MB / 0.5113 GB, free: 1.355 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.829e-05/0.133, allocations: 41.69 kB / 0.5113 GB, free: 1.309 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.062e-05/0.133, allocations: 4 kB / 0.5113 GB, free: 1.305 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.365e-05/0.133, allocations: 8 kB / 0.5114 GB, free: 1.297 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004407/0.1335, allocations: 107.8 kB / 0.5115 GB, free: 1.191 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.011e-05/0.1335, allocations: 16.48 kB / 0.5115 GB, free: 1.176 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002674/0.1337, allocations: 63.61 kB / 0.5115 GB, free: 1.113 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.24e-05/0.1338, allocations: 24 kB / 0.5116 GB, free: 1.09 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.0003645/0.1341, allocations: 278.8 kB / 0.5118 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.883e-05/0.1342, allocations: 55.62 kB / 0.5119 GB, free: 0.75 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008966/0.1351, allocations: 0.4971 MB / 0.5124 GB, free: 248 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.781e-06/0.1351, allocations: 4 kB / 0.5124 GB, free: 244 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.1351, allocations: 0 / 0.5124 GB, free: 244 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.1351, allocations: 4 kB / 0.5124 GB, free: 240 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1839/0.319, allocations: 441 kB / 0.5128 GB, free: 23.02 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-06/0.319, allocations: 0 / 0.5128 GB, free: 23.02 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004448/0.3195, allocations: 68.25 kB / 0.5129 GB, free: 23.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.29e-06/0.3195, allocations: 0 / 0.5129 GB, free: 23.02 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.313e-05/0.3195, allocations: 15.84 kB / 0.5129 GB, free: 23.02 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.448e-06/0.3195, allocations: 2.906 kB / 0.5129 GB, free: 23.02 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.3195, allocations: 1.594 kB / 0.5129 GB, free: 23.02 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009724/0.3205, allocations: 0.6738 MB / 0.5135 GB, free: 22.93 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.788e-05/0.3206, allocations: 51.98 kB / 0.5136 GB, free: 22.93 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.687e-05/0.3207, allocations: 15.7 kB / 0.5136 GB, free: 22.93 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001635/0.3208, allocations: 17.11 kB / 0.5136 GB, free: 22.93 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.014e-05/0.3209, allocations: 27.28 kB / 0.5136 GB, free: 22.93 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.917e-05/0.3209, allocations: 14.52 kB / 0.5136 GB, free: 22.93 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003851/0.3213, allocations: 389.4 kB / 0.514 GB, free: 22.84 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3213, allocations: 0 / 0.514 GB, free: 22.84 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004544/0.3218, allocations: 119.6 kB / 0.5141 GB, free: 22.84 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 (30): * Single equations (assignments): 27 * 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.002593/0.3244, allocations: 1.573 MB / 0.5157 GB, free: 22.16 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007845/0.3251, allocations: 446.7 kB / 0.5161 GB, free: 22.09 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.3251, allocations: 3.281 kB / 0.5161 GB, free: 22.09 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002684/0.3254, allocations: 218.5 kB / 0.5163 GB, free: 22.03 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004509/0.3259, allocations: 90.77 kB / 0.5164 GB, free: 22.03 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005282/0.3311, allocations: 4.89 MB / 0.5212 GB, free: 20.05 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003054/0.3315, allocations: 0.8833 MB / 0.522 GB, free: 19.36 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002641/0.3317, allocations: 100 kB / 0.5221 GB, free: 19.36 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002108/0.3319, allocations: 195.5 kB / 0.5223 GB, free: 19.35 MB / 382.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3319, allocations: 3.828 kB / 0.5223 GB, free: 19.35 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04215/0.3741, allocations: 11.28 MB / 0.5333 GB, free: 16.56 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12/12.37, allocations: 5.469 kB / 0.5333 GB, free: 16.56 MB / 382.1 MB " [Timeout remaining time 647] (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: 15.026398875983432] Failed to read output from testmodel.py, exit status != 0: 12.536900928011164 12.557032188 12.435331671 Calling exit ...