Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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) 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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(IndustrialControlSystems.Controllers.Examples.TestP_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking") translateModel(IndustrialControlSystems.Controllers.Examples.TestP_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001676/0.001677, allocations: 182.6 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05711/0.05711, allocations: 10.75 MB / 27.48 MB, free: 1.875 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.342/1.342, allocations: 205.1 MB / 235.7 MB, free: 11.74 MB / 202.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008508/0.0008509, allocations: 85.58 kB / 285.5 MB, free: 12.86 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 0.00103/0.00103, allocations: 52.14 kB / 345.3 MB, free: 0.9844 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2022/0.2033, allocations: 49.01 MB / 394.3 MB, free: 35.57 MB / 298.8 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestP_tracking): time 0.003061/0.2064, allocations: 2.395 MB / 396.7 MB, free: 33.16 MB / 298.8 MB Notification: Performance of NFInst.instExpressions: time 0.001771/0.2082, allocations: 1.334 MB / 398 MB, free: 31.82 MB / 298.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001571/0.2083, allocations: 11.88 kB / 398 MB, free: 31.8 MB / 298.8 MB Notification: Performance of NFTyping.typeComponents: time 0.0005851/0.2089, allocations: 195.3 kB / 398.2 MB, free: 31.61 MB / 298.8 MB Notification: Performance of NFTyping.typeBindings: time 0.0002652/0.2092, allocations: 139.5 kB / 398.4 MB, free: 31.48 MB / 298.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006225/0.2098, allocations: 320.6 kB / 398.7 MB, free: 31.17 MB / 298.8 MB Notification: Performance of NFFlatten.flatten: time 0.0004015/0.2103, allocations: 0.5146 MB / 399.2 MB, free: 30.65 MB / 298.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001872/0.2105, allocations: 73.06 kB / 399.3 MB, free: 30.57 MB / 298.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001697/0.2106, allocations: 195.1 kB / 399.5 MB, free: 30.38 MB / 298.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001974/0.2108, allocations: 211 kB / 399.7 MB, free: 30.17 MB / 298.8 MB Notification: Performance of NFPackage.collectConstants: time 4.613e-05/0.2109, allocations: 16 kB / 399.7 MB, free: 30.16 MB / 298.8 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001809/0.2111, allocations: 123.9 kB / 399.8 MB, free: 30.04 MB / 298.8 MB Notification: Performance of NFScalarize.scalarize: time 0.0001053/0.2112, allocations: 115.6 kB / 399.9 MB, free: 29.92 MB / 298.8 MB Notification: Performance of NFVerifyModel.verify: time 0.0001224/0.2113, allocations: 182.6 kB / 400.1 MB, free: 29.74 MB / 298.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0003635/0.2117, allocations: 488.5 kB / 400.6 MB, free: 29.27 MB / 298.8 MB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.2117, allocations: 4 kB / 400.6 MB, free: 29.26 MB / 298.8 MB Notification: Performance of FrontEnd: time 5.51e-07/0.2117, allocations: 0 / 400.6 MB, free: 29.26 MB / 298.8 MB Notification: Performance of Transformations before backend: time 5.44e-06/0.2117, allocations: 0 / 400.6 MB, free: 29.26 MB / 298.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001023/0.2128, allocations: 0.8299 MB / 401.4 MB, free: 28.37 MB / 298.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.608e-05/0.2128, allocations: 16.03 kB / 401.4 MB, free: 28.36 MB / 298.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.572e-05/0.2129, allocations: 60.2 kB / 401.5 MB, free: 28.3 MB / 298.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004214/0.2133, allocations: 402.5 kB / 401.9 MB, free: 27.86 MB / 298.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.757e-05/0.2133, allocations: 28.94 kB / 401.9 MB, free: 27.84 MB / 298.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.801e-05/0.2134, allocations: 36.06 kB / 401.9 MB, free: 27.8 MB / 298.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004729/0.2139, allocations: 379.7 kB / 402.3 MB, free: 27.41 MB / 298.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.809e-05/0.2139, allocations: 0 / 402.3 MB, free: 27.41 MB / 298.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.676e-05/0.2139, allocations: 12 kB / 402.3 MB, free: 27.39 MB / 298.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.968e-06/0.214, allocations: 8 kB / 402.3 MB, free: 27.39 MB / 298.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003996/0.2144, allocations: 262 kB / 402.6 MB, free: 27.13 MB / 298.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001448/0.2158, allocations: 1.387 MB / 404 MB, free: 25.67 MB / 298.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004373/0.2163, allocations: 202.6 kB / 404.2 MB, free: 25.46 MB / 298.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001673/0.2164, allocations: 125.5 kB / 404.3 MB, free: 25.34 MB / 298.8 MB Notification: Performance of preOpt evalFunc (simulation): time 3.297e-05/0.2165, allocations: 4 kB / 404.3 MB, free: 25.33 MB / 298.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002808/0.2168, allocations: 217.5 kB / 404.5 MB, free: 25.1 MB / 298.8 MB Notification: Performance of pre-optimization done (n=28): time 1.703e-06/0.2168, allocations: 0 / 404.5 MB, free: 25.1 MB / 298.8 MB Notification: Performance of matching and sorting (n=28): time 0.0007284/0.2175, allocations: 481.3 kB / 405 MB, free: 24.62 MB / 298.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.921e-05/0.2176, allocations: 106.8 kB / 405.1 MB, free: 24.49 MB / 298.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003879/0.218, allocations: 489.8 kB / 405.6 MB, free: 24 MB / 298.8 MB Notification: Performance of collectPreVariables (initialization): time 1.85e-05/0.218, allocations: 33.7 kB / 405.6 MB, free: 23.96 MB / 298.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001165/0.2181, allocations: 256.1 kB / 405.8 MB, free: 23.71 MB / 298.8 MB Notification: Performance of collectInitialBindings (initialization): time 4.688e-05/0.2182, allocations: 90.8 kB / 405.9 MB, free: 23.62 MB / 298.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.595e-05/0.2183, allocations: 81.59 kB / 406 MB, free: 23.54 MB / 298.8 MB Notification: Performance of setup shared object (initialization): time 8.373e-05/0.2184, allocations: 354.8 kB / 406.3 MB, free: 23.18 MB / 298.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001729/0.2185, allocations: 116.4 kB / 406.5 MB, free: 23.07 MB / 298.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002072/0.2188, allocations: 235.9 kB / 406.7 MB, free: 22.79 MB / 298.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001198/0.22, allocations: 0.7075 MB / 407.4 MB, free: 22.01 MB / 298.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.22, allocations: 0 / 407.4 MB, free: 22.01 MB / 298.8 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0005913/0.2206, allocations: 0.498 MB / 407.9 MB, free: 21.5 MB / 298.8 MB Notification: Performance of prepare postOptimizeDAE: time 3.362e-05/0.2206, allocations: 45.62 kB / 407.9 MB, free: 21.45 MB / 298.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.083e-06/0.2206, allocations: 4 kB / 407.9 MB, free: 21.45 MB / 298.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.574e-05/0.2207, allocations: 4 kB / 408 MB, free: 21.44 MB / 298.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002586/0.2209, allocations: 79.89 kB / 408 MB, free: 21.36 MB / 298.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.039e-05/0.2209, allocations: 8.344 kB / 408 MB, free: 21.36 MB / 298.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001744/0.2211, allocations: 51.52 kB / 408.1 MB, free: 21.3 MB / 298.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.409e-05/0.2212, allocations: 20 kB / 408.1 MB, free: 21.29 MB / 298.8 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: 14 * 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 (44): * Single equations (assignments): 43 * 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.0002101/0.2214, allocations: 240.3 kB / 408.3 MB, free: 21.04 MB / 298.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.899e-05/0.2214, allocations: 47.38 kB / 408.4 MB, free: 20.99 MB / 298.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005825/0.222, allocations: 448.5 kB / 408.8 MB, free: 20.54 MB / 298.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.222, allocations: 7.984 kB / 408.8 MB, free: 20.53 MB / 298.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.222, allocations: 0 / 408.8 MB, free: 20.53 MB / 298.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.222, allocations: 0 / 408.8 MB, free: 20.53 MB / 298.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003048/0.2224, allocations: 409.2 kB / 409.2 MB, free: 20.08 MB / 298.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.2224, allocations: 8 kB / 409.2 MB, free: 20.07 MB / 298.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002266/0.2226, allocations: 47.97 kB / 409.3 MB, free: 20.03 MB / 298.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.747e-06/0.2226, allocations: 3.938 kB / 409.3 MB, free: 20.02 MB / 298.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.863e-05/0.2226, allocations: 12 kB / 409.3 MB, free: 20.01 MB / 298.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.2227, allocations: 0 / 409.3 MB, free: 20.01 MB / 298.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.2227, allocations: 0 / 409.3 MB, free: 20.01 MB / 298.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004402/0.2271, allocations: 3.815 MB / 413.1 MB, free: 15.97 MB / 298.8 MB Notification: Performance of postOpt removeConstants (simulation): time 6.702e-05/0.2271, allocations: 132.5 kB / 413.2 MB, free: 15.82 MB / 298.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.568e-05/0.2272, allocations: 8 kB / 413.3 MB, free: 15.82 MB / 298.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001296/0.2273, allocations: 15.98 kB / 413.3 MB, free: 15.8 MB / 298.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.864e-05/0.2274, allocations: 27.84 kB / 413.3 MB, free: 15.77 MB / 298.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.481e-05/0.2274, allocations: 8 kB / 413.3 MB, free: 15.77 MB / 298.8 MB Notification: Performance of sorting global known variables: time 0.0002546/0.2277, allocations: 347.1 kB / 413.6 MB, free: 15.43 MB / 298.8 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2277, allocations: 0 / 413.6 MB, free: 15.43 MB / 298.8 MB Notification: Performance of remove unused functions: time 0.0004407/0.2282, allocations: 139.8 kB / 413.8 MB, free: 15.3 MB / 298.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (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 (25): * Single equations (assignments): 22 * 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.0008094/0.229, allocations: 448.6 kB / 414.2 MB, free: 14.88 MB / 298.8 MB Notification: Performance of simCode: created initialization part: time 0.0005001/0.2295, allocations: 423.5 kB / 414.6 MB, free: 14.45 MB / 298.8 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.2295, allocations: 0 / 414.6 MB, free: 14.45 MB / 298.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0002156/0.2297, allocations: 223.3 kB / 414.9 MB, free: 14.22 MB / 298.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003627/0.2301, allocations: 65.88 kB / 414.9 MB, free: 14.16 MB / 298.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001087/0.2312, allocations: 1.236 MB / 416.2 MB, free: 12.87 MB / 298.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002109/0.2314, allocations: 0.8662 MB / 417 MB, free: 11.98 MB / 298.8 MB Notification: Performance of simCode: alias equations: time 0.0001858/0.2316, allocations: 75.22 kB / 417.1 MB, free: 11.91 MB / 298.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.957e-05/0.2317, allocations: 35.42 kB / 417.1 MB, free: 11.88 MB / 298.8 MB Notification: Performance of SimCode: time 2.3e-07/0.2317, allocations: 0 / 417.1 MB, free: 11.88 MB / 298.8 MB Notification: Performance of Templates: time 0.007748/0.2394, allocations: 5.239 MB / 422.4 MB, free: 6.629 MB / 298.8 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.makefile (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.sim & ./IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.pipe 2>&1)