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.008248/0.008249, allocations: 104.7 kB / 15.74 MB, free: 6.484 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.001343/0.001343, allocations: 193.5 kB / 16.67 MB, free: 6.375 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.894/1.894, allocations: 205.1 MB / 222.5 MB, free: 4.512 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05749/0.05749, allocations: 10.75 MB / 280.6 MB, free: 10.39 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.001424/0.001424, allocations: 66.92 kB / 390.8 MB, free: 5.008 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3903/0.3917, allocations: 49.01 MB / 439.9 MB, free: 5.34 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestPD_tracking): time 0.004546/0.3963, allocations: 2.384 MB / 442.2 MB, free: 3.656 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003001/0.3993, allocations: 1.443 MB / 443.7 MB, free: 2.66 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005878/0.4, allocations: 16.12 kB / 443.7 MB, free: 2.652 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001006/0.401, allocations: 208.1 kB / 443.9 MB, free: 2.578 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.000798/0.4018, allocations: 171.5 kB / 444.1 MB, free: 2.496 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001473/0.4033, allocations: 391.4 kB / 444.4 MB, free: 2.305 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001046/0.4044, allocations: 0.6033 MB / 445.1 MB, free: 2.051 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002282/0.4046, allocations: 86.77 kB / 445.1 MB, free: 2.004 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004486/0.4051, allocations: 232.1 kB / 445.4 MB, free: 1.906 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004511/0.4055, allocations: 252 kB / 445.6 MB, free: 1.801 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001293/0.4057, allocations: 31.22 kB / 445.6 MB, free: 1.801 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003764/0.4061, allocations: 148.1 kB / 445.8 MB, free: 1.77 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002128/0.4063, allocations: 148.9 kB / 445.9 MB, free: 1.699 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003025/0.4066, allocations: 211.8 kB / 446.1 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001072/0.4077, allocations: 0.5508 MB / 446.7 MB, free: 1.32 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.943e-06/0.4077, allocations: 4 kB / 446.7 MB, free: 1.316 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.4077, allocations: 0 / 446.7 MB, free: 1.316 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.301e-05/0.4078, allocations: 2.359 kB / 446.7 MB, free: 1.316 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.002096/0.4099, allocations: 0.8828 MB / 447.6 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.199e-05/0.4099, allocations: 13.86 kB / 447.6 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000127/0.41, allocations: 59.5 kB / 447.6 MB, free: 0.543 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005872/0.4106, allocations: 463.5 kB / 448.1 MB, free: 156 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.619e-05/0.4107, allocations: 22.91 kB / 448.1 MB, free: 148 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.353e-05/0.4108, allocations: 51.88 kB / 448.2 MB, free: 120 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008258/0.4116, allocations: 429.6 kB / 448.6 MB, free: 15.84 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.236e-05/0.4116, allocations: 6.312 kB / 448.6 MB, free: 15.84 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.239e-05/0.4117, allocations: 12.34 kB / 448.6 MB, free: 15.83 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.21e-05/0.4117, allocations: 6.969 kB / 448.6 MB, free: 15.83 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007353/0.4125, allocations: 313.1 kB / 448.9 MB, free: 15.68 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002736/0.4152, allocations: 1.548 MB / 450.5 MB, free: 14.45 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005145/0.4157, allocations: 236.7 kB / 450.7 MB, free: 14.33 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002682/0.416, allocations: 148 kB / 450.8 MB, free: 14.25 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.489e-05/0.4161, allocations: 3.391 kB / 450.9 MB, free: 14.25 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004772/0.4166, allocations: 248.8 kB / 451.1 MB, free: 14.08 MB / 334.1 MB Notification: Performance of pre-optimization done (n=33): time 2.254e-06/0.4166, allocations: 2.031 kB / 451.1 MB, free: 14.08 MB / 334.1 MB Notification: Performance of matching and sorting (n=33): time 0.001167/0.4177, allocations: 0.5442 MB / 451.6 MB, free: 13.8 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001658/0.4179, allocations: 112.3 kB / 451.8 MB, free: 13.67 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007642/0.4187, allocations: 0.5159 MB / 452.3 MB, free: 13.37 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.038e-05/0.4187, allocations: 35.89 kB / 452.3 MB, free: 13.33 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002186/0.419, allocations: 270.3 kB / 452.6 MB, free: 13.09 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000122/0.4191, allocations: 121.6 kB / 452.7 MB, free: 12.98 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001966/0.4193, allocations: 95.27 kB / 452.8 MB, free: 12.93 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002247/0.4195, allocations: 365.5 kB / 453.1 MB, free: 12.57 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003601/0.4199, allocations: 146.2 kB / 453.3 MB, free: 12.51 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004304/0.4203, allocations: 290.9 kB / 453.6 MB, free: 12.25 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002225/0.4226, allocations: 0.9024 MB / 454.5 MB, free: 11.62 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.377e-06/0.4226, allocations: 1.312 kB / 454.5 MB, free: 11.62 MB / 334.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001563/0.4242, allocations: 0.6143 MB / 455.1 MB, free: 11.31 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.287e-05/0.4243, allocations: 42.16 kB / 455.1 MB, free: 11.27 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.759e-05/0.4243, allocations: 4.969 kB / 455.1 MB, free: 11.27 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.76e-05/0.4244, allocations: 14.88 kB / 455.1 MB, free: 11.26 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005482/0.4249, allocations: 105.9 kB / 455.2 MB, free: 11.24 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.871e-05/0.425, allocations: 10.52 kB / 455.3 MB, free: 11.23 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000408/0.4254, allocations: 55.39 kB / 455.3 MB, free: 11.2 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.359e-05/0.4255, allocations: 20.94 kB / 455.3 MB, free: 11.2 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.0006068/0.4261, allocations: 262.4 kB / 455.6 MB, free: 10.98 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001671/0.4263, allocations: 53.25 kB / 455.6 MB, free: 10.95 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001299/0.4276, allocations: 0.4899 MB / 456.1 MB, free: 10.67 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.219e-05/0.4276, allocations: 7.766 kB / 456.1 MB, free: 10.67 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.776e-06/0.4276, allocations: 0 / 456.1 MB, free: 10.67 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.602e-06/0.4276, allocations: 0 / 456.1 MB, free: 10.67 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000796/0.4284, allocations: 451.6 kB / 456.6 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.152e-06/0.4285, allocations: 0 / 456.6 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004322/0.4289, allocations: 70.92 kB / 456.6 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.484e-06/0.4289, allocations: 1.25 kB / 456.6 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.911e-05/0.429, allocations: 19.67 kB / 456.7 MB, free: 10.26 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.023e-06/0.429, allocations: 0 / 456.7 MB, free: 10.26 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.429, allocations: 5.344 kB / 456.7 MB, free: 10.26 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001286/0.4303, allocations: 0.665 MB / 457.3 MB, free: 9.898 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001564/0.4305, allocations: 127.3 kB / 457.5 MB, free: 9.77 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.138e-05/0.4306, allocations: 18.86 kB / 457.5 MB, free: 9.758 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001741/0.4307, allocations: 16.45 kB / 457.5 MB, free: 9.75 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.092e-05/0.4308, allocations: 22.59 kB / 457.5 MB, free: 9.738 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.865e-05/0.4309, allocations: 17.56 kB / 457.5 MB, free: 9.73 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005102/0.4314, allocations: 369.1 kB / 457.9 MB, free: 9.52 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4314, allocations: 0 / 457.9 MB, free: 9.52 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006625/0.4321, allocations: 124.3 kB / 458 MB, free: 9.484 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.001429/0.4335, allocations: 451.6 kB / 458.5 MB, free: 9.199 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001071/0.4346, allocations: 497.6 kB / 458.9 MB, free: 8.941 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.4346, allocations: 0 / 458.9 MB, free: 8.941 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003999/0.435, allocations: 266.4 kB / 459.2 MB, free: 8.777 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004971/0.4355, allocations: 74.98 kB / 459.3 MB, free: 8.738 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001874/0.4374, allocations: 0.9852 MB / 460.3 MB, free: 8.09 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005357/0.438, allocations: 0.8742 MB / 461.1 MB, free: 7.188 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002796/0.4383, allocations: 96.11 kB / 461.2 MB, free: 7.09 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001021/0.4384, allocations: 39.42 kB / 461.3 MB, free: 7.055 MB / 334.1 MB Notification: Performance of SimCode: time 3.71e-07/0.4384, allocations: 0 / 461.3 MB, free: 7.055 MB / 334.1 MB Notification: Performance of Templates: time 0.01152/0.4499, allocations: 5.159 MB / 466.4 MB, free: 1.895 MB / 334.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)