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.0008867/0.0008867, allocations: 99.62 kB / 15.05 MB, free: 1.105 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.0009758/0.0009762, allocations: 177.3 kB / 15.95 MB, free: 216 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.287/1.287, allocations: 205.4 MB / 222.1 MB, free: 5.656 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05315/0.05315, allocations: 10.73 MB / 281.1 MB, free: 10.56 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.000447/0.0004471, allocations: 16.22 kB / 341.6 MB, free: 23.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07957/0.08003, allocations: 50.02 MB / 391.6 MB, free: 5.805 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestPD_tracking): time 0.002365/0.08244, allocations: 1.972 MB / 393.6 MB, free: 3.82 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001932/0.08441, allocations: 1.33 MB / 394.9 MB, free: 2.48 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001679/0.08459, allocations: 15.88 kB / 394.9 MB, free: 2.465 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005722/0.08518, allocations: 171.4 kB / 395.1 MB, free: 2.297 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002853/0.08547, allocations: 147.6 kB / 395.2 MB, free: 2.152 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000749/0.08623, allocations: 315.3 kB / 395.5 MB, free: 1.844 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004881/0.08673, allocations: 364.3 kB / 395.9 MB, free: 1.484 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001587/0.0869, allocations: 65.25 kB / 396 MB, free: 1.414 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002633/0.08717, allocations: 195.2 kB / 396.1 MB, free: 1.223 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000245/0.08742, allocations: 199.2 kB / 396.3 MB, free: 1.027 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.122e-05/0.08747, allocations: 16 kB / 396.4 MB, free: 1.012 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001998/0.08768, allocations: 115.8 kB / 396.5 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001331/0.08782, allocations: 119.6 kB / 396.6 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.535e-05/0.08792, allocations: 93.39 kB / 396.7 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003736/0.0883, allocations: 395.4 kB / 397.1 MB, free: 304 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.355e-06/0.08831, allocations: 4 kB / 397.1 MB, free: 300 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.08832, allocations: 0 / 397.1 MB, free: 300 kB / 286.1 MB Notification: Performance of Transformations before backend: time 6.402e-06/0.08833, allocations: 0 / 397.1 MB, free: 300 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.001154/0.08949, allocations: 0.8066 MB / 397.9 MB, free: 15.43 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.419e-05/0.08953, allocations: 8.031 kB / 397.9 MB, free: 15.42 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001036/0.08964, allocations: 59.25 kB / 397.9 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005807/0.09023, allocations: 421.4 kB / 398.4 MB, free: 14.91 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.167e-05/0.09027, allocations: 24.66 kB / 398.4 MB, free: 14.88 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.949e-05/0.09034, allocations: 39.91 kB / 398.4 MB, free: 14.84 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006613/0.09101, allocations: 440.3 kB / 398.8 MB, free: 14.39 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.07e-05/0.09104, allocations: 4 kB / 398.8 MB, free: 14.38 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.665e-05/0.09108, allocations: 11.95 kB / 398.9 MB, free: 14.37 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.045e-06/0.0911, allocations: 8 kB / 398.9 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005102/0.09161, allocations: 310.4 kB / 399.2 MB, free: 14.06 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002267/0.09389, allocations: 1.575 MB / 400.7 MB, free: 12.41 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004365/0.09435, allocations: 243.1 kB / 401 MB, free: 12.16 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.219e-05/0.09439, allocations: 4.234 kB / 401 MB, free: 12.16 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004079/0.09481, allocations: 247.2 kB / 401.2 MB, free: 11.9 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 1.803e-06/0.09482, allocations: 0 / 401.2 MB, free: 11.9 MB / 302.1 MB Notification: Performance of matching and sorting (n=33): time 0.0009823/0.09581, allocations: 0.6276 MB / 401.9 MB, free: 11.25 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.737e-05/0.09588, allocations: 110.8 kB / 402 MB, free: 11.11 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005245/0.09641, allocations: 0.5175 MB / 402.5 MB, free: 10.59 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.995e-05/0.09646, allocations: 33.7 kB / 402.5 MB, free: 10.55 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001737/0.09664, allocations: 279.8 kB / 402.8 MB, free: 10.27 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.089e-05/0.09673, allocations: 114.4 kB / 402.9 MB, free: 10.16 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.816e-05/0.09676, allocations: 8 kB / 402.9 MB, free: 10.15 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001418/0.0969, allocations: 374.7 kB / 403.3 MB, free: 9.773 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002448/0.09716, allocations: 144.8 kB / 403.4 MB, free: 9.633 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003126/0.09749, allocations: 282.2 kB / 403.7 MB, free: 9.297 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003289/0.09783, allocations: 222.9 kB / 403.9 MB, free: 9.066 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.09784, allocations: 4 kB / 403.9 MB, free: 9.062 MB / 302.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0009303/0.09878, allocations: 0.6183 MB / 404.5 MB, free: 8.434 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.202e-05/0.09883, allocations: 36.83 kB / 404.6 MB, free: 8.395 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.558e-06/0.09885, allocations: 4 kB / 404.6 MB, free: 8.391 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.932e-05/0.09887, allocations: 8 kB / 404.6 MB, free: 8.383 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004256/0.0993, allocations: 111.8 kB / 404.7 MB, free: 8.273 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.305e-05/0.09933, allocations: 8 kB / 404.7 MB, free: 8.266 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002423/0.09958, allocations: 59.42 kB / 404.8 MB, free: 8.207 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.379e-05/0.09962, allocations: 27.89 kB / 404.8 MB, free: 8.18 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.0003011/0.09993, allocations: 257.4 kB / 405 MB, free: 7.91 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.321e-05/0.1, allocations: 51.34 kB / 405.1 MB, free: 7.859 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008486/0.1009, allocations: 0.496 MB / 405.6 MB, free: 7.348 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.1009, allocations: 0 / 405.6 MB, free: 7.348 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.1009, allocations: 0 / 405.6 MB, free: 7.348 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.709e-05/0.1009, allocations: 11.92 kB / 405.6 MB, free: 7.336 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004547/0.1014, allocations: 457 kB / 406 MB, free: 6.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.1014, allocations: 0 / 406 MB, free: 6.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003772/0.1018, allocations: 71.89 kB / 406.1 MB, free: 6.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.807e-06/0.1018, allocations: 0 / 406.1 MB, free: 6.77 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.1e-05/0.1018, allocations: 15.98 kB / 406.1 MB, free: 6.754 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.394e-06/0.1018, allocations: 3.938 kB / 406.1 MB, free: 6.75 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.1018, allocations: 4 kB / 406.1 MB, free: 6.746 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009923/0.1028, allocations: 0.6636 MB / 406.8 MB, free: 6.055 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001294/0.103, allocations: 124.4 kB / 406.9 MB, free: 5.914 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.498e-05/0.1031, allocations: 19.98 kB / 406.9 MB, free: 5.895 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001678/0.1032, allocations: 15.98 kB / 406.9 MB, free: 5.879 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.987e-05/0.1033, allocations: 23.97 kB / 407 MB, free: 5.855 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.958e-05/0.1034, allocations: 8 kB / 407 MB, free: 5.848 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003602/0.1037, allocations: 370.8 kB / 407.3 MB, free: 5.488 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1037, allocations: 3.938 kB / 407.3 MB, free: 5.484 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004197/0.1042, allocations: 115.8 kB / 407.5 MB, free: 5.371 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.0009176/0.1051, allocations: 463.9 kB / 407.9 MB, free: 5.008 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007414/0.1058, allocations: 498.9 kB / 408.4 MB, free: 4.508 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.1059, allocations: 0 / 408.4 MB, free: 4.508 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003152/0.1062, allocations: 259.7 kB / 408.7 MB, free: 4.242 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003489/0.1065, allocations: 63.64 kB / 408.7 MB, free: 4.18 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001335/0.1079, allocations: 1.133 MB / 409.8 MB, free: 3.02 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004106/0.1083, allocations: 0.8781 MB / 410.7 MB, free: 2.117 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002528/0.1086, allocations: 104.1 kB / 410.8 MB, free: 2.016 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.923e-05/0.1087, allocations: 43.42 kB / 410.9 MB, free: 1.973 MB / 302.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1087, allocations: 0 / 410.9 MB, free: 1.973 MB / 302.1 MB Notification: Performance of Templates: time 0.008841/0.1175, allocations: 4.643 MB / 415.5 MB, free: 13.33 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: