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.001153/0.001153, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.001267/0.001268, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.585/1.585, allocations: 205.4 MB / 222.1 MB, free: 5.328 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05429/0.05429, allocations: 10.74 MB / 281.1 MB, free: 10.45 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.0005055/0.0005057, allocations: 12 kB / 341.6 MB, free: 23.86 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1024/0.1029, allocations: 50 MB / 391.6 MB, free: 5.781 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestD_tracking): time 0.00267/0.1056, allocations: 1.968 MB / 393.6 MB, free: 3.801 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002055/0.1077, allocations: 1.346 MB / 394.9 MB, free: 2.445 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000154/0.1079, allocations: 11.88 kB / 395 MB, free: 2.434 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006133/0.1085, allocations: 179.4 kB / 395.1 MB, free: 2.258 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002899/0.1088, allocations: 147.4 kB / 395.3 MB, free: 2.113 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007934/0.1096, allocations: 319.4 kB / 395.6 MB, free: 1.801 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005138/0.1101, allocations: 0.5115 MB / 396.1 MB, free: 1.285 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001497/0.1103, allocations: 61.25 kB / 396.2 MB, free: 1.219 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002387/0.1105, allocations: 199.2 kB / 396.3 MB, free: 1.023 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002835/0.1108, allocations: 215.1 kB / 396.6 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.708e-05/0.1109, allocations: 16 kB / 396.6 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002174/0.1111, allocations: 123.8 kB / 396.7 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001389/0.1113, allocations: 123.6 kB / 396.8 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001084/0.1114, allocations: 97.39 kB / 396.9 MB, free: 464 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003783/0.1118, allocations: 391.4 kB / 397.3 MB, free: 72 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.1118, allocations: 0 / 397.3 MB, free: 72 kB / 286.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.1118, allocations: 0 / 397.3 MB, free: 72 kB / 286.1 MB Notification: Performance of Transformations before backend: time 9.087e-06/0.1118, allocations: 0 / 397.3 MB, free: 72 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: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.001245/0.1131, allocations: 0.8024 MB / 398.1 MB, free: 15.21 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.532e-05/0.1131, allocations: 12.03 kB / 398.1 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001085/0.1132, allocations: 59.25 kB / 398.2 MB, free: 15.14 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005515/0.1138, allocations: 413.5 kB / 398.6 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.313e-05/0.1138, allocations: 20.66 kB / 398.6 MB, free: 14.68 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.471e-05/0.1139, allocations: 39.91 kB / 398.6 MB, free: 14.64 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006628/0.1146, allocations: 436.3 kB / 399.1 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.008e-05/0.1146, allocations: 7.984 kB / 399.1 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.366e-05/0.1147, allocations: 15.95 kB / 399.1 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.067e-06/0.1147, allocations: 11.94 kB / 399.1 MB, free: 14.15 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005434/0.1152, allocations: 326.3 kB / 399.4 MB, free: 13.83 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002114/0.1173, allocations: 1.56 MB / 401 MB, free: 12.2 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004022/0.1178, allocations: 239 kB / 401.2 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002362/0.118, allocations: 149 kB / 401.3 MB, free: 11.8 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.967e-05/0.1181, allocations: 4.234 kB / 401.4 MB, free: 11.8 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000396/0.1185, allocations: 251.3 kB / 401.6 MB, free: 11.54 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 1.964e-06/0.1185, allocations: 3.938 kB / 401.6 MB, free: 11.54 MB / 302.1 MB Notification: Performance of matching and sorting (n=33): time 0.0009655/0.1194, allocations: 0.5404 MB / 402.1 MB, free: 10.98 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.872e-05/0.1195, allocations: 110.8 kB / 402.2 MB, free: 10.85 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005657/0.1201, allocations: 0.5213 MB / 402.8 MB, free: 10.32 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.85e-05/0.1201, allocations: 29.7 kB / 402.8 MB, free: 10.29 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001875/0.1203, allocations: 268 kB / 403.1 MB, free: 10.02 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.796e-05/0.1204, allocations: 114.3 kB / 403.2 MB, free: 9.906 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.932e-05/0.1205, allocations: 12 kB / 403.2 MB, free: 9.895 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000162/0.1206, allocations: 370.7 kB / 403.5 MB, free: 9.523 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002458/0.1209, allocations: 140.9 kB / 403.7 MB, free: 9.387 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003451/0.1212, allocations: 290.3 kB / 404 MB, free: 9.043 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003365/0.1216, allocations: 226.9 kB / 404.2 MB, free: 8.809 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/0.1216, allocations: 0 / 404.2 MB, free: 8.809 MB / 302.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0009208/0.1225, allocations: 0.6216 MB / 404.8 MB, free: 8.176 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.229e-05/0.1226, allocations: 37.69 kB / 404.8 MB, free: 8.133 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.929e-06/0.1226, allocations: 4 kB / 404.9 MB, free: 8.129 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.975e-05/0.1226, allocations: 8 kB / 404.9 MB, free: 8.121 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004491/0.1231, allocations: 116.3 kB / 405 MB, free: 8.008 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.317e-05/0.1231, allocations: 8 kB / 405 MB, free: 8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002386/0.1233, allocations: 63.45 kB / 405 MB, free: 7.938 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.698e-05/0.1234, allocations: 24 kB / 405.1 MB, free: 7.914 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.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [4] process.Y[4]:VARIABLE(fixed = true protected = true ) type: Real [4] process.U[2]:VARIABLE(fixed = true protected = true ) type: Real [3] process.U[3]:VARIABLE(fixed = true protected = true ) type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition2,$PRE.TSsignal.combiTimeTable.nextTimeEvent,$whenCondition1,R_track.ts,TSsignal.combiTimeTable.nextTimeEvent,$PRE.TSsignal.combiTimeTable.nextTimeEventScaled,TSsignal.combiTimeTable.nextTimeEventScaled,TrackRef.a,TrackRef.b,TrackRef.last,$PRE.TrackRef.nextEvent,TrackRef.nextEvent,TrackRef.nextEventScaled,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003434/0.1237, allocations: 261.1 kB / 405.3 MB, free: 7.641 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.116e-05/0.1238, allocations: 55.42 kB / 405.4 MB, free: 7.586 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008173/0.1246, allocations: 499.7 kB / 405.9 MB, free: 7.082 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.192e-06/0.1247, allocations: 4 kB / 405.9 MB, free: 7.078 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.1247, allocations: 0 / 405.9 MB, free: 7.078 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.957e-06/0.1247, allocations: 7.938 kB / 405.9 MB, free: 7.07 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004346/0.1251, allocations: 449.2 kB / 406.3 MB, free: 6.582 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.1251, allocations: 0 / 406.3 MB, free: 6.582 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003813/0.1255, allocations: 67.95 kB / 406.4 MB, free: 6.516 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.508e-06/0.1255, allocations: 0 / 406.4 MB, free: 6.516 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.577e-05/0.1256, allocations: 23.92 kB / 406.4 MB, free: 6.492 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.1256, allocations: 0 / 406.4 MB, free: 6.492 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.1256, allocations: 0 / 406.4 MB, free: 6.492 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009785/0.1266, allocations: 0.6712 MB / 407.1 MB, free: 5.793 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.904e-05/0.1267, allocations: 124.5 kB / 407.2 MB, free: 5.652 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.47e-05/0.1268, allocations: 16 kB / 407.2 MB, free: 5.637 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001559/0.1269, allocations: 19.98 kB / 407.2 MB, free: 5.617 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.41e-05/0.127, allocations: 23.97 kB / 407.3 MB, free: 5.594 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.072e-05/0.127, allocations: 11.98 kB / 407.3 MB, free: 5.582 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003721/0.1274, allocations: 362.8 kB / 407.6 MB, free: 5.23 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1274, allocations: 0 / 407.6 MB, free: 5.23 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004326/0.1279, allocations: 119.8 kB / 407.7 MB, free: 5.113 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009937/0.1289, allocations: 465.8 kB / 408.2 MB, free: 4.762 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008519/0.1297, allocations: 495.8 kB / 408.7 MB, free: 4.266 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.041e-06/0.1297, allocations: 4.188 kB / 408.7 MB, free: 4.262 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003692/0.1301, allocations: 255.9 kB / 408.9 MB, free: 4 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000451/0.1306, allocations: 77.81 kB / 409 MB, free: 3.922 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001623/0.1322, allocations: 1.133 MB / 410.1 MB, free: 2.766 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000473/0.1327, allocations: 0.8781 MB / 411 MB, free: 1.863 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002743/0.133, allocations: 99.31 kB / 411.1 MB, free: 1.766 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.614e-05/0.1331, allocations: 35.44 kB / 411.1 MB, free: 1.73 MB / 302.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1331, allocations: 0 / 411.1 MB, free: 1.73 MB / 302.1 MB Notification: Performance of Templates: time 0.009981/0.1431, allocations: 4.636 MB / 415.8 MB, free: 13.09 MB / 318.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: