Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_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.TestD_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking") translateModel(IndustrialControlSystems.Controllers.Examples.TestD_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009908/0.009908, allocations: 101.8 kB / 15.73 MB, free: 6.477 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.002205/0.002205, allocations: 192.4 kB / 16.67 MB, free: 6.391 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.943/1.943, allocations: 205.1 MB / 222.5 MB, free: 4.566 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05923/0.05923, allocations: 10.74 MB / 280.6 MB, free: 10.46 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.001581/0.001581, allocations: 68.12 kB / 390.8 MB, free: 5.039 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3884/0.39, allocations: 49.02 MB / 439.9 MB, free: 5.352 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestD_tracking): time 0.003825/0.3939, allocations: 2.353 MB / 442.2 MB, free: 3.691 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002332/0.3962, allocations: 1.439 MB / 443.7 MB, free: 2.699 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002426/0.3965, allocations: 14.19 kB / 443.7 MB, free: 2.691 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008416/0.3973, allocations: 204.5 kB / 443.9 MB, free: 2.621 MB / 318.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.0004178/0.3978, allocations: 175.5 kB / 444 MB, free: 2.535 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001091/0.3989, allocations: 394.3 kB / 444.4 MB, free: 2.34 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007249/0.3996, allocations: 0.5949 MB / 445 MB, free: 2.09 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001973/0.3998, allocations: 88.56 kB / 445.1 MB, free: 2.043 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003337/0.4002, allocations: 229.6 kB / 445.3 MB, free: 1.945 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000382/0.4005, allocations: 247.7 kB / 445.6 MB, free: 1.844 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.425e-05/0.4006, allocations: 32.31 kB / 445.6 MB, free: 1.844 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003305/0.401, allocations: 151.8 kB / 445.7 MB, free: 1.809 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001877/0.4012, allocations: 144.2 kB / 445.9 MB, free: 1.742 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002185/0.4014, allocations: 209.3 kB / 446.1 MB, free: 1.598 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007768/0.4022, allocations: 0.5526 MB / 446.6 MB, free: 1.363 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.4022, allocations: 0 / 446.6 MB, free: 1.363 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.714e-06/0.4022, allocations: 1.438 kB / 446.6 MB, free: 1.363 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.477e-05/0.4022, allocations: 0 / 446.6 MB, free: 1.363 MB / 318.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.001394/0.4036, allocations: 0.8859 MB / 447.5 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.885e-05/0.4037, allocations: 13.14 kB / 447.5 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001059/0.4038, allocations: 59.22 kB / 447.6 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005321/0.4043, allocations: 454.5 kB / 448 MB, free: 208 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.146e-05/0.4044, allocations: 30.12 kB / 448.1 MB, free: 192 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.464e-05/0.4044, allocations: 43.81 kB / 448.1 MB, free: 172 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006856/0.4051, allocations: 429.5 kB / 448.5 MB, free: 15.89 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.177e-05/0.4052, allocations: 2.5 kB / 448.5 MB, free: 15.89 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.893e-05/0.4052, allocations: 15.7 kB / 448.6 MB, free: 15.88 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.056e-05/0.4052, allocations: 11.47 kB / 448.6 MB, free: 15.88 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005919/0.4058, allocations: 313.2 kB / 448.9 MB, free: 15.73 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00242/0.4082, allocations: 1.544 MB / 450.4 MB, free: 14.5 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004746/0.4087, allocations: 235.6 kB / 450.6 MB, free: 14.38 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002434/0.409, allocations: 145.5 kB / 450.8 MB, free: 14.31 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.517e-05/0.409, allocations: 7.906 kB / 450.8 MB, free: 14.3 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004114/0.4095, allocations: 248.1 kB / 451 MB, free: 14.13 MB / 334.1 MB Notification: Performance of pre-optimization done (n=33): time 1.924e-06/0.4095, allocations: 0 / 451 MB, free: 14.13 MB / 334.1 MB Notification: Performance of matching and sorting (n=33): time 0.001068/0.4105, allocations: 0.554 MB / 451.6 MB, free: 13.84 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.094e-05/0.4106, allocations: 111.1 kB / 451.7 MB, free: 13.71 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006267/0.4113, allocations: 0.5171 MB / 452.2 MB, free: 13.41 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.684e-05/0.4113, allocations: 32.14 kB / 452.3 MB, free: 13.37 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002216/0.4116, allocations: 281.1 kB / 452.5 MB, free: 13.12 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001192/0.4117, allocations: 110 kB / 452.6 MB, free: 13.03 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001682/0.4119, allocations: 99.42 kB / 452.7 MB, free: 12.96 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002384/0.4121, allocations: 365.2 kB / 453.1 MB, free: 12.61 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002882/0.4124, allocations: 142.3 kB / 453.2 MB, free: 12.55 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003915/0.4128, allocations: 282.6 kB / 453.5 MB, free: 12.3 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001959/0.4148, allocations: 0.9022 MB / 454.4 MB, free: 11.68 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.22e-06/0.4148, allocations: 1.094 kB / 454.4 MB, free: 11.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001077/0.4159, allocations: 0.6099 MB / 455 MB, free: 11.36 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.056e-05/0.4159, allocations: 42.94 kB / 455.1 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.035e-05/0.4159, allocations: 3.438 kB / 455.1 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.433e-05/0.416, allocations: 11.41 kB / 455.1 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004702/0.4165, allocations: 115.3 kB / 455.2 MB, free: 11.29 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.886e-05/0.4165, allocations: 9.594 kB / 455.2 MB, free: 11.29 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002741/0.4168, allocations: 63.95 kB / 455.3 MB, free: 11.24 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.129e-05/0.4168, allocations: 20.25 kB / 455.3 MB, free: 11.24 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.0004003/0.4172, allocations: 255.1 kB / 455.5 MB, free: 11.03 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.313e-05/0.4173, allocations: 52.59 kB / 455.6 MB, free: 11 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008903/0.4182, allocations: 0.4902 MB / 456.1 MB, free: 10.73 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.4182, allocations: 2.75 kB / 456.1 MB, free: 10.73 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.4182, allocations: 1.438 kB / 456.1 MB, free: 10.73 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.4183, allocations: 3.938 kB / 456.1 MB, free: 10.72 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006175/0.4189, allocations: 449.9 kB / 456.5 MB, free: 10.35 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.848e-06/0.4189, allocations: 9.047 kB / 456.5 MB, free: 10.34 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004023/0.4193, allocations: 66.39 kB / 456.6 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.222e-06/0.4193, allocations: 5.359 kB / 456.6 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.322e-05/0.4194, allocations: 18.94 kB / 456.6 MB, free: 10.31 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.4194, allocations: 1.344 kB / 456.6 MB, free: 10.31 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.4194, allocations: 7.984 kB / 456.6 MB, free: 10.3 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001193/0.4206, allocations: 0.6585 MB / 457.3 MB, free: 9.949 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001294/0.4207, allocations: 130.8 kB / 457.4 MB, free: 9.816 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.088e-05/0.4208, allocations: 14.47 kB / 457.4 MB, free: 9.809 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001627/0.421, allocations: 16.86 kB / 457.4 MB, free: 9.801 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.768e-05/0.4211, allocations: 26.06 kB / 457.5 MB, free: 9.785 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.12e-05/0.4211, allocations: 21.42 kB / 457.5 MB, free: 9.773 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004818/0.4216, allocations: 364.4 kB / 457.8 MB, free: 9.566 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4216, allocations: 0 / 457.8 MB, free: 9.566 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005906/0.4222, allocations: 115.5 kB / 458 MB, free: 9.539 MB / 334.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.001217/0.4234, allocations: 456.2 kB / 458.4 MB, free: 9.246 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001014/0.4245, allocations: 0.4939 MB / 458.9 MB, free: 8.98 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.4245, allocations: 0 / 458.9 MB, free: 8.98 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004143/0.4249, allocations: 258.6 kB / 459.1 MB, free: 8.824 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004613/0.4254, allocations: 73.67 kB / 459.2 MB, free: 8.789 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001918/0.4273, allocations: 0.9853 MB / 460.2 MB, free: 8.16 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005404/0.4279, allocations: 0.8664 MB / 461.1 MB, free: 7.266 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002757/0.4281, allocations: 103.4 kB / 461.2 MB, free: 7.16 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.641e-05/0.4282, allocations: 39.42 kB / 461.2 MB, free: 7.125 MB / 334.1 MB Notification: Performance of SimCode: time 4.81e-07/0.4283, allocations: 0 / 461.2 MB, free: 7.125 MB / 334.1 MB Notification: Performance of Templates: time 0.01074/0.439, allocations: 5.144 MB / 466.4 MB, free: 1.977 MB / 334.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.makefile (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.sim & ./IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.pipe 2>&1)