Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_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.TestI_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking") translateModel(IndustrialControlSystems.Controllers.Examples.TestI_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001055/0.001055, allocations: 107 kB / 15.99 MB, free: 6.359 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.0009812/0.0009811, allocations: 189.2 kB / 16.91 MB, free: 6.195 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.478/1.478, allocations: 205.1 MB / 222.8 MB, free: 4.691 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05477/0.05477, allocations: 10.74 MB / 280.8 MB, free: 10.67 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.001459/0.001459, allocations: 75.81 kB / 340.7 MB, free: 23.66 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08894/0.09042, allocations: 49.01 MB / 389.7 MB, free: 6.586 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestI_tracking): time 0.00394/0.09439, allocations: 2.399 MB / 392.1 MB, free: 4.168 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002413/0.09684, allocations: 1.4 MB / 393.5 MB, free: 2.758 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002062/0.09707, allocations: 15.88 kB / 393.5 MB, free: 2.742 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006786/0.09778, allocations: 195.4 kB / 393.7 MB, free: 2.551 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003631/0.09815, allocations: 151.5 kB / 393.9 MB, free: 2.402 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008444/0.09901, allocations: 359.4 kB / 394.2 MB, free: 2.051 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005764/0.0996, allocations: 0.5732 MB / 394.8 MB, free: 1.477 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001721/0.09978, allocations: 85.06 kB / 394.9 MB, free: 1.387 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002571/0.1, allocations: 227.1 kB / 395.1 MB, free: 1.164 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002756/0.1003, allocations: 235 kB / 395.3 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.588e-05/0.1004, allocations: 28 kB / 395.3 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002242/0.1006, allocations: 147.8 kB / 395.5 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001448/0.1008, allocations: 139.6 kB / 395.6 MB, free: 0.625 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001865/0.101, allocations: 198.7 kB / 395.8 MB, free: 440 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000412/0.1014, allocations: 383.5 kB / 396.2 MB, free: 56 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.1014, allocations: 0 / 396.2 MB, free: 56 kB / 286.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.1014, allocations: 3.938 kB / 396.2 MB, free: 52 kB / 286.1 MB Notification: Performance of Transformations before backend: time 1.022e-05/0.1014, allocations: 0 / 396.2 MB, free: 52 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.001421/0.1029, allocations: 0.8456 MB / 397 MB, free: 15.14 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.1029, allocations: 15.88 kB / 397.1 MB, free: 15.13 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001369/0.1031, allocations: 56.28 kB / 397.1 MB, free: 15.07 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005341/0.1036, allocations: 410.4 kB / 397.5 MB, free: 14.63 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.486e-05/0.1037, allocations: 80.52 kB / 397.6 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.674e-05/0.1038, allocations: 39.92 kB / 397.6 MB, free: 14.5 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006696/0.1044, allocations: 395.6 kB / 398 MB, free: 14.09 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.162e-05/0.1045, allocations: 3.906 kB / 398 MB, free: 14.09 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.654e-05/0.1045, allocations: 16 kB / 398 MB, free: 14.07 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.015e-05/0.1045, allocations: 8 kB / 398 MB, free: 14.07 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005099/0.1051, allocations: 262 kB / 398.3 MB, free: 13.81 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002176/0.1072, allocations: 1.461 MB / 399.8 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004885/0.1077, allocations: 198.6 kB / 400 MB, free: 12.07 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002113/0.108, allocations: 132.8 kB / 400.1 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.561e-05/0.108, allocations: 4 kB / 400.1 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003823/0.1084, allocations: 221.8 kB / 400.3 MB, free: 11.7 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 2.575e-06/0.1084, allocations: 0 / 400.3 MB, free: 11.7 MB / 302.1 MB Notification: Performance of matching and sorting (n=27): time 0.000914/0.1093, allocations: 482.3 kB / 400.8 MB, free: 11.21 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.017e-05/0.1094, allocations: 114.8 kB / 400.9 MB, free: 11.08 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000525/0.11, allocations: 493.7 kB / 401.4 MB, free: 10.59 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.272e-05/0.11, allocations: 33.7 kB / 401.4 MB, free: 10.55 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001815/0.1102, allocations: 252 kB / 401.7 MB, free: 10.3 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.657e-05/0.1103, allocations: 86.8 kB / 401.7 MB, free: 10.21 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001148/0.1104, allocations: 78.02 kB / 401.8 MB, free: 10.13 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001551/0.1106, allocations: 362.8 kB / 402.2 MB, free: 9.766 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002325/0.1108, allocations: 124.7 kB / 402.3 MB, free: 9.645 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002991/0.1111, allocations: 236.8 kB / 402.5 MB, free: 9.363 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001537/0.1127, allocations: 0.7326 MB / 403.3 MB, free: 8.562 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.1127, allocations: 4 kB / 403.3 MB, free: 8.559 MB / 302.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008237/0.1135, allocations: 0.502 MB / 403.8 MB, free: 8.043 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.627e-05/0.1136, allocations: 41.69 kB / 403.8 MB, free: 7.996 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.036e-05/0.1136, allocations: 11.88 kB / 403.8 MB, free: 7.984 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.598e-05/0.1136, allocations: 8.344 kB / 403.8 MB, free: 7.977 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005641/0.1142, allocations: 99.83 kB / 403.9 MB, free: 7.879 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.204e-05/0.1142, allocations: 7.984 kB / 403.9 MB, free: 7.871 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002071/0.1144, allocations: 43.67 kB / 404 MB, free: 7.828 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.934e-05/0.1145, allocations: 16 kB / 404 MB, free: 7.812 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 (45): * Single equations (assignments): 44 * 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.0003171/0.1148, allocations: 252.2 kB / 404.2 MB, free: 7.551 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.637e-05/0.1149, allocations: 43.44 kB / 404.3 MB, free: 7.508 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007714/0.1157, allocations: 448.3 kB / 404.7 MB, free: 7.059 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.1157, allocations: 4 kB / 404.7 MB, free: 7.055 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.1157, allocations: 0 / 404.7 MB, free: 7.055 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.009e-06/0.1157, allocations: 0 / 404.7 MB, free: 7.055 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000443/0.1161, allocations: 429.2 kB / 405.1 MB, free: 6.586 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.1162, allocations: 0 / 405.1 MB, free: 6.586 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006078/0.1168, allocations: 67.89 kB / 405.2 MB, free: 6.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.827e-06/0.1168, allocations: 0 / 405.2 MB, free: 6.52 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.735e-05/0.1168, allocations: 15.94 kB / 405.2 MB, free: 6.504 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.1168, allocations: 0 / 405.2 MB, free: 6.504 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.1168, allocations: 0 / 405.2 MB, free: 6.504 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009608/0.1178, allocations: 0.5994 MB / 405.8 MB, free: 5.879 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.912e-05/0.1179, allocations: 124.4 kB / 405.9 MB, free: 5.738 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.777e-05/0.118, allocations: 15.92 kB / 406 MB, free: 5.723 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001556/0.1182, allocations: 19.98 kB / 406 MB, free: 5.703 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.713e-05/0.1182, allocations: 15.98 kB / 406 MB, free: 5.688 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.192e-05/0.1183, allocations: 11.98 kB / 406 MB, free: 5.676 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003847/0.1187, allocations: 339.1 kB / 406.3 MB, free: 5.348 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.6e-07/0.1187, allocations: 0 / 406.3 MB, free: 5.348 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004388/0.1191, allocations: 107.8 kB / 406.4 MB, free: 5.242 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (R.Iout,R_track.Iout,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 (24): * Single equations (assignments): 21 * 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.001004/0.1201, allocations: 449.7 kB / 406.9 MB, free: 4.906 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007759/0.1209, allocations: 451.4 kB / 407.3 MB, free: 4.453 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.1209, allocations: 0 / 407.3 MB, free: 4.453 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003081/0.1212, allocations: 227.3 kB / 407.5 MB, free: 4.219 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004366/0.1217, allocations: 74.67 kB / 407.6 MB, free: 4.145 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001404/0.1231, allocations: 1.032 MB / 408.6 MB, free: 3.078 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004245/0.1235, allocations: 0.8574 MB / 409.5 MB, free: 2.191 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001119/0.1237, allocations: 47.36 kB / 409.5 MB, free: 2.145 MB / 302.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1237, allocations: 3.938 kB / 409.5 MB, free: 2.141 MB / 302.1 MB Notification: Performance of Templates: time 0.009356/0.133, allocations: 6.006 MB / 415.6 MB, free: 12.12 MB / 318.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.makefile (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.sim & ./IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.pipe 2>&1)