Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_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.TestD_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking") translateModel(IndustrialControlSystems.Controllers.Examples.TestD_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001124/0.001124, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001111/0.001111, allocations: 191.6 kB / 16.53 MB, free: 6.391 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.389/1.389, allocations: 205.1 MB / 222.4 MB, free: 4.543 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05696/0.05696, allocations: 10.73 MB / 280.5 MB, free: 10.5 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.002318/0.002318, allocations: 68.11 kB / 340.5 MB, free: 23.31 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1036, allocations: 49.02 MB / 389.6 MB, free: 6.227 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestD_tracking): time 0.003374/0.107, allocations: 2.358 MB / 391.9 MB, free: 3.852 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001942/0.1089, allocations: 1.438 MB / 393.3 MB, free: 2.402 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001278/0.1091, allocations: 15.88 kB / 393.4 MB, free: 2.387 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005552/0.1096, allocations: 215 kB / 393.6 MB, free: 2.176 MB / 286.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0003194/0.11, allocations: 155.3 kB / 393.7 MB, free: 2.023 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007104/0.1107, allocations: 411 kB / 394.1 MB, free: 1.621 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004822/0.1112, allocations: 0.5858 MB / 394.7 MB, free: 1.031 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001511/0.1113, allocations: 93 kB / 394.8 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002049/0.1115, allocations: 219.2 kB / 395 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002449/0.1118, allocations: 243 kB / 395.3 MB, free: 492 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.015e-05/0.1119, allocations: 32 kB / 395.3 MB, free: 460 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002035/0.1121, allocations: 143.9 kB / 395.4 MB, free: 316 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001326/0.1122, allocations: 143.5 kB / 395.6 MB, free: 172 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001761/0.1124, allocations: 222.6 kB / 395.8 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004574/0.1129, allocations: 0.5336 MB / 396.3 MB, free: 15.41 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.1129, allocations: 3.984 kB / 396.3 MB, free: 15.41 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1129, allocations: 4 kB / 396.3 MB, free: 15.41 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.237e-06/0.1129, allocations: 3.938 kB / 396.3 MB, free: 15.4 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.001206/0.1141, allocations: 0.8845 MB / 397.2 MB, free: 14.46 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.842e-05/0.1141, allocations: 11.89 kB / 397.2 MB, free: 14.45 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.953e-05/0.1143, allocations: 60.19 kB / 397.3 MB, free: 14.39 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004815/0.1147, allocations: 430.4 kB / 397.7 MB, free: 13.93 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.9e-05/0.1148, allocations: 29.03 kB / 397.7 MB, free: 13.9 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.449e-05/0.1148, allocations: 40.12 kB / 397.8 MB, free: 13.86 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006332/0.1155, allocations: 436.3 kB / 398.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.997e-05/0.1155, allocations: 4 kB / 398.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.286e-05/0.1156, allocations: 8 kB / 398.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.324e-06/0.1156, allocations: 8 kB / 398.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005151/0.1161, allocations: 318.3 kB / 398.5 MB, free: 13.07 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002116/0.1182, allocations: 1.563 MB / 400.1 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004168/0.1186, allocations: 235 kB / 400.3 MB, free: 11.2 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002194/0.1189, allocations: 149.3 kB / 400.5 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.79e-05/0.1189, allocations: 4.328 kB / 400.5 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000356/0.1193, allocations: 240.3 kB / 400.7 MB, free: 10.79 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 1.813e-06/0.1193, allocations: 0 / 400.7 MB, free: 10.79 MB / 302.1 MB Notification: Performance of matching and sorting (n=33): time 0.0009003/0.1202, allocations: 0.5598 MB / 401.3 MB, free: 10.22 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.996e-05/0.1203, allocations: 110.8 kB / 401.4 MB, free: 10.09 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005069/0.1208, allocations: 0.5136 MB / 401.9 MB, free: 9.566 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.13e-05/0.1208, allocations: 29.7 kB / 401.9 MB, free: 9.531 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001748/0.121, allocations: 275.9 kB / 402.2 MB, free: 9.258 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.676e-05/0.1211, allocations: 114.4 kB / 402.3 MB, free: 9.145 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001181/0.1212, allocations: 94.03 kB / 402.4 MB, free: 9.047 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001361/0.1214, allocations: 374.8 kB / 402.8 MB, free: 8.672 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002396/0.1216, allocations: 136.9 kB / 402.9 MB, free: 8.535 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003308/0.1219, allocations: 286.2 kB / 403.2 MB, free: 8.195 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001706/0.1237, allocations: 0.8983 MB / 404.1 MB, free: 7.215 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.267e-06/0.1237, allocations: 0 / 404.1 MB, free: 7.215 MB / 302.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0009085/0.1246, allocations: 0.6127 MB / 404.7 MB, free: 6.59 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.084e-05/0.1246, allocations: 37.7 kB / 404.7 MB, free: 6.547 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.738e-06/0.1247, allocations: 4 kB / 404.7 MB, free: 6.543 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.173e-05/0.1247, allocations: 8.469 kB / 404.7 MB, free: 6.535 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004219/0.1251, allocations: 119.8 kB / 404.8 MB, free: 6.418 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.76e-05/0.1251, allocations: 15.92 kB / 404.9 MB, free: 6.402 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002314/0.1254, allocations: 63.41 kB / 404.9 MB, free: 6.34 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.346e-05/0.1254, allocations: 20 kB / 404.9 MB, free: 6.32 MB / 302.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: 18 * 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 (59): * Single equations (assignments): 58 * 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.0002857/0.1257, allocations: 261.2 kB / 405.2 MB, free: 6.051 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.451e-05/0.1258, allocations: 51.34 kB / 405.2 MB, free: 6 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007822/0.1266, allocations: 495.9 kB / 405.7 MB, free: 5.5 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.1266, allocations: 4 kB / 405.7 MB, free: 5.496 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.858e-06/0.1266, allocations: 0 / 405.7 MB, free: 5.496 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.1266, allocations: 3.984 kB / 405.7 MB, free: 5.492 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004034/0.127, allocations: 449 kB / 406.2 MB, free: 5.004 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.127, allocations: 4 kB / 406.2 MB, free: 5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003634/0.1274, allocations: 63.89 kB / 406.2 MB, free: 4.938 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.42e-06/0.1274, allocations: 4 kB / 406.2 MB, free: 4.934 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.735e-05/0.1274, allocations: 19.92 kB / 406.3 MB, free: 4.914 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.36e-06/0.1275, allocations: 8 kB / 406.3 MB, free: 4.906 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.1275, allocations: 0 / 406.3 MB, free: 4.906 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009355/0.1284, allocations: 0.6595 MB / 406.9 MB, free: 4.219 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.038e-05/0.1285, allocations: 128.4 kB / 407.1 MB, free: 4.074 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.665e-05/0.1286, allocations: 19.92 kB / 407.1 MB, free: 4.055 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001558/0.1287, allocations: 16.09 kB / 407.1 MB, free: 4.039 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.269e-05/0.1288, allocations: 31.84 kB / 407.1 MB, free: 4.008 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.807e-05/0.1288, allocations: 16 kB / 407.1 MB, free: 3.992 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003488/0.1292, allocations: 362.8 kB / 407.5 MB, free: 3.641 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1292, allocations: 0 / 407.5 MB, free: 3.641 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003673/0.1296, allocations: 119.8 kB / 407.6 MB, free: 3.523 MB / 302.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.nextTimeEventScaled,TSsignal.combiTimeTable.nextTimeEvent) * 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.0008842/0.1305, allocations: 444.5 kB / 408 MB, free: 3.191 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007453/0.1312, allocations: 0.5222 MB / 408.6 MB, free: 2.656 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.1312, allocations: 0 / 408.6 MB, free: 2.656 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003019/0.1315, allocations: 251.3 kB / 408.8 MB, free: 2.398 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003663/0.1319, allocations: 86.3 kB / 408.9 MB, free: 2.316 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001243/0.1332, allocations: 1.008 MB / 409.9 MB, free: 1.281 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004684/0.1337, allocations: 0.8703 MB / 410.8 MB, free: 396 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002338/0.1339, allocations: 99.38 kB / 410.9 MB, free: 296 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.8e-05/0.134, allocations: 39.42 kB / 410.9 MB, free: 256 kB / 302.1 MB Notification: Performance of SimCode: time 2.51e-07/0.134, allocations: 3.938 kB / 410.9 MB, free: 252 kB / 302.1 MB Notification: Performance of Templates: time 0.009641/0.1436, allocations: 5.068 MB / 416 MB, free: 11.18 MB / 318.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.makefile (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.sim & ./IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.pipe 2>&1)