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.0009813/0.0009816, allocations: 99.55 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.001001/0.001001, allocations: 177.3 kB / 15.94 MB, free: 228 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.283/1.283, allocations: 205.4 MB / 222.1 MB, free: 5.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.05506/0.05506, allocations: 10.74 MB / 281.1 MB, free: 10.42 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.0005112/0.0005112, allocations: 16.22 kB / 341.6 MB, free: 23.86 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08066/0.08118, allocations: 50.01 MB / 391.6 MB, free: 5.781 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestD_tracking): time 0.002451/0.08367, allocations: 1.964 MB / 393.6 MB, free: 3.805 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002007/0.08571, allocations: 1.326 MB / 394.9 MB, free: 2.469 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002066/0.08594, allocations: 11.88 kB / 394.9 MB, free: 2.457 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005754/0.08653, allocations: 167.5 kB / 395.1 MB, free: 2.293 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003253/0.08687, allocations: 143.5 kB / 395.2 MB, free: 2.152 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007936/0.08767, allocations: 323.3 kB / 395.5 MB, free: 1.836 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004974/0.08818, allocations: 356.4 kB / 395.9 MB, free: 1.484 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001411/0.08833, allocations: 65.19 kB / 395.9 MB, free: 1.414 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002763/0.08861, allocations: 187.3 kB / 396.1 MB, free: 1.23 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002823/0.0889, allocations: 203.2 kB / 396.3 MB, free: 1.031 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.713e-05/0.08897, allocations: 15.94 kB / 396.3 MB, free: 1.016 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002069/0.08919, allocations: 119.8 kB / 396.4 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001413/0.08934, allocations: 119.6 kB / 396.6 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.871e-05/0.08943, allocations: 93.39 kB / 396.6 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000376/0.08981, allocations: 391.4 kB / 397 MB, free: 308 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.934e-06/0.08983, allocations: 0 / 397 MB, free: 308 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.08983, allocations: 0 / 397 MB, free: 308 kB / 286.1 MB Notification: Performance of Transformations before backend: time 1.103e-05/0.08985, allocations: 4 kB / 397 MB, free: 304 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.001172/0.09103, allocations: 0.7989 MB / 397.8 MB, free: 15.44 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.09107, allocations: 11.97 kB / 397.8 MB, free: 15.43 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.891e-05/0.09118, allocations: 59.25 kB / 397.9 MB, free: 15.37 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005637/0.09175, allocations: 417.5 kB / 398.3 MB, free: 14.92 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.034e-05/0.09179, allocations: 28.59 kB / 398.3 MB, free: 14.89 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.997e-05/0.09185, allocations: 36 kB / 398.4 MB, free: 14.86 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000619/0.09248, allocations: 420.4 kB / 398.8 MB, free: 14.42 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.249e-05/0.09252, allocations: 19.83 kB / 398.8 MB, free: 14.4 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.708e-05/0.09256, allocations: 15.95 kB / 398.8 MB, free: 14.38 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.917e-06/0.09257, allocations: 8 kB / 398.8 MB, free: 14.38 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005336/0.09311, allocations: 318.4 kB / 399.1 MB, free: 14.07 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00215/0.09527, allocations: 1.567 MB / 400.7 MB, free: 12.42 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003912/0.09568, allocations: 235.1 kB / 400.9 MB, free: 12.18 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.101e-05/0.09573, allocations: 8.219 kB / 400.9 MB, free: 12.18 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003638/0.0961, allocations: 251.2 kB / 401.2 MB, free: 11.91 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 2.354e-06/0.09611, allocations: 0 / 401.2 MB, free: 11.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=33): time 0.0009505/0.09707, allocations: 0.6237 MB / 401.8 MB, free: 11.26 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.983e-05/0.09713, allocations: 106.8 kB / 401.9 MB, free: 11.13 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005169/0.09765, allocations: 0.5135 MB / 402.4 MB, free: 10.61 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.062e-05/0.09769, allocations: 33.7 kB / 402.5 MB, free: 10.57 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001755/0.09788, allocations: 272 kB / 402.7 MB, free: 10.3 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.92e-05/0.09797, allocations: 122.3 kB / 402.8 MB, free: 10.18 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.829e-05/0.098, allocations: 8 kB / 402.9 MB, free: 10.17 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001318/0.09813, allocations: 370.7 kB / 403.2 MB, free: 9.801 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002499/0.09839, allocations: 140.9 kB / 403.4 MB, free: 9.664 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003231/0.09872, allocations: 286.1 kB / 403.6 MB, free: 9.324 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003232/0.09906, allocations: 227.2 kB / 403.9 MB, free: 9.09 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.09907, allocations: 0 / 403.9 MB, free: 9.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0008492/0.09993, allocations: 0.6217 MB / 404.5 MB, free: 8.457 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.858e-05/0.09998, allocations: 37.69 kB / 404.5 MB, free: 8.414 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.275e-06/0.09999, allocations: 4 kB / 404.5 MB, free: 8.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.809e-05/0.1, allocations: 8 kB / 404.5 MB, free: 8.402 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004244/0.1004, allocations: 111.8 kB / 404.6 MB, free: 8.293 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.226e-05/0.1005, allocations: 4.469 kB / 404.6 MB, free: 8.289 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002198/0.1007, allocations: 63.52 kB / 404.7 MB, free: 8.227 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.55e-05/0.1007, allocations: 23.95 kB / 404.7 MB, free: 8.203 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.0003027/0.1011, allocations: 273.1 kB / 405 MB, free: 7.918 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.067e-05/0.1011, allocations: 47.44 kB / 405 MB, free: 7.871 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007923/0.1019, allocations: 0.4997 MB / 405.5 MB, free: 7.355 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.41e-06/0.1019, allocations: 4 kB / 405.5 MB, free: 7.352 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.1019, allocations: 0 / 405.5 MB, free: 7.352 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.542e-06/0.102, allocations: 3.984 kB / 405.5 MB, free: 7.348 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004254/0.1024, allocations: 457.1 kB / 406 MB, free: 6.852 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.754e-06/0.1024, allocations: 0 / 406 MB, free: 6.852 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003801/0.1028, allocations: 67.89 kB / 406.1 MB, free: 6.785 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.467e-06/0.1028, allocations: 0 / 406.1 MB, free: 6.785 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.656e-05/0.1028, allocations: 19.98 kB / 406.1 MB, free: 6.766 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.285e-06/0.1028, allocations: 0 / 406.1 MB, free: 6.766 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.1029, allocations: 4 kB / 406.1 MB, free: 6.762 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009753/0.1038, allocations: 0.6673 MB / 406.8 MB, free: 6.066 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001059/0.104, allocations: 120.5 kB / 406.9 MB, free: 5.93 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.452e-05/0.104, allocations: 19.98 kB / 406.9 MB, free: 5.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001637/0.1042, allocations: 23.98 kB / 406.9 MB, free: 5.887 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.832e-05/0.1043, allocations: 19.97 kB / 406.9 MB, free: 5.867 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.843e-05/0.1043, allocations: 12 kB / 406.9 MB, free: 5.855 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003703/0.1047, allocations: 362.8 kB / 407.3 MB, free: 5.504 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.814e-06/0.1047, allocations: 0 / 407.3 MB, free: 5.504 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004152/0.1051, allocations: 119.8 kB / 407.4 MB, free: 5.387 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.0009166/0.106, allocations: 458 kB / 407.9 MB, free: 5.031 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007187/0.1068, allocations: 491.9 kB / 408.3 MB, free: 4.539 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1068, allocations: 0 / 408.3 MB, free: 4.539 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003172/0.1071, allocations: 263.8 kB / 408.6 MB, free: 4.27 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003265/0.1075, allocations: 66.52 kB / 408.7 MB, free: 4.203 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001479/0.1089, allocations: 1.129 MB / 409.8 MB, free: 3.047 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000451/0.1094, allocations: 0.8859 MB / 410.7 MB, free: 2.137 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002517/0.1097, allocations: 103.3 kB / 410.8 MB, free: 2.035 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.826e-05/0.1098, allocations: 39.42 kB / 410.8 MB, free: 1.996 MB / 302.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1098, allocations: 0 / 410.8 MB, free: 1.996 MB / 302.1 MB Notification: Performance of Templates: time 0.008949/0.1187, allocations: 4.624 MB / 415.4 MB, free: 13.37 MB / 318.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: