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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo", uses=false) Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.002/0.002001, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002368/0.002368, allocations: 195.7 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.336/1.336, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo): time 0.1636/0.1636, allocations: 11.15 MB / 301.5 MB, free: 1.316 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001322/0.001322, allocations: 63.89 kB / 364.6 MB, free: 10.82 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1022, allocations: 51.98 MB / 416.5 MB, free: 6.801 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestI_tracking): time 0.003723/0.1059, allocations: 2.456 MB / 419 MB, free: 4.324 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002435/0.1084, allocations: 1.525 MB / 420.5 MB, free: 2.793 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002829/0.1087, allocations: 15.88 kB / 420.5 MB, free: 2.777 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007058/0.1095, allocations: 223 kB / 420.8 MB, free: 2.559 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003731/0.1099, allocations: 167.2 kB / 420.9 MB, free: 2.395 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009343/0.1108, allocations: 446.5 kB / 421.4 MB, free: 1.961 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005486/0.1114, allocations: 0.6171 MB / 422 MB, free: 1.344 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001704/0.1116, allocations: 92.92 kB / 422.1 MB, free: 1.246 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002396/0.1118, allocations: 223.2 kB / 422.3 MB, free: 1.027 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002909/0.1121, allocations: 243 kB / 422.5 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.334e-05/0.1122, allocations: 32 kB / 422.5 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000238/0.1124, allocations: 155.8 kB / 422.7 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001649/0.1126, allocations: 131.6 kB / 422.8 MB, free: 488 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001823/0.1128, allocations: 214.6 kB / 423 MB, free: 272 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1783/0.2911, allocations: 0.5267 MB / 423.6 MB, free: 37.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.995e-06/0.2912, allocations: 0.7031 kB / 423.6 MB, free: 37.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.2912, allocations: 2.75 kB / 423.6 MB, free: 37.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.886e-05/0.2912, allocations: 0 / 423.6 MB, free: 37.57 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001358/0.2926, allocations: 0.8837 MB / 424.4 MB, free: 36.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.4e-05/0.2926, allocations: 11.83 kB / 424.5 MB, free: 36.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001142/0.2927, allocations: 66.66 kB / 424.5 MB, free: 36.95 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004463/0.2932, allocations: 427.1 kB / 424.9 MB, free: 36.69 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.853e-05/0.2933, allocations: 82.61 kB / 425 MB, free: 36.63 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.096e-05/0.2933, allocations: 42.64 kB / 425.1 MB, free: 36.62 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006071/0.2939, allocations: 458.8 kB / 425.5 MB, free: 36.5 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.947e-05/0.294, allocations: 4.844 kB / 425.5 MB, free: 36.5 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.357e-05/0.294, allocations: 13.25 kB / 425.5 MB, free: 36.5 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.787e-06/0.294, allocations: 8.969 kB / 425.5 MB, free: 36.5 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000434/0.2945, allocations: 291.5 kB / 425.8 MB, free: 36.5 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001903/0.2964, allocations: 1.853 MB / 427.7 MB, free: 35.45 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004232/0.2968, allocations: 197.8 kB / 427.9 MB, free: 35.43 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001938/0.297, allocations: 129.8 kB / 428 MB, free: 35.42 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.955e-05/0.2971, allocations: 3.062 kB / 428 MB, free: 35.42 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002968/0.2974, allocations: 219.2 kB / 428.2 MB, free: 35.34 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 2.164e-06/0.2974, allocations: 0.5625 kB / 428.2 MB, free: 35.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.0007657/0.2981, allocations: 499.2 kB / 428.7 MB, free: 35.24 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.305e-05/0.2982, allocations: 105.7 kB / 428.8 MB, free: 35.11 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004072/0.2986, allocations: 0.5163 MB / 429.3 MB, free: 34.98 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.324e-05/0.2986, allocations: 32.58 kB / 429.4 MB, free: 34.95 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001319/0.2988, allocations: 277 kB / 429.6 MB, free: 34.82 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.519e-05/0.2988, allocations: 93.81 kB / 429.7 MB, free: 34.76 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001067/0.299, allocations: 90.67 kB / 429.8 MB, free: 34.74 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.862e-05/0.2991, allocations: 365.8 kB / 430.2 MB, free: 34.43 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002067/0.2993, allocations: 122.9 kB / 430.3 MB, free: 34.43 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002606/0.2995, allocations: 278.1 kB / 430.6 MB, free: 34.25 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001342/0.3009, allocations: 0.7982 MB / 431.4 MB, free: 33.96 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.3009, allocations: 0 / 431.4 MB, free: 33.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0007428/0.3017, allocations: 0.5502 MB / 431.9 MB, free: 33.86 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.723e-05/0.3017, allocations: 37.75 kB / 431.9 MB, free: 33.83 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.126e-06/0.3017, allocations: 6.281 kB / 431.9 MB, free: 33.83 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.792e-05/0.3017, allocations: 7.531 kB / 432 MB, free: 33.83 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005715/0.3023, allocations: 105.2 kB / 432.1 MB, free: 33.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.491e-05/0.3023, allocations: 10.88 kB / 432.1 MB, free: 33.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002282/0.3026, allocations: 54.25 kB / 432.1 MB, free: 33.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.193e-05/0.3026, allocations: 20.41 kB / 432.1 MB, free: 33.8 MB / 350.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] processTrack.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] process.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real process.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] process.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 20 ($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.satLOW_in,R_track.satHIGH_in,R_track.ATreq_in,R.satLOW_in,R.satHIGH_in,R.ATreq_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 50 * 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.0003148/0.3029, allocations: 257.7 kB / 432.4 MB, free: 33.64 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.377e-05/0.303, allocations: 45.88 kB / 432.4 MB, free: 33.62 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006985/0.3037, allocations: 449 kB / 432.9 MB, free: 33.54 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.3037, allocations: 2.969 kB / 432.9 MB, free: 33.54 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.3037, allocations: 4 kB / 432.9 MB, free: 33.54 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.109e-06/0.3038, allocations: 3.375 kB / 432.9 MB, free: 33.54 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003578/0.3041, allocations: 442 kB / 433.3 MB, free: 33.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.3041, allocations: 3.219 kB / 433.3 MB, free: 33.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000578/0.3047, allocations: 61.62 kB / 433.4 MB, free: 33.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.797e-06/0.3047, allocations: 1.703 kB / 433.4 MB, free: 33.34 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.107e-05/0.3048, allocations: 16.69 kB / 433.4 MB, free: 33.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.967e-06/0.3048, allocations: 1.562 kB / 433.4 MB, free: 33.34 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.3048, allocations: 5.375 kB / 433.4 MB, free: 33.34 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007885/0.3056, allocations: 0.5975 MB / 434 MB, free: 33.2 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.382e-05/0.3057, allocations: 130.9 kB / 434.1 MB, free: 33.08 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.531e-05/0.3057, allocations: 10.28 kB / 434.1 MB, free: 33.08 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001487/0.3059, allocations: 13.41 kB / 434.2 MB, free: 33.08 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.86e-05/0.306, allocations: 26.36 kB / 434.2 MB, free: 33.08 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.965e-05/0.306, allocations: 15.17 kB / 434.2 MB, free: 33.08 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003188/0.3063, allocations: 361.3 kB / 434.5 MB, free: 32.99 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3064, allocations: 0 / 434.5 MB, free: 32.99 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004185/0.3068, allocations: 113.4 kB / 434.7 MB, free: 32.97 MB / 350.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 (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.001124/0.3079, allocations: 456.2 kB / 435.1 MB, free: 32.83 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007462/0.3087, allocations: 456.7 kB / 435.5 MB, free: 32.68 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.3087, allocations: 0 / 435.5 MB, free: 32.68 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002613/0.3089, allocations: 228.1 kB / 435.8 MB, free: 32.56 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004214/0.3094, allocations: 85.52 kB / 435.9 MB, free: 32.53 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001249/0.3106, allocations: 0.8992 MB / 436.8 MB, free: 32.03 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000268/0.3109, allocations: 0.8642 MB / 437.6 MB, free: 31.32 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002013/0.3111, allocations: 68.61 kB / 437.7 MB, free: 31.31 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.552e-05/0.3112, allocations: 42.69 kB / 437.7 MB, free: 31.3 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3112, allocations: 0 / 437.7 MB, free: 31.3 MB / 350.1 MB Notification: Performance of Templates: time 0.009245/0.3205, allocations: 4.771 MB / 442.5 MB, free: 30.9 MB / 350.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.makefile (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)