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: "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestPD_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPD_tracking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestPD_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPD_tracking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001142/0.001142, allocations: 107.4 kB / 15.34 MB, free: 0.5 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.001283/0.001283, allocations: 192.2 kB / 16.25 MB, free: 6.156 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.486/1.486, 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.05817/0.05817, allocations: 10.74 MB / 280.2 MB, free: 10.64 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.00172/0.00172, allocations: 67.91 kB / 340.1 MB, free: 23.56 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07951/0.08124, allocations: 49.01 MB / 389.2 MB, free: 6.488 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestPD_tracking): time 0.003485/0.08476, allocations: 2.423 MB / 391.6 MB, free: 4.047 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002017/0.08679, allocations: 1.415 MB / 393 MB, free: 2.621 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001421/0.08695, allocations: 15.81 kB / 393 MB, free: 2.605 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006161/0.08758, allocations: 199.4 kB / 393.2 MB, free: 2.41 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004035/0.088, allocations: 151.4 kB / 393.3 MB, free: 2.262 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008344/0.08884, allocations: 355.4 kB / 393.7 MB, free: 1.914 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006242/0.08947, allocations: 0.6092 MB / 394.3 MB, free: 1.301 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001956/0.08968, allocations: 77.34 kB / 394.4 MB, free: 1.219 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002807/0.08997, allocations: 235 kB / 394.6 MB, free: 0.9883 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003085/0.09028, allocations: 246.9 kB / 394.9 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.915e-05/0.09036, allocations: 40 kB / 394.9 MB, free: 0.707 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002342/0.0906, allocations: 147.9 kB / 395 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001608/0.09077, allocations: 147.5 kB / 395.2 MB, free: 428 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002063/0.09098, allocations: 218.6 kB / 395.4 MB, free: 208 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006381/0.09162, allocations: 0.5333 MB / 395.9 MB, free: 15.67 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.09164, allocations: 3.984 kB / 395.9 MB, free: 15.66 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.09165, allocations: 0 / 395.9 MB, free: 15.66 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.139e-05/0.09166, allocations: 0 / 395.9 MB, free: 15.66 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.00135/0.09302, allocations: 0.8883 MB / 396.8 MB, free: 14.71 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.867e-05/0.09306, allocations: 15.89 kB / 396.8 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.812e-05/0.09315, allocations: 70.72 kB / 396.9 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.286e-05/0.09325, allocations: 56.28 kB / 397 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005185/0.09377, allocations: 438.4 kB / 397.4 MB, free: 14.1 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.393e-05/0.09381, allocations: 29.02 kB / 397.4 MB, free: 14.07 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.809e-05/0.09388, allocations: 43.84 kB / 397.5 MB, free: 14.03 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006842/0.09457, allocations: 428.3 kB / 397.9 MB, free: 13.58 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.009e-05/0.0946, allocations: 4 kB / 397.9 MB, free: 13.58 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.697e-05/0.09465, allocations: 16 kB / 397.9 MB, free: 13.56 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.128e-05/0.09466, allocations: 12 kB / 397.9 MB, free: 13.55 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005512/0.09522, allocations: 306.3 kB / 398.2 MB, free: 13.25 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002237/0.09747, allocations: 1.567 MB / 399.8 MB, free: 11.61 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004404/0.09792, allocations: 231 kB / 400 MB, free: 11.38 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002368/0.09817, allocations: 153 kB / 400.1 MB, free: 11.22 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.347e-05/0.09821, allocations: 8.219 kB / 400.2 MB, free: 11.21 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004011/0.09862, allocations: 243.2 kB / 400.4 MB, free: 10.96 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 1.784e-06/0.09864, allocations: 4 kB / 400.4 MB, free: 10.96 MB / 302.1 MB Notification: Performance of matching and sorting (n=33): time 0.0009732/0.09962, allocations: 0.548 MB / 400.9 MB, free: 10.4 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.994e-05/0.0997, allocations: 114.8 kB / 401.1 MB, free: 10.26 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005545/0.1003, allocations: 0.5252 MB / 401.6 MB, free: 9.727 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.12e-05/0.1003, allocations: 37.7 kB / 401.6 MB, free: 9.684 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000205/0.1005, allocations: 267.9 kB / 401.9 MB, free: 9.418 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.747e-05/0.1006, allocations: 114.4 kB / 402 MB, free: 9.305 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001347/0.1008, allocations: 94.03 kB / 402.1 MB, free: 9.207 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001439/0.1009, allocations: 370.8 kB / 402.4 MB, free: 8.836 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002581/0.1012, allocations: 136.9 kB / 402.6 MB, free: 8.699 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003388/0.1015, allocations: 290.2 kB / 402.9 MB, free: 8.359 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001847/0.1034, allocations: 0.9022 MB / 403.8 MB, free: 7.375 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.091e-06/0.1034, allocations: 4 kB / 403.8 MB, free: 7.371 MB / 302.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0009241/0.1043, allocations: 0.6051 MB / 404.4 MB, free: 6.754 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.74e-05/0.1044, allocations: 41.69 kB / 404.4 MB, free: 6.707 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.138e-06/0.1044, allocations: 7.938 kB / 404.4 MB, free: 6.699 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.857e-05/0.1044, allocations: 8 kB / 404.4 MB, free: 6.691 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004419/0.1049, allocations: 111.8 kB / 404.5 MB, free: 6.582 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.123e-05/0.1049, allocations: 7.938 kB / 404.5 MB, free: 6.574 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002276/0.1051, allocations: 59.36 kB / 404.6 MB, free: 6.516 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.544e-05/0.1052, allocations: 28.28 kB / 404.6 MB, free: 6.488 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.0003152/0.1055, allocations: 261.2 kB / 404.9 MB, free: 6.215 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.916e-05/0.1056, allocations: 55.34 kB / 404.9 MB, free: 6.16 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008104/0.1064, allocations: 0.4885 MB / 405.4 MB, free: 5.656 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.1064, allocations: 0 / 405.4 MB, free: 5.656 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.1064, allocations: 4 kB / 405.4 MB, free: 5.652 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.803e-06/0.1064, allocations: 3.984 kB / 405.4 MB, free: 5.648 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004729/0.1069, allocations: 449 kB / 405.9 MB, free: 5.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.1069, allocations: 4 kB / 405.9 MB, free: 5.156 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003919/0.1073, allocations: 71.89 kB / 406 MB, free: 5.086 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.241e-05/0.1073, allocations: 3.984 kB / 406 MB, free: 5.082 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.062e-05/0.1074, allocations: 15.94 kB / 406 MB, free: 5.066 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.627e-06/0.1074, allocations: 3.984 kB / 406 MB, free: 5.062 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.1074, allocations: 0 / 406 MB, free: 5.062 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001074/0.1085, allocations: 0.6634 MB / 406.6 MB, free: 4.371 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.949e-05/0.1086, allocations: 140.2 kB / 406.8 MB, free: 4.215 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.489e-05/0.1087, allocations: 11.94 kB / 406.8 MB, free: 4.203 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001711/0.1088, allocations: 23.97 kB / 406.8 MB, free: 4.18 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.428e-05/0.1089, allocations: 19.97 kB / 406.8 MB, free: 4.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.414e-05/0.109, allocations: 12 kB / 406.8 MB, free: 4.148 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003871/0.1094, allocations: 366.9 kB / 407.2 MB, free: 3.793 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1094, allocations: 3.938 kB / 407.2 MB, free: 3.789 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000461/0.1098, allocations: 115.8 kB / 407.3 MB, free: 3.676 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.002212/0.1121, allocations: 1.54 MB / 408.9 MB, free: 2.211 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000899/0.113, allocations: 0.5183 MB / 409.4 MB, free: 1.68 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.113, allocations: 4 kB / 409.4 MB, free: 1.676 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003485/0.1134, allocations: 260.4 kB / 409.6 MB, free: 1.41 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004859/0.1139, allocations: 86.08 kB / 409.7 MB, free: 1.328 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00586/0.1197, allocations: 4.897 MB / 414.6 MB, free: 12.23 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004261/0.1202, allocations: 0.8742 MB / 415.5 MB, free: 11.32 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002814/0.1205, allocations: 104.1 kB / 415.6 MB, free: 11.22 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002378/0.1207, allocations: 183.4 kB / 415.8 MB, free: 11.04 MB / 318.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1207, allocations: 0 / 415.8 MB, free: 11.04 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02157/0.1423, allocations: 10.1 MB / 425.9 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001916/0.1425, allocations: 275.6 kB / 426.1 MB, free: 0.625 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.052/2.195, allocations: 4 kB / 426.1 MB, free: 0.6211 MB / 318.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPD_tracking_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPD_tracking.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.pipe 2>&1)