Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_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.TestPD_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking") translateModel(IndustrialControlSystems.Controllers.Examples.TestPD_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001063/0.001063, allocations: 87.42 kB / 15.07 MB, free: 1.082 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.001221/0.001221, allocations: 168.7 kB / 15.95 MB, free: 200 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.597/1.597, allocations: 205.4 MB / 222.1 MB, free: 5.652 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05917/0.05917, allocations: 10.75 MB / 281.1 MB, free: 10.54 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.0005611/0.0005613, allocations: 19.98 kB / 341.6 MB, free: 23.85 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1084, allocations: 50.01 MB / 391.6 MB, free: 5.773 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestPD_tracking): time 0.003054/0.1115, allocations: 1.976 MB / 393.6 MB, free: 3.785 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002487/0.1141, allocations: 1.35 MB / 395 MB, free: 2.426 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003163/0.1144, allocations: 11.88 kB / 395 MB, free: 2.414 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007838/0.1152, allocations: 183.4 kB / 395.2 MB, free: 2.234 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000425/0.1157, allocations: 139.5 kB / 395.3 MB, free: 2.098 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000963/0.1166, allocations: 323.4 kB / 395.6 MB, free: 1.781 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000746/0.1174, allocations: 0.5116 MB / 396.1 MB, free: 1.266 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001906/0.1176, allocations: 65.25 kB / 396.2 MB, free: 1.195 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003847/0.118, allocations: 203.1 kB / 396.4 MB, free: 0.9961 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003693/0.1184, allocations: 215.1 kB / 396.6 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.689e-05/0.1185, allocations: 19.94 kB / 396.6 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002948/0.1188, allocations: 115.9 kB / 396.7 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001527/0.119, allocations: 131.5 kB / 396.9 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000123/0.1191, allocations: 93.45 kB / 396.9 MB, free: 436 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004179/0.1195, allocations: 391.4 kB / 397.3 MB, free: 44 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.441e-06/0.1195, allocations: 4 kB / 397.3 MB, free: 40 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.1195, allocations: 0 / 397.3 MB, free: 40 kB / 286.1 MB Notification: Performance of Transformations before backend: time 1.741e-05/0.1196, allocations: 0 / 397.3 MB, free: 40 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.001284/0.1209, allocations: 0.8061 MB / 398.1 MB, free: 15.18 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.38e-05/0.1209, allocations: 8.031 kB / 398.1 MB, free: 15.17 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001087/0.121, allocations: 59.25 kB / 398.2 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005517/0.1216, allocations: 425.4 kB / 398.6 MB, free: 14.65 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.313e-05/0.1216, allocations: 24.66 kB / 398.6 MB, free: 14.63 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.462e-05/0.1217, allocations: 39.91 kB / 398.7 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006689/0.1224, allocations: 432.3 kB / 399.1 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.33e-05/0.1224, allocations: 8 kB / 399.1 MB, free: 14.13 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.463e-05/0.1224, allocations: 19.94 kB / 399.1 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.004e-05/0.1225, allocations: 8 kB / 399.1 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005623/0.123, allocations: 310.4 kB / 399.4 MB, free: 13.8 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002151/0.1252, allocations: 1.567 MB / 401 MB, free: 12.16 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004234/0.1256, allocations: 243 kB / 401.2 MB, free: 11.91 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002405/0.1259, allocations: 149 kB / 401.4 MB, free: 11.77 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.447e-05/0.1259, allocations: 4.234 kB / 401.4 MB, free: 11.76 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003985/0.1263, allocations: 255.2 kB / 401.6 MB, free: 11.5 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 3.416e-06/0.1264, allocations: 0 / 401.6 MB, free: 11.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=33): time 0.001005/0.1274, allocations: 0.552 MB / 402.2 MB, free: 10.93 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.874e-05/0.1274, allocations: 110.8 kB / 402.3 MB, free: 10.8 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000571/0.128, allocations: 0.5214 MB / 402.8 MB, free: 10.27 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.339e-05/0.1281, allocations: 33.7 kB / 402.9 MB, free: 10.23 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002022/0.1283, allocations: 267.9 kB / 403.1 MB, free: 9.965 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001101/0.1284, allocations: 114.4 kB / 403.2 MB, free: 9.852 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.389e-05/0.1284, allocations: 8 kB / 403.2 MB, free: 9.844 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002061/0.1286, allocations: 366.7 kB / 403.6 MB, free: 9.477 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000275/0.1289, allocations: 144.9 kB / 403.7 MB, free: 9.336 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003663/0.1293, allocations: 294.1 kB / 404 MB, free: 8.988 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003739/0.1297, allocations: 214.9 kB / 404.2 MB, free: 8.766 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.69e-06/0.1297, allocations: 4 kB / 404.2 MB, free: 8.762 MB / 302.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0009483/0.1307, allocations: 0.61 MB / 404.8 MB, free: 8.141 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.854e-05/0.1307, allocations: 41.69 kB / 404.9 MB, free: 8.094 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.149e-05/0.1307, allocations: 4 kB / 404.9 MB, free: 8.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.534e-05/0.1308, allocations: 8.531 kB / 404.9 MB, free: 8.082 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004262/0.1312, allocations: 115.8 kB / 405 MB, free: 7.969 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.475e-05/0.1312, allocations: 7.984 kB / 405 MB, free: 7.961 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002439/0.1315, allocations: 67.38 kB / 405.1 MB, free: 7.895 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.483e-05/0.1315, allocations: 20 kB / 405.1 MB, free: 7.875 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.0003141/0.1319, allocations: 261.2 kB / 405.4 MB, free: 7.602 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.798e-05/0.1319, allocations: 51.34 kB / 405.4 MB, free: 7.551 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008644/0.1328, allocations: 496 kB / 405.9 MB, free: 7.051 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.985e-06/0.1328, allocations: 7.938 kB / 405.9 MB, free: 7.043 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/0.1328, allocations: 0 / 405.9 MB, free: 7.043 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.848e-06/0.1328, allocations: 7.938 kB / 405.9 MB, free: 7.035 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000512/0.1334, allocations: 461 kB / 406.4 MB, free: 6.535 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.1334, allocations: 0 / 406.4 MB, free: 6.535 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003791/0.1338, allocations: 63.95 kB / 406.4 MB, free: 6.473 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.869e-06/0.1338, allocations: 4 kB / 406.4 MB, free: 6.469 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.197e-05/0.1338, allocations: 19.98 kB / 406.4 MB, free: 6.449 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.285e-06/0.1338, allocations: 0 / 406.4 MB, free: 6.449 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.1338, allocations: 0 / 406.4 MB, free: 6.449 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001068/0.1349, allocations: 0.6674 MB / 407.1 MB, free: 5.754 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001569/0.1351, allocations: 132.3 kB / 407.2 MB, free: 5.605 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001101/0.1352, allocations: 19.98 kB / 407.3 MB, free: 5.586 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002508/0.1355, allocations: 23.98 kB / 407.3 MB, free: 5.562 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001065/0.1356, allocations: 15.97 kB / 407.3 MB, free: 5.547 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.718e-05/0.1357, allocations: 16 kB / 407.3 MB, free: 5.531 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006346/0.1363, allocations: 362.8 kB / 407.7 MB, free: 5.18 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.1363, allocations: 4 kB / 407.7 MB, free: 5.176 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005521/0.1369, allocations: 115.8 kB / 407.8 MB, free: 5.062 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.001517/0.1384, allocations: 469.9 kB / 408.3 MB, free: 4.707 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001294/0.1397, allocations: 495.9 kB / 408.7 MB, free: 4.211 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.1398, allocations: 0 / 408.7 MB, free: 4.211 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005086/0.1403, allocations: 255.8 kB / 409 MB, free: 3.949 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006491/0.1409, allocations: 77.86 kB / 409.1 MB, free: 3.871 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002588/0.1435, allocations: 1.137 MB / 410.2 MB, free: 2.707 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007253/0.1443, allocations: 0.8703 MB / 411.1 MB, free: 1.812 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004461/0.1447, allocations: 96.09 kB / 411.2 MB, free: 1.719 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001479/0.1449, allocations: 39.44 kB / 411.2 MB, free: 1.68 MB / 302.1 MB Notification: Performance of SimCode: time 1.152e-06/0.1449, allocations: 3.938 kB / 411.2 MB, free: 1.676 MB / 302.1 MB Notification: Performance of Templates: time 0.01603/0.161, allocations: 4.651 MB / 415.9 MB, free: 13.02 MB / 318.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.makefile Environment - environmentSimulation: (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.sim & ./IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.pipe 2>&1) Environment - environmentSimulation: