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.001301/0.001301, 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.00132/0.00132, allocations: 191.7 kB / 16.25 MB, free: 6.629 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.423/1.423, allocations: 205.1 MB / 222.1 MB, free: 4.723 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05466/0.05466, allocations: 10.73 MB / 280.2 MB, free: 10.69 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.001916/0.001916, allocations: 63.91 kB / 340 MB, free: 23.71 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09019/0.09212, allocations: 49.02 MB / 389.1 MB, free: 6.629 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestI_tracking): time 0.003647/0.09581, allocations: 2.392 MB / 391.4 MB, free: 4.219 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002074/0.0979, allocations: 1.411 MB / 392.9 MB, free: 2.797 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001469/0.09807, allocations: 11.88 kB / 392.9 MB, free: 2.785 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006393/0.09873, allocations: 199.4 kB / 393.1 MB, free: 2.59 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003208/0.09906, allocations: 147.4 kB / 393.2 MB, free: 2.445 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007405/0.09981, allocations: 359.5 kB / 393.6 MB, free: 2.094 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005596/0.1004, allocations: 0.5771 MB / 394.1 MB, free: 1.516 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000157/0.1005, allocations: 81.06 kB / 394.2 MB, free: 1.43 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002279/0.1008, allocations: 223.2 kB / 394.4 MB, free: 1.211 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002735/0.1011, allocations: 239 kB / 394.7 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.097e-05/0.1011, allocations: 28 kB / 394.7 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002227/0.1014, allocations: 143.8 kB / 394.8 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001468/0.1015, allocations: 139.6 kB / 395 MB, free: 0.6719 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001711/0.1017, allocations: 202.7 kB / 395.2 MB, free: 484 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004974/0.1022, allocations: 0.5025 MB / 395.7 MB, free: 15.97 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.1022, allocations: 0 / 395.7 MB, free: 15.97 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1022, allocations: 0 / 395.7 MB, free: 15.97 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.833e-06/0.1022, allocations: 0 / 395.7 MB, free: 15.97 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001275/0.1035, allocations: 0.8489 MB / 396.5 MB, free: 15.06 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.38e-05/0.1036, allocations: 15.89 kB / 396.5 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001038/0.1037, allocations: 60.27 kB / 396.6 MB, free: 14.99 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004713/0.1041, allocations: 422.3 kB / 397 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.893e-05/0.1042, allocations: 72.53 kB / 397.1 MB, free: 14.45 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.754e-05/0.1043, allocations: 39.92 kB / 397.1 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006034/0.1049, allocations: 395.6 kB / 397.5 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.967e-05/0.1049, allocations: 7.906 kB / 397.5 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.309e-05/0.105, allocations: 8 kB / 397.5 MB, free: 13.99 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.957e-06/0.105, allocations: 8 kB / 397.5 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004859/0.1055, allocations: 266 kB / 397.8 MB, free: 13.72 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001972/0.1075, allocations: 1.453 MB / 399.2 MB, free: 12.19 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004496/0.1079, allocations: 198.6 kB / 399.4 MB, free: 11.98 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002194/0.1082, allocations: 140.7 kB / 399.6 MB, free: 11.84 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.219e-05/0.1082, allocations: 0 / 399.6 MB, free: 11.84 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003653/0.1086, allocations: 221.8 kB / 399.8 MB, free: 11.61 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 1.583e-06/0.1086, allocations: 3.938 kB / 399.8 MB, free: 11.61 MB / 302.1 MB Notification: Performance of matching and sorting (n=27): time 0.0008421/0.1094, allocations: 482.3 kB / 400.3 MB, free: 11.12 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.168e-05/0.1095, allocations: 118.8 kB / 400.4 MB, free: 10.98 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004623/0.11, allocations: 493.7 kB / 400.9 MB, free: 10.49 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.001e-05/0.11, allocations: 33.7 kB / 400.9 MB, free: 10.45 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001593/0.1102, allocations: 252 kB / 401.1 MB, free: 10.2 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.864e-05/0.1102, allocations: 86.8 kB / 401.2 MB, free: 10.12 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001109/0.1104, allocations: 82.02 kB / 401.3 MB, free: 10.03 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001313/0.1105, allocations: 358.8 kB / 401.7 MB, free: 9.672 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002268/0.1107, allocations: 116.7 kB / 401.8 MB, free: 9.559 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002857/0.111, allocations: 240.8 kB / 402 MB, free: 9.273 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001488/0.1125, allocations: 0.7404 MB / 402.7 MB, free: 8.465 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.267e-06/0.1125, allocations: 0 / 402.7 MB, free: 8.465 MB / 302.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0007774/0.1133, allocations: 0.5059 MB / 403.2 MB, free: 7.945 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.124e-05/0.1134, allocations: 41.69 kB / 403.3 MB, free: 7.898 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.706e-06/0.1134, allocations: 4 kB / 403.3 MB, free: 7.895 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.822e-05/0.1134, allocations: 4 kB / 403.3 MB, free: 7.891 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005464/0.114, allocations: 104.2 kB / 403.4 MB, free: 7.789 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.25e-05/0.114, allocations: 4 kB / 403.4 MB, free: 7.785 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00019/0.1142, allocations: 39.67 kB / 403.4 MB, free: 7.746 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.447e-05/0.1143, allocations: 23.98 kB / 403.5 MB, free: 7.723 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.0002993/0.1146, allocations: 244.2 kB / 403.7 MB, free: 7.469 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.32e-05/0.1146, allocations: 47.44 kB / 403.7 MB, free: 7.422 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007494/0.1154, allocations: 444.3 kB / 404.2 MB, free: 6.977 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.071e-06/0.1154, allocations: 4 kB / 404.2 MB, free: 6.973 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.1154, allocations: 3.938 kB / 404.2 MB, free: 6.969 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.1154, allocations: 4 kB / 404.2 MB, free: 6.965 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004019/0.1158, allocations: 429.2 kB / 404.6 MB, free: 6.496 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.1158, allocations: 3.938 kB / 404.6 MB, free: 6.492 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005813/0.1164, allocations: 63.89 kB / 404.7 MB, free: 6.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/0.1164, allocations: 4 kB / 404.7 MB, free: 6.426 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.51e-05/0.1165, allocations: 15.92 kB / 404.7 MB, free: 6.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.1165, allocations: 0 / 404.7 MB, free: 6.41 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.1165, allocations: 0 / 404.7 MB, free: 6.41 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009005/0.1174, allocations: 0.5994 MB / 405.3 MB, free: 5.785 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.79e-05/0.1175, allocations: 124.5 kB / 405.4 MB, free: 5.645 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.252e-05/0.1176, allocations: 19.86 kB / 405.4 MB, free: 5.625 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000151/0.1177, allocations: 15.98 kB / 405.5 MB, free: 5.609 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.619e-05/0.1178, allocations: 11.98 kB / 405.5 MB, free: 5.598 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.889e-05/0.1178, allocations: 15.98 kB / 405.5 MB, free: 5.582 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000316/0.1182, allocations: 343.1 kB / 405.8 MB, free: 5.25 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1182, allocations: 0 / 405.8 MB, free: 5.25 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000366/0.1185, allocations: 107.8 kB / 405.9 MB, free: 5.145 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.001033/0.1196, allocations: 444.3 kB / 406.4 MB, free: 4.805 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006934/0.1203, allocations: 451.7 kB / 406.8 MB, free: 4.352 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.1203, allocations: 0 / 406.8 MB, free: 4.352 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002949/0.1206, allocations: 227.3 kB / 407 MB, free: 4.117 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004085/0.121, allocations: 74.61 kB / 407.1 MB, free: 4.043 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001286/0.1223, allocations: 0.9986 MB / 408.1 MB, free: 3.016 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004902/0.1228, allocations: 0.8458 MB / 408.9 MB, free: 2.141 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002068/0.123, allocations: 75.22 kB / 409 MB, free: 2.07 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.305e-05/0.1231, allocations: 35.44 kB / 409 MB, free: 2.035 MB / 302.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1231, allocations: 0 / 409 MB, free: 2.035 MB / 302.1 MB Notification: Performance of Templates: time 0.009414/0.1325, allocations: 4.594 MB / 413.6 MB, free: 13.44 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)