Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(IndustrialControlSystems.Controllers.Examples.TestP_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking") translateModel(IndustrialControlSystems.Controllers.Examples.TestP_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001445/0.001445, allocations: 105.1 kB / 15.99 MB, free: 6.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001836/0.001836, allocations: 195.9 kB / 16.91 MB, free: 6.188 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.52/1.52, allocations: 205.1 MB / 222.8 MB, free: 4.68 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05579/0.0558, allocations: 10.74 MB / 280.9 MB, free: 10.66 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001474/0.001474, allocations: 63.91 kB / 340.7 MB, free: 23.7 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09645/0.09794, allocations: 49.02 MB / 389.7 MB, free: 6.613 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestP_tracking): time 0.004315/0.1023, allocations: 2.392 MB / 392.1 MB, free: 4.203 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002543/0.1049, allocations: 1.306 MB / 393.4 MB, free: 2.887 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003074/0.1052, allocations: 11.88 kB / 393.4 MB, free: 2.875 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000759/0.106, allocations: 199.3 kB / 393.6 MB, free: 2.68 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004683/0.1065, allocations: 147.5 kB / 393.8 MB, free: 2.535 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008868/0.1074, allocations: 315.5 kB / 394.1 MB, free: 2.227 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000708/0.1081, allocations: 0.5459 MB / 394.6 MB, free: 1.68 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002078/0.1083, allocations: 85.02 kB / 394.7 MB, free: 1.59 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003673/0.1087, allocations: 207.2 kB / 394.9 MB, free: 1.387 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000291/0.109, allocations: 219.1 kB / 395.1 MB, free: 1.172 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.303e-05/0.1091, allocations: 31.94 kB / 395.1 MB, free: 1.141 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002601/0.1094, allocations: 139.9 kB / 395.3 MB, free: 1.004 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001525/0.1095, allocations: 135.6 kB / 395.4 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002948/0.1098, allocations: 194.6 kB / 395.6 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005323/0.1104, allocations: 371.6 kB / 396 MB, free: 324 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.1104, allocations: 7.938 kB / 396 MB, free: 316 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1104, allocations: 4 kB / 396 MB, free: 312 kB / 286.1 MB Notification: Performance of Transformations before backend: time 9.308e-06/0.1104, allocations: 0 / 396 MB, free: 312 kB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001465/0.1119, allocations: 0.8294 MB / 396.8 MB, free: 15.42 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/0.1119, allocations: 15.89 kB / 396.8 MB, free: 15.4 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001138/0.1121, allocations: 60.27 kB / 396.9 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005875/0.1127, allocations: 414.3 kB / 397.3 MB, free: 14.9 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.019e-05/0.1127, allocations: 20.94 kB / 397.3 MB, free: 14.88 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.896e-05/0.1128, allocations: 36.12 kB / 397.3 MB, free: 14.84 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006163/0.1134, allocations: 379.6 kB / 397.7 MB, free: 14.45 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.135e-05/0.1134, allocations: 7.906 kB / 397.7 MB, free: 14.44 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.265e-05/0.1135, allocations: 12 kB / 397.7 MB, free: 14.43 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.367e-06/0.1135, allocations: 8 kB / 397.7 MB, free: 14.42 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000443/0.1139, allocations: 254 kB / 398 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001958/0.1159, allocations: 1.387 MB / 399.4 MB, free: 12.71 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005261/0.1164, allocations: 210.5 kB / 399.6 MB, free: 12.49 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002123/0.1166, allocations: 124.8 kB / 399.7 MB, free: 12.37 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.338e-05/0.1167, allocations: 4 kB / 399.7 MB, free: 12.36 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003714/0.1171, allocations: 213.5 kB / 399.9 MB, free: 12.14 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 3.086e-06/0.1171, allocations: 4 kB / 399.9 MB, free: 12.13 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.0008996/0.118, allocations: 481.3 kB / 400.4 MB, free: 11.65 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001071/0.1181, allocations: 114.8 kB / 400.5 MB, free: 11.52 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005177/0.1186, allocations: 485.8 kB / 401 MB, free: 11.03 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.022e-05/0.1187, allocations: 33.7 kB / 401 MB, free: 10.99 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001863/0.1189, allocations: 256.1 kB / 401.3 MB, free: 10.74 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.353e-05/0.1189, allocations: 86.8 kB / 401.3 MB, free: 10.65 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001162/0.1191, allocations: 81.59 kB / 401.4 MB, free: 10.57 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001547/0.1192, allocations: 358.8 kB / 401.8 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002074/0.1194, allocations: 112.4 kB / 401.9 MB, free: 10.1 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002998/0.1198, allocations: 235.9 kB / 402.1 MB, free: 9.816 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001508/0.1213, allocations: 0.7092 MB / 402.8 MB, free: 9.039 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.085e-06/0.1213, allocations: 4 kB / 402.8 MB, free: 9.035 MB / 302.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0007622/0.1221, allocations: 494.1 kB / 403.3 MB, free: 8.539 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.474e-05/0.1221, allocations: 45.62 kB / 403.4 MB, free: 8.488 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.196e-05/0.1221, allocations: 4.406 kB / 403.4 MB, free: 8.484 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.649e-05/0.1222, allocations: 11.94 kB / 403.4 MB, free: 8.473 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002885/0.1225, allocations: 75.89 kB / 403.4 MB, free: 8.398 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.044e-05/0.1225, allocations: 4 kB / 403.4 MB, free: 8.395 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001981/0.1227, allocations: 47.58 kB / 403.5 MB, free: 8.348 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.644e-05/0.1227, allocations: 16 kB / 403.5 MB, free: 8.332 MB / 302.1 MB Warning: Assuming fixed start value for the following 6 variables: processTrack.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real processTrack.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] processTrack.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] process.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real process.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] process.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 16 ($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.ATreq_in,R.ATreq_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * Single equations (assignments): 43 * 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.0003/0.123, allocations: 252.2 kB / 403.8 MB, free: 8.07 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.953e-05/0.1231, allocations: 47.38 kB / 403.8 MB, free: 8.023 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007574/0.1239, allocations: 432.6 kB / 404.2 MB, free: 7.59 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.722e-06/0.1239, allocations: 4 kB / 404.2 MB, free: 7.586 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.1239, allocations: 7.984 kB / 404.2 MB, free: 7.578 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.1239, allocations: 0 / 404.2 MB, free: 7.578 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004181/0.1244, allocations: 413.1 kB / 404.6 MB, free: 7.125 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.1244, allocations: 0 / 404.6 MB, free: 7.125 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002644/0.1246, allocations: 51.91 kB / 404.7 MB, free: 7.074 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.021e-06/0.1246, allocations: 11.86 kB / 404.7 MB, free: 7.062 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.205e-05/0.1247, allocations: 12 kB / 404.7 MB, free: 7.051 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.784e-06/0.1247, allocations: 0 / 404.7 MB, free: 7.051 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1247, allocations: 0 / 404.7 MB, free: 7.051 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000925/0.1256, allocations: 0.5847 MB / 405.3 MB, free: 6.441 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.113e-05/0.1257, allocations: 124.5 kB / 405.4 MB, free: 6.301 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.201e-05/0.1258, allocations: 15.98 kB / 405.4 MB, free: 6.285 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001448/0.1259, allocations: 15.98 kB / 405.5 MB, free: 6.27 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.952e-05/0.126, allocations: 23.91 kB / 405.5 MB, free: 6.246 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.921e-05/0.1261, allocations: 8 kB / 405.5 MB, free: 6.238 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004671/0.1265, allocations: 335.1 kB / 405.8 MB, free: 5.914 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1266, allocations: 4 kB / 405.8 MB, free: 5.91 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000393/0.127, allocations: 107.8 kB / 405.9 MB, free: 5.805 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (process.Y[3],process.U[2],process.w,processTrack.Y[3],processTrack.U[2],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.nextTimeEventScaled,TSsignal.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 22 * 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.001006/0.128, allocations: 455.9 kB / 406.4 MB, free: 5.449 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007165/0.1287, allocations: 423.7 kB / 406.8 MB, free: 5.023 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.1287, allocations: 8.062 kB / 406.8 MB, free: 5.016 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002922/0.129, allocations: 219.3 kB / 407 MB, free: 4.789 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004381/0.1295, allocations: 67.06 kB / 407.1 MB, free: 4.723 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001401/0.1309, allocations: 1.003 MB / 408.1 MB, free: 3.684 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004455/0.1313, allocations: 0.8496 MB / 408.9 MB, free: 2.805 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001021/0.1314, allocations: 43.42 kB / 409 MB, free: 2.762 MB / 302.1 MB Notification: Performance of SimCode: time 8.82e-07/0.1314, allocations: 0 / 409 MB, free: 2.762 MB / 302.1 MB Notification: Performance of Templates: time 0.009414/0.1409, allocations: 5.93 MB / 414.9 MB, free: 12.82 MB / 318.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.makefile (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.sim & ./IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.pipe 2>&1)