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.001558/0.001558, allocations: 109.8 kB / 16.42 MB, free: 6.469 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.001734/0.001734, allocations: 187.9 kB / 17.35 MB, free: 5.715 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.32/1.32, allocations: 205.1 MB / 223.2 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05841/0.05841, allocations: 10.74 MB / 281.3 MB, free: 1.285 MB / 222.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.001402/0.001402, allocations: 73.55 kB / 391.5 MB, free: 46.01 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08406/0.08547, allocations: 49.03 MB / 440.5 MB, free: 3.812 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestPD_tracking): time 0.00292/0.08843, allocations: 2.364 MB / 442.9 MB, free: 1.43 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001732/0.09018, allocations: 1.442 MB / 444.4 MB, free: 15.98 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001657/0.09035, allocations: 15.88 kB / 444.4 MB, free: 15.96 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006482/0.09102, allocations: 206.7 kB / 444.6 MB, free: 15.76 MB / 334.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.0003778/0.09141, allocations: 167.2 kB / 444.7 MB, free: 15.6 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008254/0.09225, allocations: 397.7 kB / 445.1 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000604/0.09286, allocations: 0.6133 MB / 445.7 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001627/0.09304, allocations: 73.02 kB / 445.8 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002595/0.0933, allocations: 235.2 kB / 446 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002999/0.09361, allocations: 239 kB / 446.3 MB, free: 14.06 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.715e-05/0.09369, allocations: 32 kB / 446.3 MB, free: 14.03 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002551/0.09395, allocations: 155.8 kB / 446.5 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001529/0.09411, allocations: 143.6 kB / 446.6 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001936/0.09431, allocations: 214.5 kB / 446.8 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005902/0.09491, allocations: 0.545 MB / 447.3 MB, free: 12.98 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.09493, allocations: 3.938 kB / 447.3 MB, free: 12.97 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.966e-06/0.09493, allocations: 3.984 kB / 447.4 MB, free: 12.97 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.726e-06/0.09495, allocations: 0 / 447.4 MB, free: 12.97 MB / 334.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.00135/0.09631, allocations: 0.8922 MB / 448.2 MB, free: 12.01 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.84e-05/0.09635, allocations: 15.88 kB / 448.3 MB, free: 12 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001041/0.09646, allocations: 64.19 kB / 448.3 MB, free: 11.93 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006435/0.09711, allocations: 450.3 kB / 448.8 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.216e-05/0.09716, allocations: 33.02 kB / 448.8 MB, free: 11.42 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.919e-05/0.09723, allocations: 40.12 kB / 448.8 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006986/0.09793, allocations: 428.3 kB / 449.3 MB, free: 10.94 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.258e-05/0.09797, allocations: 7.906 kB / 449.3 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.587e-05/0.09802, allocations: 16 kB / 449.3 MB, free: 10.92 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.047e-05/0.09804, allocations: 8 kB / 449.3 MB, free: 10.91 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005559/0.0986, allocations: 306.3 kB / 449.6 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002281/0.1009, allocations: 1.556 MB / 451.1 MB, free: 8.969 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000437/0.1013, allocations: 239 kB / 451.4 MB, free: 8.727 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002379/0.1016, allocations: 141 kB / 451.5 MB, free: 8.586 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.119e-05/0.1016, allocations: 8.234 kB / 451.5 MB, free: 8.578 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003921/0.102, allocations: 251.1 kB / 451.8 MB, free: 8.316 MB / 334.1 MB Notification: Performance of pre-optimization done (n=33): time 1.974e-06/0.102, allocations: 0 / 451.8 MB, free: 8.316 MB / 334.1 MB Notification: Performance of matching and sorting (n=33): time 0.0009824/0.103, allocations: 0.5444 MB / 452.3 MB, free: 7.762 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.603e-05/0.1031, allocations: 110.8 kB / 452.4 MB, free: 7.629 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005243/0.1036, allocations: 0.5291 MB / 452.9 MB, free: 7.086 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.184e-05/0.1037, allocations: 29.7 kB / 453 MB, free: 7.051 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002016/0.1039, allocations: 272 kB / 453.2 MB, free: 6.781 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.154e-05/0.104, allocations: 118.3 kB / 453.4 MB, free: 6.664 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001253/0.1041, allocations: 90.12 kB / 453.4 MB, free: 6.57 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001611/0.1043, allocations: 370.8 kB / 453.8 MB, free: 6.199 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002566/0.1045, allocations: 136.9 kB / 453.9 MB, free: 6.066 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003561/0.1049, allocations: 301.4 kB / 454.2 MB, free: 5.711 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001822/0.1067, allocations: 0.902 MB / 455.1 MB, free: 4.727 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.1068, allocations: 4 kB / 455.1 MB, free: 4.723 MB / 334.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0009125/0.1077, allocations: 0.6131 MB / 455.8 MB, free: 4.098 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.771e-05/0.1077, allocations: 41.62 kB / 455.8 MB, free: 4.051 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.338e-05/0.1078, allocations: 8.031 kB / 455.8 MB, free: 4.043 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.821e-05/0.1078, allocations: 11.94 kB / 455.8 MB, free: 4.031 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004351/0.1082, allocations: 107.9 kB / 455.9 MB, free: 3.926 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.196e-05/0.1082, allocations: 7.938 kB / 455.9 MB, free: 3.918 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002304/0.1085, allocations: 55.52 kB / 456 MB, free: 3.863 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.538e-05/0.1085, allocations: 24 kB / 456 MB, free: 3.84 MB / 334.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.0002976/0.1088, allocations: 269.1 kB / 456.3 MB, free: 3.562 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.249e-05/0.1089, allocations: 47.44 kB / 456.3 MB, free: 3.516 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008178/0.1097, allocations: 0.4921 MB / 456.8 MB, free: 3.008 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.045e-06/0.1097, allocations: 3.938 kB / 456.8 MB, free: 3.004 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.1098, allocations: 0 / 456.8 MB, free: 3.004 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001077/0.1099, allocations: 128.5 kB / 456.9 MB, free: 2.859 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.163e-05/0.1099, allocations: 8 kB / 456.9 MB, free: 2.852 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001753/0.1101, allocations: 23.97 kB / 457 MB, free: 2.828 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.428e-05/0.1102, allocations: 23.91 kB / 457 MB, free: 2.805 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001287/0.1115, allocations: 0.6575 MB / 457.6 MB, free: 2.121 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001199/0.1127, allocations: 0.8642 MB / 458.5 MB, free: 1.234 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000308/0.113, allocations: 199.8 kB / 458.7 MB, free: 1.039 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003944/0.1135, allocations: 362.8 kB / 459.1 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of Backend: time 5.21e-07/0.1135, allocations: 0 / 459.1 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001876/0.1153, allocations: 0.7909 MB / 459.9 MB, free: 8 kB / 334.1 MB Notification: Performance of SimCode: time 0.00173/0.1171, allocations: 1.466 MB / 461.3 MB, free: 14.48 MB / 350.1 MB Notification: Performance of Templates: time 0.01203/0.1291, allocations: 5.894 MB / 467.2 MB, free: 8.59 MB / 350.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.makefile (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)