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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005846/0.005846, allocations: 99.95 kB / 15.73 MB, free: 6.473 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.001042/0.001042, allocations: 194.8 kB / 16.67 MB, free: 6.379 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.221/1.221, allocations: 205.1 MB / 222.5 MB, free: 4.531 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05458/0.05458, allocations: 10.75 MB / 280.6 MB, free: 10.43 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.001458/0.001458, allocations: 76.67 kB / 390.8 MB, free: 5.043 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2172/0.2186, allocations: 49.02 MB / 439.9 MB, free: 5.355 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestP_tracking): time 0.003283/0.2219, allocations: 2.352 MB / 442.2 MB, free: 3.695 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001798/0.2238, allocations: 1.322 MB / 443.5 MB, free: 2.785 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002325/0.224, allocations: 10.28 kB / 443.5 MB, free: 2.781 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006392/0.2247, allocations: 212.8 kB / 443.8 MB, free: 2.703 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.0004165/0.2251, allocations: 162 kB / 443.9 MB, free: 2.629 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008619/0.226, allocations: 355.7 kB / 444.3 MB, free: 2.449 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007205/0.2267, allocations: 0.5414 MB / 444.8 MB, free: 2.219 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001663/0.2269, allocations: 83.78 kB / 444.9 MB, free: 2.176 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003042/0.2272, allocations: 207.7 kB / 445.1 MB, free: 2.086 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003015/0.2275, allocations: 219.4 kB / 445.3 MB, free: 1.996 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.428e-05/0.2276, allocations: 28.41 kB / 445.3 MB, free: 1.996 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002717/0.2279, allocations: 152.1 kB / 445.5 MB, free: 1.957 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001372/0.228, allocations: 125.8 kB / 445.6 MB, free: 1.898 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000171/0.2282, allocations: 192.7 kB / 445.8 MB, free: 1.762 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006182/0.2288, allocations: 0.5052 MB / 446.3 MB, free: 1.547 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.2288, allocations: 0.5156 kB / 446.3 MB, free: 1.547 MB / 318.1 MB Notification: Performance of FrontEnd: time 8.42e-07/0.2288, allocations: 0 / 446.3 MB, free: 1.547 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.584e-05/0.2289, allocations: 0 / 446.3 MB, free: 1.547 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001236/0.2301, allocations: 0.8389 MB / 447.1 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.029e-05/0.2301, allocations: 12.8 kB / 447.1 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001086/0.2302, allocations: 54.95 kB / 447.2 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004792/0.2307, allocations: 438.2 kB / 447.6 MB, free: 496 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.462e-05/0.2308, allocations: 21.91 kB / 447.6 MB, free: 488 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.548e-05/0.2308, allocations: 31.75 kB / 447.7 MB, free: 476 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005384/0.2314, allocations: 377.4 kB / 448 MB, free: 220 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.815e-05/0.2314, allocations: 9 kB / 448.1 MB, free: 212 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.925e-05/0.2314, allocations: 12.47 kB / 448.1 MB, free: 204 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.616e-06/0.2314, allocations: 6.906 kB / 448.1 MB, free: 204 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004201/0.2319, allocations: 258.3 kB / 448.3 MB, free: 84 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001794/0.2337, allocations: 1.379 MB / 449.7 MB, free: 14.94 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004559/0.2341, allocations: 206.1 kB / 449.9 MB, free: 14.83 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001969/0.2343, allocations: 119.5 kB / 450 MB, free: 14.77 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.587e-05/0.2344, allocations: 7.375 kB / 450 MB, free: 14.77 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003299/0.2347, allocations: 221.9 kB / 450.2 MB, free: 14.61 MB / 334.1 MB Notification: Performance of pre-optimization done (n=28): time 1.503e-06/0.2347, allocations: 3.938 kB / 450.2 MB, free: 14.6 MB / 334.1 MB Notification: Performance of matching and sorting (n=28): time 0.0008311/0.2356, allocations: 484.9 kB / 450.7 MB, free: 14.36 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.413e-05/0.2356, allocations: 116.2 kB / 450.8 MB, free: 14.23 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004779/0.2361, allocations: 490.9 kB / 451.3 MB, free: 13.94 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.012e-05/0.2362, allocations: 28.45 kB / 451.3 MB, free: 13.91 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001646/0.2363, allocations: 258.2 kB / 451.6 MB, free: 13.68 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.842e-05/0.2364, allocations: 88.86 kB / 451.7 MB, free: 13.6 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000101/0.2365, allocations: 76.56 kB / 451.8 MB, free: 13.55 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001226/0.2367, allocations: 360.4 kB / 452.1 MB, free: 13.2 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002088/0.2369, allocations: 113.6 kB / 452.2 MB, free: 13.15 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002691/0.2371, allocations: 221.7 kB / 452.4 MB, free: 12.96 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001373/0.2385, allocations: 0.7092 MB / 453.1 MB, free: 12.46 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.2385, allocations: 1 kB / 453.1 MB, free: 12.46 MB / 334.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0007283/0.2393, allocations: 0.4929 MB / 453.6 MB, free: 12.2 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.816e-05/0.2393, allocations: 43.03 kB / 453.7 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.2393, allocations: 7.5 kB / 453.7 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.895e-05/0.2394, allocations: 4.656 kB / 453.7 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002712/0.2396, allocations: 75.41 kB / 453.8 MB, free: 12.14 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.468e-05/0.2397, allocations: 13.64 kB / 453.8 MB, free: 12.14 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001853/0.2399, allocations: 47.27 kB / 453.8 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.943e-05/0.2399, allocations: 17.44 kB / 453.8 MB, free: 12.1 MB / 334.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: 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.0002436/0.2401, allocations: 235.4 kB / 454.1 MB, free: 11.9 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.517e-05/0.2402, allocations: 54.16 kB / 454.1 MB, free: 11.87 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007052/0.2409, allocations: 427 kB / 454.5 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.2409, allocations: 2.344 kB / 454.5 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.241, allocations: 9.5 kB / 454.6 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.241, allocations: 3.984 kB / 454.6 MB, free: 11.63 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003767/0.2413, allocations: 408.3 kB / 455 MB, free: 11.29 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.2414, allocations: 7.922 kB / 455 MB, free: 11.28 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002393/0.2416, allocations: 44.62 kB / 455 MB, free: 11.27 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.382e-06/0.2416, allocations: 5.156 kB / 455 MB, free: 11.27 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.986e-05/0.2417, allocations: 17.31 kB / 455 MB, free: 11.25 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.2417, allocations: 1.594 kB / 455 MB, free: 11.25 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.2417, allocations: 0 / 455 MB, free: 11.25 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008967/0.2426, allocations: 0.5953 MB / 455.6 MB, free: 10.92 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.412e-05/0.2427, allocations: 121.4 kB / 455.7 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.253e-05/0.2427, allocations: 18.42 kB / 455.8 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001352/0.2429, allocations: 11.55 kB / 455.8 MB, free: 10.78 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.357e-05/0.2429, allocations: 16.3 kB / 455.8 MB, free: 10.77 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.778e-05/0.243, allocations: 16.58 kB / 455.8 MB, free: 10.77 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003279/0.2433, allocations: 341.4 kB / 456.1 MB, free: 10.57 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2433, allocations: 0 / 456.1 MB, free: 10.57 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003754/0.2437, allocations: 107.5 kB / 456.2 MB, free: 10.54 MB / 334.1 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.0009195/0.2446, allocations: 460.6 kB / 456.7 MB, free: 10.24 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000603/0.2452, allocations: 403.4 kB / 457.1 MB, free: 10.03 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.2453, allocations: 0 / 457.1 MB, free: 10.03 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002777/0.2455, allocations: 222.4 kB / 457.3 MB, free: 9.891 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000379/0.2459, allocations: 73.22 kB / 457.4 MB, free: 9.852 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001054/0.247, allocations: 0.8096 MB / 458.2 MB, free: 9.34 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003461/0.2474, allocations: 0.8464 MB / 459 MB, free: 8.57 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001752/0.2475, allocations: 73.14 kB / 459.1 MB, free: 8.535 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.501e-05/0.2476, allocations: 39.69 kB / 459.1 MB, free: 8.52 MB / 334.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2476, allocations: 0 / 459.1 MB, free: 8.52 MB / 334.1 MB Notification: Performance of Templates: time 0.008094/0.2557, allocations: 4.658 MB / 463.8 MB, free: 4.527 MB / 334.1 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)