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.008394/0.008394, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.001699/0.001699, allocations: 189.4 kB / 16.67 MB, free: 5.934 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.841/1.841, allocations: 205.1 MB / 222.5 MB, free: 4.484 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.0596/0.0596, allocations: 10.75 MB / 280.7 MB, free: 10.38 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.001706/0.001706, allocations: 80.45 kB / 390.9 MB, free: 5.004 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3903/0.392, allocations: 49.01 MB / 439.9 MB, free: 5.348 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestD_tracking): time 0.003895/0.3959, allocations: 2.363 MB / 442.2 MB, free: 3.676 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002276/0.3982, allocations: 1.43 MB / 443.7 MB, free: 2.691 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002235/0.3985, allocations: 14.75 kB / 443.7 MB, free: 2.684 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007254/0.3992, allocations: 208.5 kB / 443.9 MB, free: 2.609 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.0003974/0.3996, allocations: 159.1 kB / 444 MB, free: 2.539 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009504/0.4006, allocations: 405.9 kB / 444.4 MB, free: 2.332 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006866/0.4013, allocations: 0.5947 MB / 445 MB, free: 2.082 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001832/0.4015, allocations: 87.61 kB / 445.1 MB, free: 2.035 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002911/0.4018, allocations: 227.4 kB / 445.3 MB, free: 1.938 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003805/0.4022, allocations: 239.6 kB / 445.6 MB, free: 1.844 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.394e-05/0.4023, allocations: 31.66 kB / 445.6 MB, free: 1.844 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002916/0.4026, allocations: 160.5 kB / 445.7 MB, free: 1.801 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001754/0.4027, allocations: 137.8 kB / 445.9 MB, free: 1.742 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001943/0.4029, allocations: 222.6 kB / 446.1 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007398/0.4037, allocations: 0.5519 MB / 446.6 MB, free: 1.352 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.4037, allocations: 0 / 446.6 MB, free: 1.352 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.826e-06/0.4037, allocations: 1.875 kB / 446.7 MB, free: 1.352 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.737e-06/0.4037, allocations: 0 / 446.7 MB, free: 1.352 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.001307/0.405, allocations: 0.9028 MB / 447.6 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.92e-05/0.4051, allocations: 12.48 kB / 447.6 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001268/0.4052, allocations: 69.45 kB / 447.6 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005481/0.4058, allocations: 454.3 kB / 448.1 MB, free: 168 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.788e-05/0.4058, allocations: 25.66 kB / 448.1 MB, free: 156 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.217e-05/0.4059, allocations: 43.64 kB / 448.1 MB, free: 136 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007241/0.4066, allocations: 433.3 kB / 448.6 MB, free: 15.86 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.375e-05/0.4066, allocations: 3.469 kB / 448.6 MB, free: 15.86 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.775e-05/0.4067, allocations: 11.72 kB / 448.6 MB, free: 15.85 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.161e-05/0.4067, allocations: 10.78 kB / 448.6 MB, free: 15.84 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006056/0.4073, allocations: 312.5 kB / 448.9 MB, free: 15.7 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002247/0.4096, allocations: 1.552 MB / 450.5 MB, free: 14.46 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000466/0.4101, allocations: 237.5 kB / 450.7 MB, free: 14.34 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002613/0.4103, allocations: 147.6 kB / 450.8 MB, free: 14.26 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.845e-05/0.4104, allocations: 3.578 kB / 450.8 MB, free: 14.26 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004736/0.4109, allocations: 257.2 kB / 451.1 MB, free: 14.08 MB / 334.1 MB Notification: Performance of pre-optimization done (n=33): time 1.763e-06/0.4109, allocations: 0 / 451.1 MB, free: 14.08 MB / 334.1 MB Notification: Performance of matching and sorting (n=33): time 0.001094/0.412, allocations: 0.5542 MB / 451.6 MB, free: 13.79 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.685e-05/0.4121, allocations: 106.9 kB / 451.7 MB, free: 13.67 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006325/0.4127, allocations: 0.5174 MB / 452.3 MB, free: 13.36 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.231e-05/0.4127, allocations: 31.83 kB / 452.3 MB, free: 13.32 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002155/0.413, allocations: 274.2 kB / 452.6 MB, free: 13.08 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001105/0.4131, allocations: 118.7 kB / 452.7 MB, free: 12.98 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001524/0.4132, allocations: 95.14 kB / 452.8 MB, free: 12.92 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001765/0.4134, allocations: 365.8 kB / 453.1 MB, free: 12.57 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002834/0.4137, allocations: 141.4 kB / 453.3 MB, free: 12.51 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004811/0.4142, allocations: 287.5 kB / 453.5 MB, free: 12.26 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00196/0.4162, allocations: 0.9057 MB / 454.4 MB, free: 11.62 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.4162, allocations: 5.156 kB / 454.5 MB, free: 11.62 MB / 334.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001022/0.4172, allocations: 0.6141 MB / 455.1 MB, free: 11.3 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.276e-05/0.4173, allocations: 38.47 kB / 455.1 MB, free: 11.27 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.076e-05/0.4173, allocations: 7.844 kB / 455.1 MB, free: 11.27 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.989e-05/0.4173, allocations: 11.75 kB / 455.1 MB, free: 11.26 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000439/0.4178, allocations: 110.9 kB / 455.2 MB, free: 11.23 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.518e-05/0.4178, allocations: 10.25 kB / 455.2 MB, free: 11.23 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002617/0.4181, allocations: 59.39 kB / 455.3 MB, free: 11.19 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.95e-05/0.4181, allocations: 25.2 kB / 455.3 MB, free: 11.18 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.0003234/0.4185, allocations: 254.3 kB / 455.6 MB, free: 10.97 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001136/0.4186, allocations: 56.14 kB / 455.6 MB, free: 10.94 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008844/0.4195, allocations: 0.4911 MB / 456.1 MB, free: 10.67 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.4195, allocations: 2.656 kB / 456.1 MB, free: 10.67 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.4195, allocations: 1.344 kB / 456.1 MB, free: 10.67 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.4195, allocations: 3.984 kB / 456.1 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004876/0.42, allocations: 455 kB / 456.6 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.42, allocations: 0 / 456.6 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003854/0.4204, allocations: 69.92 kB / 456.6 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.309e-06/0.4204, allocations: 5.484 kB / 456.6 MB, free: 10.26 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.04e-05/0.4205, allocations: 19.64 kB / 456.7 MB, free: 10.25 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.4205, allocations: 1.5 kB / 456.7 MB, free: 10.25 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.4205, allocations: 7.938 kB / 456.7 MB, free: 10.24 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001098/0.4216, allocations: 0.6619 MB / 457.3 MB, free: 9.887 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001102/0.4217, allocations: 124.2 kB / 457.5 MB, free: 9.762 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.625e-05/0.4218, allocations: 22.48 kB / 457.5 MB, free: 9.746 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001569/0.422, allocations: 15.95 kB / 457.5 MB, free: 9.738 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.592e-05/0.4221, allocations: 26.22 kB / 457.5 MB, free: 9.723 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.201e-05/0.4221, allocations: 9.469 kB / 457.5 MB, free: 9.723 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000482/0.4226, allocations: 367.7 kB / 457.9 MB, free: 9.512 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.4226, allocations: 1.188 kB / 457.9 MB, free: 9.512 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004987/0.4231, allocations: 112 kB / 458 MB, free: 9.488 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.001049/0.4242, allocations: 466.4 kB / 458.5 MB, free: 9.184 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008359/0.425, allocations: 494 kB / 458.9 MB, free: 8.93 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.425, allocations: 3.938 kB / 458.9 MB, free: 8.926 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003727/0.4254, allocations: 262.1 kB / 459.2 MB, free: 8.766 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004382/0.4258, allocations: 67.06 kB / 459.3 MB, free: 8.734 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001712/0.4276, allocations: 1.003 MB / 460.3 MB, free: 8.074 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005443/0.4281, allocations: 0.8703 MB / 461.1 MB, free: 7.176 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002465/0.4284, allocations: 103.4 kB / 461.2 MB, free: 7.07 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.374e-05/0.4285, allocations: 39.44 kB / 461.3 MB, free: 7.035 MB / 334.1 MB Notification: Performance of SimCode: time 4.21e-07/0.4285, allocations: 0 / 461.3 MB, free: 7.035 MB / 334.1 MB Notification: Performance of Templates: time 0.01109/0.4396, allocations: 5.144 MB / 466.4 MB, free: 1.891 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)