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.001826/0.001826, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002277/0.002277, allocations: 191.9 kB / 16.25 MB, free: 6.625 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.1 MB, free: 4.688 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05609/0.05609, allocations: 10.74 MB / 280.2 MB, free: 10.68 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.001281/0.001282, allocations: 71.83 kB / 340 MB, free: 23.68 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09441/0.09571, allocations: 49.01 MB / 389 MB, free: 6.621 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestD_tracking): time 0.003847/0.0996, allocations: 2.411 MB / 391.5 MB, free: 4.191 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002257/0.1019, allocations: 1.423 MB / 392.9 MB, free: 2.758 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000198/0.1021, allocations: 7.938 kB / 392.9 MB, free: 2.75 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006389/0.1028, allocations: 195.3 kB / 393.1 MB, free: 2.559 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003354/0.1032, allocations: 151.5 kB / 393.2 MB, free: 2.41 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008463/0.104, allocations: 351.5 kB / 393.6 MB, free: 2.066 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005806/0.1046, allocations: 0.6091 MB / 394.2 MB, free: 1.453 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002011/0.1048, allocations: 89.03 kB / 394.3 MB, free: 1.359 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002692/0.1051, allocations: 231.1 kB / 394.5 MB, free: 1.133 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002986/0.1054, allocations: 243 kB / 394.7 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.92e-05/0.1055, allocations: 36 kB / 394.8 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002341/0.1057, allocations: 143.8 kB / 394.9 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001605/0.1059, allocations: 151.5 kB / 395.1 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001837/0.1061, allocations: 210.6 kB / 395.3 MB, free: 372 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005915/0.1067, allocations: 0.5414 MB / 395.8 MB, free: 15.82 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.1067, allocations: 3.938 kB / 395.8 MB, free: 15.82 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1067, allocations: 0 / 395.8 MB, free: 15.82 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.269e-05/0.1067, allocations: 0 / 395.8 MB, free: 15.82 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.001426/0.1082, allocations: 0.884 MB / 396.7 MB, free: 14.88 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.81e-05/0.1082, allocations: 11.89 kB / 396.7 MB, free: 14.86 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001232/0.1083, allocations: 60.19 kB / 396.8 MB, free: 14.8 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005672/0.1089, allocations: 434.4 kB / 397.2 MB, free: 14.34 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.357e-05/0.109, allocations: 29.03 kB / 397.2 MB, free: 14.31 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.082e-05/0.109, allocations: 36.12 kB / 397.2 MB, free: 14.28 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006961/0.1097, allocations: 428.3 kB / 397.7 MB, free: 13.83 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.861e-05/0.1098, allocations: 11.98 kB / 397.7 MB, free: 13.82 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.808e-05/0.1098, allocations: 12 kB / 397.7 MB, free: 13.81 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.117e-05/0.1098, allocations: 12 kB / 397.7 MB, free: 13.8 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005616/0.1104, allocations: 310.4 kB / 398 MB, free: 13.5 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002339/0.1128, allocations: 1.563 MB / 399.6 MB, free: 11.86 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004669/0.1132, allocations: 238.9 kB / 399.8 MB, free: 11.61 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002361/0.1135, allocations: 145.3 kB / 399.9 MB, free: 11.47 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.182e-05/0.1135, allocations: 4.234 kB / 399.9 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003966/0.1139, allocations: 247.2 kB / 400.2 MB, free: 11.21 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 2.555e-06/0.114, allocations: 4 kB / 400.2 MB, free: 11.2 MB / 302.1 MB Notification: Performance of matching and sorting (n=33): time 0.0009606/0.1149, allocations: 0.552 MB / 400.7 MB, free: 10.64 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.811e-05/0.115, allocations: 110.8 kB / 400.9 MB, free: 10.51 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000539/0.1155, allocations: 0.5136 MB / 401.4 MB, free: 9.984 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.469e-05/0.1156, allocations: 33.7 kB / 401.4 MB, free: 9.945 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001941/0.1158, allocations: 275.9 kB / 401.7 MB, free: 9.672 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.443e-05/0.1159, allocations: 110.5 kB / 401.8 MB, free: 9.562 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001233/0.116, allocations: 98.02 kB / 401.9 MB, free: 9.461 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001421/0.1161, allocations: 366.8 kB / 402.2 MB, free: 9.094 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002468/0.1164, allocations: 140.9 kB / 402.4 MB, free: 8.953 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003336/0.1167, allocations: 286.1 kB / 402.6 MB, free: 8.617 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001762/0.1185, allocations: 0.9022 MB / 403.5 MB, free: 7.633 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.86e-06/0.1185, allocations: 4 kB / 403.6 MB, free: 7.629 MB / 302.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0009354/0.1195, allocations: 0.6131 MB / 404.2 MB, free: 7.004 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.703e-05/0.1195, allocations: 45.69 kB / 404.2 MB, free: 6.953 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.297e-05/0.1196, allocations: 4 kB / 404.2 MB, free: 6.949 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.144e-05/0.1196, allocations: 15.88 kB / 404.2 MB, free: 6.934 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004437/0.12, allocations: 115.8 kB / 404.3 MB, free: 6.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.269e-05/0.1201, allocations: 4 kB / 404.3 MB, free: 6.816 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002546/0.1203, allocations: 55.42 kB / 404.4 MB, free: 6.762 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.59e-05/0.1204, allocations: 20 kB / 404.4 MB, free: 6.742 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.0003987/0.1208, allocations: 265.3 kB / 404.7 MB, free: 6.465 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.13e-05/0.1209, allocations: 51.34 kB / 404.7 MB, free: 6.414 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008786/0.1217, allocations: 495.9 kB / 405.2 MB, free: 5.914 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.1218, allocations: 0 / 405.2 MB, free: 5.914 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.1218, allocations: 0 / 405.2 MB, free: 5.914 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.1218, allocations: 4 kB / 405.2 MB, free: 5.91 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004802/0.1223, allocations: 457 kB / 405.7 MB, free: 5.414 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.1223, allocations: 0 / 405.7 MB, free: 5.414 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004071/0.1227, allocations: 71.95 kB / 405.7 MB, free: 5.344 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.318e-06/0.1227, allocations: 0 / 405.7 MB, free: 5.344 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.077e-05/0.1228, allocations: 19.92 kB / 405.8 MB, free: 5.324 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.385e-06/0.1228, allocations: 0 / 405.8 MB, free: 5.324 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.1228, allocations: 0 / 405.8 MB, free: 5.324 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001023/0.1238, allocations: 0.675 MB / 406.4 MB, free: 4.621 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.595e-05/0.1239, allocations: 128.4 kB / 406.6 MB, free: 4.477 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.123e-05/0.124, allocations: 16.05 kB / 406.6 MB, free: 4.461 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001672/0.1242, allocations: 23.91 kB / 406.6 MB, free: 4.438 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.318e-05/0.1242, allocations: 27.95 kB / 406.6 MB, free: 4.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.348e-05/0.1243, allocations: 12 kB / 406.6 MB, free: 4.398 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003876/0.1247, allocations: 366.8 kB / 407 MB, free: 4.043 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1247, allocations: 0 / 407 MB, free: 4.043 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004285/0.1251, allocations: 111.8 kB / 407.1 MB, free: 3.934 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.001039/0.1262, allocations: 452.9 kB / 407.5 MB, free: 3.59 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008769/0.1271, allocations: 0.5114 MB / 408.1 MB, free: 3.066 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.1271, allocations: 0 / 408.1 MB, free: 3.066 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003307/0.1274, allocations: 263.7 kB / 408.3 MB, free: 2.797 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004661/0.1279, allocations: 89.73 kB / 408.4 MB, free: 2.707 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001456/0.1293, allocations: 1.138 MB / 409.5 MB, free: 1.543 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000436/0.1298, allocations: 0.8664 MB / 410.4 MB, free: 0.6523 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002643/0.1301, allocations: 99.38 kB / 410.5 MB, free: 0.5547 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.154e-05/0.1302, allocations: 43.38 kB / 410.5 MB, free: 0.5117 MB / 302.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1302, allocations: 0 / 410.5 MB, free: 0.5117 MB / 302.1 MB Notification: Performance of Templates: time 0.01007/0.1402, allocations: 4.992 MB / 415.5 MB, free: 11.52 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)