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.001327/0.001327, allocations: 105.9 kB / 16.27 MB, free: 6.348 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.001161/0.001161, allocations: 187.6 kB / 17.2 MB, free: 5.949 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.24/1.24, allocations: 205.1 MB / 223.1 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05564/0.05564, allocations: 10.73 MB / 281.2 MB, free: 1.383 MB / 222.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.002346/0.002346, allocations: 71.84 kB / 341.2 MB, free: 5.203 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2035/0.2059, allocations: 49 MB / 390.2 MB, free: 49.69 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestD_tracking): time 0.003174/0.2091, allocations: 2.368 MB / 392.6 MB, free: 48.03 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001865/0.2109, allocations: 1.427 MB / 394 MB, free: 47.05 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001584/0.2111, allocations: 17.97 kB / 394 MB, free: 47.04 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005982/0.2117, allocations: 210.5 kB / 394.2 MB, free: 46.97 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.000334/0.2121, allocations: 165.6 kB / 394.4 MB, free: 46.89 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008131/0.2129, allocations: 396.9 kB / 394.8 MB, free: 46.7 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005246/0.2134, allocations: 0.5987 MB / 395.4 MB, free: 46.43 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001541/0.2136, allocations: 79.2 kB / 395.5 MB, free: 46.39 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002226/0.2138, allocations: 226.4 kB / 395.7 MB, free: 46.3 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002663/0.2141, allocations: 234 kB / 395.9 MB, free: 46.21 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.299e-05/0.2142, allocations: 31.62 kB / 395.9 MB, free: 46.21 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002359/0.2144, allocations: 152.8 kB / 396.1 MB, free: 46.17 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001585/0.2146, allocations: 148.8 kB / 396.2 MB, free: 46.1 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001723/0.2148, allocations: 215.9 kB / 396.4 MB, free: 45.95 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005558/0.2153, allocations: 0.535 MB / 397 MB, free: 45.72 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.2154, allocations: 0 / 397 MB, free: 45.72 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.2154, allocations: 1.281 kB / 397 MB, free: 45.72 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.955e-06/0.2154, allocations: 0 / 397 MB, free: 45.72 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.001223/0.2166, allocations: 0.8809 MB / 397.9 MB, free: 45.03 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.543e-05/0.2166, allocations: 13.5 kB / 397.9 MB, free: 45.02 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001061/0.2168, allocations: 60.75 kB / 397.9 MB, free: 44.99 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004862/0.2172, allocations: 428.7 kB / 398.4 MB, free: 44.68 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.231e-05/0.2173, allocations: 27.64 kB / 398.4 MB, free: 44.66 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.72e-05/0.2174, allocations: 48.03 kB / 398.4 MB, free: 44.64 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006952/0.2181, allocations: 439.9 kB / 398.9 MB, free: 44.43 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.225e-05/0.2181, allocations: 2.031 kB / 398.9 MB, free: 44.43 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.764e-05/0.2181, allocations: 12.36 kB / 398.9 MB, free: 44.43 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.947e-06/0.2182, allocations: 8.188 kB / 398.9 MB, free: 44.43 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005775/0.2187, allocations: 314.2 kB / 399.2 MB, free: 44.34 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001912/0.2207, allocations: 1.555 MB / 400.7 MB, free: 43.12 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004095/0.2211, allocations: 245.1 kB / 401 MB, free: 42.99 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002183/0.2213, allocations: 148.2 kB / 401.1 MB, free: 42.92 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.559e-05/0.2214, allocations: 3.641 kB / 401.1 MB, free: 42.92 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003486/0.2217, allocations: 237.9 kB / 401.4 MB, free: 42.75 MB / 318.1 MB Notification: Performance of pre-optimization done (n=33): time 2.394e-06/0.2217, allocations: 4 kB / 401.4 MB, free: 42.75 MB / 318.1 MB Notification: Performance of matching and sorting (n=33): time 0.0009203/0.2227, allocations: 0.5579 MB / 401.9 MB, free: 42.46 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.569e-05/0.2227, allocations: 107.4 kB / 402 MB, free: 42.34 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004847/0.2232, allocations: 0.5171 MB / 402.5 MB, free: 42.03 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.567e-05/0.2232, allocations: 31.98 kB / 402.6 MB, free: 42 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001323/0.2234, allocations: 273.8 kB / 402.8 MB, free: 41.75 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.513e-05/0.2234, allocations: 114.8 kB / 403 MB, free: 41.66 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001156/0.2236, allocations: 98.22 kB / 403 MB, free: 41.59 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.207e-05/0.2236, allocations: 366.1 kB / 403.4 MB, free: 41.24 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002387/0.2239, allocations: 141.1 kB / 403.5 MB, free: 41.18 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002835/0.2242, allocations: 288 kB / 403.8 MB, free: 40.93 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001585/0.2258, allocations: 0.9013 MB / 404.7 MB, free: 40.3 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.2258, allocations: 5.156 kB / 404.7 MB, free: 40.3 MB / 318.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0008437/0.2266, allocations: 0.6059 MB / 405.3 MB, free: 39.99 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.279e-05/0.2267, allocations: 42.81 kB / 405.4 MB, free: 39.95 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.225e-06/0.2267, allocations: 5.375 kB / 405.4 MB, free: 39.95 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.913e-05/0.2267, allocations: 14 kB / 405.4 MB, free: 39.94 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004078/0.2271, allocations: 111 kB / 405.5 MB, free: 39.91 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.098e-05/0.2272, allocations: 6.531 kB / 405.5 MB, free: 39.91 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002225/0.2274, allocations: 58.95 kB / 405.6 MB, free: 39.88 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.641e-05/0.2274, allocations: 25.42 kB / 405.6 MB, free: 39.87 MB / 318.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.0002551/0.2277, allocations: 259.1 kB / 405.8 MB, free: 39.65 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.824e-05/0.2278, allocations: 51.97 kB / 405.9 MB, free: 39.62 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007568/0.2285, allocations: 497.6 kB / 406.4 MB, free: 39.35 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.18e-06/0.2286, allocations: 3.781 kB / 406.4 MB, free: 39.35 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.2286, allocations: 0 / 406.4 MB, free: 39.35 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.691e-06/0.2286, allocations: 7.984 kB / 406.4 MB, free: 39.34 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003685/0.2289, allocations: 455.1 kB / 406.8 MB, free: 38.96 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.774e-06/0.229, allocations: 0 / 406.8 MB, free: 38.96 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003772/0.2293, allocations: 63.14 kB / 406.9 MB, free: 38.95 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.486e-06/0.2294, allocations: 1.031 kB / 406.9 MB, free: 38.95 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.536e-05/0.2294, allocations: 27.92 kB / 406.9 MB, free: 38.93 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.265e-06/0.2294, allocations: 1.562 kB / 406.9 MB, free: 38.93 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.2294, allocations: 0 / 406.9 MB, free: 38.93 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009103/0.2303, allocations: 0.6683 MB / 407.6 MB, free: 38.57 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.58e-05/0.2304, allocations: 123.9 kB / 407.7 MB, free: 38.45 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.069e-05/0.2305, allocations: 18.73 kB / 407.7 MB, free: 38.43 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001685/0.2306, allocations: 20.58 kB / 407.8 MB, free: 38.42 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.651e-05/0.2307, allocations: 21.78 kB / 407.8 MB, free: 38.41 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.093e-05/0.2308, allocations: 13.38 kB / 407.8 MB, free: 38.41 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003298/0.2311, allocations: 364.6 kB / 408.2 MB, free: 38.2 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2311, allocations: 0 / 408.2 MB, free: 38.2 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004351/0.2316, allocations: 119.9 kB / 408.3 MB, free: 38.13 MB / 318.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.0009019/0.2325, allocations: 465.9 kB / 408.7 MB, free: 37.85 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006512/0.2331, allocations: 0.5144 MB / 409.2 MB, free: 37.32 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.2331, allocations: 4 kB / 409.2 MB, free: 37.32 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002466/0.2334, allocations: 256.2 kB / 409.5 MB, free: 37.05 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003948/0.2338, allocations: 84.84 kB / 409.6 MB, free: 36.98 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001085/0.2349, allocations: 1.046 MB / 410.6 MB, free: 35.9 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002113/0.2351, allocations: 0.8664 MB / 411.5 MB, free: 35.01 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.19e-05/0.2352, allocations: 43.42 kB / 411.5 MB, free: 34.96 MB / 318.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2352, allocations: 0 / 411.5 MB, free: 34.96 MB / 318.1 MB Notification: Performance of Templates: time 0.006822/0.242, allocations: 6.589 MB / 418.1 MB, free: 28.37 MB / 318.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)