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.001316/0.001316, allocations: 106.6 kB / 16.27 MB, free: 5.984 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.001336/0.001336, allocations: 189 kB / 17.2 MB, free: 5.609 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.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05539/0.05539, allocations: 10.74 MB / 281.2 MB, free: 1.371 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.001514/0.001514, allocations: 67.89 kB / 341.2 MB, free: 5.191 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2029/0.2045, allocations: 49 MB / 390.2 MB, free: 49.68 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestP_tracking): time 0.004506/0.209, allocations: 2.355 MB / 392.6 MB, free: 48.02 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002475/0.2115, allocations: 1.322 MB / 393.9 MB, free: 47.11 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002803/0.2119, allocations: 13.38 kB / 393.9 MB, free: 47.1 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007011/0.2126, allocations: 209 kB / 394.1 MB, free: 47.03 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.0003793/0.213, allocations: 168.2 kB / 394.3 MB, free: 46.95 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008136/0.2138, allocations: 351 kB / 394.6 MB, free: 46.78 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005146/0.2143, allocations: 0.5401 MB / 395.2 MB, free: 46.55 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001621/0.2145, allocations: 91.34 kB / 395.2 MB, free: 46.5 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002097/0.2147, allocations: 201 kB / 395.4 MB, free: 46.41 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002687/0.215, allocations: 217.3 kB / 395.7 MB, free: 46.32 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.265e-05/0.2151, allocations: 27.5 kB / 395.7 MB, free: 46.32 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002542/0.2153, allocations: 137.1 kB / 395.8 MB, free: 46.29 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001399/0.2155, allocations: 134.8 kB / 395.9 MB, free: 46.23 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001525/0.2157, allocations: 187.9 kB / 396.1 MB, free: 46.09 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005255/0.2162, allocations: 499 kB / 396.6 MB, free: 45.89 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.2162, allocations: 0 / 396.6 MB, free: 45.89 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.2162, allocations: 0.6562 kB / 396.6 MB, free: 45.89 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.834e-06/0.2162, allocations: 5.344 kB / 396.6 MB, free: 45.88 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.001138/0.2174, allocations: 0.8383 MB / 397.5 MB, free: 45.21 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.513e-05/0.2174, allocations: 12.23 kB / 397.5 MB, free: 45.2 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.948e-05/0.2175, allocations: 55.22 kB / 397.5 MB, free: 45.18 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004507/0.218, allocations: 416 kB / 397.9 MB, free: 44.86 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.653e-05/0.218, allocations: 24.91 kB / 398 MB, free: 44.85 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.628e-05/0.2181, allocations: 32.94 kB / 398 MB, free: 44.84 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005756/0.2186, allocations: 373.7 kB / 398.4 MB, free: 44.66 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.101e-05/0.2187, allocations: 5.469 kB / 398.4 MB, free: 44.66 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.328e-05/0.2187, allocations: 20.7 kB / 398.4 MB, free: 44.64 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.283e-05/0.2187, allocations: 10.72 kB / 398.4 MB, free: 44.64 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004505/0.2192, allocations: 261.8 kB / 398.6 MB, free: 44.56 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001635/0.2208, allocations: 1.387 MB / 400 MB, free: 43.51 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005114/0.2214, allocations: 204.7 kB / 400.2 MB, free: 43.41 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000198/0.2216, allocations: 119.3 kB / 400.3 MB, free: 43.35 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.334e-05/0.2216, allocations: 3.188 kB / 400.4 MB, free: 43.35 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000319/0.2219, allocations: 223.9 kB / 400.6 MB, free: 43.18 MB / 318.1 MB Notification: Performance of pre-optimization done (n=28): time 2.816e-06/0.222, allocations: 0 / 400.6 MB, free: 43.18 MB / 318.1 MB Notification: Performance of matching and sorting (n=28): time 0.0008163/0.2228, allocations: 485.2 kB / 401 MB, free: 42.94 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.813e-05/0.2228, allocations: 107 kB / 401.1 MB, free: 42.82 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004463/0.2233, allocations: 487.4 kB / 401.6 MB, free: 42.54 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.228e-05/0.2233, allocations: 32.02 kB / 401.7 MB, free: 42.5 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001299/0.2235, allocations: 255.1 kB / 401.9 MB, free: 42.28 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.291e-05/0.2235, allocations: 87.17 kB / 402 MB, free: 42.2 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.886e-05/0.2236, allocations: 77.94 kB / 402.1 MB, free: 42.15 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.713e-05/0.2237, allocations: 364.5 kB / 402.4 MB, free: 41.8 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001945/0.2239, allocations: 113.6 kB / 402.5 MB, free: 41.75 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002333/0.2241, allocations: 233.8 kB / 402.8 MB, free: 41.55 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001323/0.2255, allocations: 0.6968 MB / 403.5 MB, free: 41.07 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.2255, allocations: 0.9375 kB / 403.5 MB, free: 41.07 MB / 318.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0007163/0.2262, allocations: 0.5006 MB / 404 MB, free: 40.8 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.731e-05/0.2263, allocations: 43.25 kB / 404 MB, free: 40.76 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.887e-06/0.2263, allocations: 3.062 kB / 404 MB, free: 40.76 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.878e-05/0.2263, allocations: 6.469 kB / 404 MB, free: 40.76 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002821/0.2266, allocations: 86.8 kB / 404.1 MB, free: 40.73 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.175e-05/0.2266, allocations: 8.531 kB / 404.1 MB, free: 40.73 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001947/0.2268, allocations: 48.45 kB / 404.2 MB, free: 40.7 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.945e-05/0.2268, allocations: 17.53 kB / 404.2 MB, free: 40.69 MB / 318.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.0002595/0.2271, allocations: 234.9 kB / 404.4 MB, free: 40.49 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.163e-05/0.2272, allocations: 50.22 kB / 404.4 MB, free: 40.46 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006696/0.2279, allocations: 440.4 kB / 404.9 MB, free: 40.23 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.2279, allocations: 6.359 kB / 404.9 MB, free: 40.22 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.2279, allocations: 5.062 kB / 404.9 MB, free: 40.22 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.87e-06/0.2279, allocations: 0 / 404.9 MB, free: 40.22 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003309/0.2282, allocations: 420.4 kB / 405.3 MB, free: 39.86 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.2282, allocations: 0 / 405.3 MB, free: 39.86 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002417/0.2285, allocations: 45.44 kB / 405.3 MB, free: 39.85 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.389e-06/0.2285, allocations: 5.406 kB / 405.3 MB, free: 39.85 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.781e-05/0.2285, allocations: 9.375 kB / 405.4 MB, free: 39.84 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/0.2285, allocations: 1.531 kB / 405.4 MB, free: 39.84 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.2285, allocations: 3.984 kB / 405.4 MB, free: 39.84 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008368/0.2294, allocations: 0.5836 MB / 405.9 MB, free: 39.52 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.483e-05/0.2295, allocations: 127.3 kB / 406.1 MB, free: 39.39 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.184e-05/0.2295, allocations: 8.906 kB / 406.1 MB, free: 39.39 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001413/0.2297, allocations: 19.58 kB / 406.1 MB, free: 39.38 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.448e-05/0.2298, allocations: 24.44 kB / 406.1 MB, free: 39.36 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.776e-05/0.2298, allocations: 11.97 kB / 406.1 MB, free: 39.36 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003266/0.2301, allocations: 341.5 kB / 406.5 MB, free: 39.16 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2301, allocations: 0 / 406.5 MB, free: 39.16 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004375/0.2306, allocations: 100.1 kB / 406.6 MB, free: 39.14 MB / 318.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.0009824/0.2316, allocations: 454.4 kB / 407 MB, free: 38.94 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006565/0.2322, allocations: 430.7 kB / 407.4 MB, free: 38.71 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.2323, allocations: 1.188 kB / 407.4 MB, free: 38.71 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002646/0.2325, allocations: 233.9 kB / 407.7 MB, free: 38.56 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000411/0.2329, allocations: 72.42 kB / 407.7 MB, free: 38.52 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001134/0.2341, allocations: 0.8686 MB / 408.6 MB, free: 37.95 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002096/0.2343, allocations: 0.8496 MB / 409.4 MB, free: 37.07 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.84e-05/0.2344, allocations: 35.42 kB / 409.5 MB, free: 37.04 MB / 318.1 MB Notification: Performance of SimCode: time 2.61e-07/0.2344, allocations: 7.938 kB / 409.5 MB, free: 37.03 MB / 318.1 MB Notification: Performance of Templates: time 0.006871/0.2413, allocations: 5.931 MB / 415.4 MB, free: 31.1 MB / 318.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)