Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_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.TestI_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking") translateModel(IndustrialControlSystems.Controllers.Examples.TestI_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009285/0.0009285, allocations: 99.86 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.0009821/0.0009822, 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.879 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.0522/0.0522, allocations: 10.74 MB / 281.1 MB, free: 10.79 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.0004972/0.0004973, allocations: 16.22 kB / 341.6 MB, free: 23.91 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07644/0.07694, allocations: 50.01 MB / 391.6 MB, free: 5.832 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestI_tracking): time 0.002756/0.07974, allocations: 1.957 MB / 393.6 MB, free: 3.863 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002452/0.08223, allocations: 1.307 MB / 394.9 MB, free: 2.547 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000202/0.08247, allocations: 19.81 kB / 394.9 MB, free: 2.527 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006933/0.08318, allocations: 171.4 kB / 395 MB, free: 2.359 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003483/0.08353, allocations: 139.6 kB / 395.2 MB, free: 2.223 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008551/0.0844, allocations: 319.2 kB / 395.5 MB, free: 1.91 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004496/0.08486, allocations: 343.5 kB / 395.8 MB, free: 1.574 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000173/0.08504, allocations: 65.25 kB / 395.9 MB, free: 1.504 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002416/0.08529, allocations: 187.3 kB / 396.1 MB, free: 1.32 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002505/0.08555, allocations: 191.2 kB / 396.3 MB, free: 1.133 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.844e-05/0.0856, allocations: 16 kB / 396.3 MB, free: 1.117 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002059/0.08581, allocations: 107.8 kB / 396.4 MB, free: 1.012 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001349/0.08595, allocations: 107.6 kB / 396.5 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001522/0.08611, allocations: 97.44 kB / 396.6 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000409/0.08653, allocations: 363.5 kB / 396.9 MB, free: 460 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.08654, allocations: 0 / 396.9 MB, free: 460 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.08655, allocations: 0 / 396.9 MB, free: 460 kB / 286.1 MB Notification: Performance of Transformations before backend: time 7.144e-06/0.08657, allocations: 0 / 396.9 MB, free: 460 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001369/0.08794, allocations: 0.7755 MB / 397.7 MB, free: 15.61 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.641e-05/0.08799, allocations: 12.03 kB / 397.7 MB, free: 15.6 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001006/0.0881, allocations: 51.34 kB / 397.8 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006175/0.08872, allocations: 409.3 kB / 398.2 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.207e-05/0.08881, allocations: 71.97 kB / 398.2 MB, free: 15.03 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001214/0.08893, allocations: 32 kB / 398.3 MB, free: 15 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006101/0.08955, allocations: 387.7 kB / 398.7 MB, free: 14.6 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.489e-05/0.08959, allocations: 15.84 kB / 398.7 MB, free: 14.58 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.862e-05/0.08964, allocations: 15.95 kB / 398.7 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.01e-05/0.08965, allocations: 4 kB / 398.7 MB, free: 14.56 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004877/0.09015, allocations: 274 kB / 399 MB, free: 14.3 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002267/0.09243, allocations: 1.469 MB / 400.4 MB, free: 12.75 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004639/0.09291, allocations: 190.9 kB / 400.6 MB, free: 12.55 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.452e-05/0.09296, allocations: 8.125 kB / 400.6 MB, free: 12.54 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003655/0.09333, allocations: 222.9 kB / 400.8 MB, free: 12.31 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 3.136e-06/0.09335, allocations: 0 / 400.8 MB, free: 12.31 MB / 302.1 MB Notification: Performance of matching and sorting (n=27): time 0.0009652/0.09432, allocations: 0.558 MB / 401.4 MB, free: 11.72 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.143e-05/0.09439, allocations: 110.8 kB / 401.5 MB, free: 11.59 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006035/0.095, allocations: 489.8 kB / 402 MB, free: 11.1 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.823e-05/0.09505, allocations: 41.56 kB / 402 MB, free: 11.05 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001702/0.09523, allocations: 252.1 kB / 402.3 MB, free: 10.8 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.833e-05/0.09531, allocations: 86.72 kB / 402.4 MB, free: 10.72 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.725e-05/0.09533, allocations: 8 kB / 402.4 MB, free: 10.71 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000147/0.09548, allocations: 370.7 kB / 402.7 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002098/0.0957, allocations: 112.7 kB / 402.8 MB, free: 10.23 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002738/0.09599, allocations: 232.9 kB / 403.1 MB, free: 9.949 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002782/0.09627, allocations: 189.4 kB / 403.3 MB, free: 9.758 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.09629, allocations: 0 / 403.3 MB, free: 9.758 MB / 302.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008277/0.09712, allocations: 0.5063 MB / 403.8 MB, free: 9.238 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.007e-05/0.09717, allocations: 41.8 kB / 403.8 MB, free: 9.191 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.017e-06/0.09719, allocations: 3.984 kB / 403.8 MB, free: 9.188 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.667e-05/0.09721, allocations: 8 kB / 403.8 MB, free: 9.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005664/0.09779, allocations: 91.89 kB / 403.9 MB, free: 9.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.291e-05/0.09781, allocations: 4 kB / 403.9 MB, free: 9.086 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002138/0.09803, allocations: 47.61 kB / 403.9 MB, free: 9.039 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.091e-05/0.09807, allocations: 16 kB / 404 MB, free: 9.023 MB / 302.1 MB Warning: Assuming fixed start value for the following 6 variables: processTrack.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real processTrack.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] process.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] process.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] process.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real processTrack.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (45): * Single equations (assignments): 44 * 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.0003229/0.0984, allocations: 248.4 kB / 404.2 MB, free: 8.762 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.69e-05/0.09847, allocations: 47.44 kB / 404.3 MB, free: 8.715 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007501/0.09922, allocations: 443.9 kB / 404.7 MB, free: 8.27 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.187e-06/0.09924, allocations: 3.984 kB / 404.7 MB, free: 8.266 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.09926, allocations: 3.938 kB / 404.7 MB, free: 8.262 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.09927, allocations: 4 kB / 404.7 MB, free: 8.258 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005136/0.09979, allocations: 425.1 kB / 405.1 MB, free: 7.793 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.0998, allocations: 0 / 405.1 MB, free: 7.793 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005841/0.1004, allocations: 71.95 kB / 405.2 MB, free: 7.723 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.647e-06/0.1004, allocations: 0 / 405.2 MB, free: 7.723 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.276e-05/0.1004, allocations: 15.98 kB / 405.2 MB, free: 7.707 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.1005, allocations: 3.984 kB / 405.2 MB, free: 7.703 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.1005, allocations: 0 / 405.2 MB, free: 7.703 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009586/0.1014, allocations: 0.6039 MB / 405.8 MB, free: 7.074 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001131/0.1015, allocations: 120.5 kB / 405.9 MB, free: 6.938 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.972e-05/0.1016, allocations: 15.98 kB / 405.9 MB, free: 6.922 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001603/0.1018, allocations: 19.98 kB / 406 MB, free: 6.902 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.486e-05/0.1019, allocations: 23.97 kB / 406 MB, free: 6.879 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.684e-05/0.1019, allocations: 11.94 kB / 406 MB, free: 6.867 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003526/0.1023, allocations: 339.1 kB / 406.3 MB, free: 6.539 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.1023, allocations: 4 kB / 406.3 MB, free: 6.535 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004163/0.1027, allocations: 99.84 kB / 406.4 MB, free: 6.438 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (R.Iout,R_track.Iout,process.Y[3],process.U[2],process.w,processTrack.Y[3],processTrack.U[2],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 (24): * Single equations (assignments): 21 * 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.0009466/0.1037, allocations: 457.7 kB / 406.9 MB, free: 6.09 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007023/0.1044, allocations: 419.5 kB / 407.3 MB, free: 5.668 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.1044, allocations: 3.938 kB / 407.3 MB, free: 5.664 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002877/0.1047, allocations: 231.3 kB / 407.5 MB, free: 5.426 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003427/0.105, allocations: 71.28 kB / 407.6 MB, free: 5.355 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001242/0.1063, allocations: 0.9659 MB / 408.6 MB, free: 4.359 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000421/0.1067, allocations: 0.8655 MB / 409.4 MB, free: 3.465 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002154/0.1069, allocations: 67.23 kB / 409.5 MB, free: 3.402 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.894e-05/0.107, allocations: 35.44 kB / 409.5 MB, free: 3.367 MB / 302.1 MB Notification: Performance of SimCode: time 8.52e-07/0.107, allocations: 0 / 409.5 MB, free: 3.367 MB / 302.1 MB Notification: Performance of Templates: time 0.009082/0.1161, allocations: 4.285 MB / 413.8 MB, free: 15.08 MB / 318.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.makefile Environment - environmentSimulation: (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.sim & ./IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.pipe 2>&1) Environment - environmentSimulation: