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 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.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.01027/0.01027, allocations: 100.1 kB / 15.73 MB, free: 6.008 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.00168/0.00168, allocations: 197.3 kB / 16.68 MB, free: 5.93 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.926/1.926, allocations: 205.1 MB / 222.5 MB, free: 4.523 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06047/0.06047, allocations: 10.74 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.001731/0.001731, allocations: 78.7 kB / 390.8 MB, free: 5.012 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4/0.4017, allocations: 49 MB / 439.9 MB, free: 5.352 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestI_tracking): time 0.004044/0.4058, allocations: 2.359 MB / 442.2 MB, free: 3.688 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002385/0.4083, allocations: 1.42 MB / 443.6 MB, free: 2.711 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002271/0.4085, allocations: 18.22 kB / 443.7 MB, free: 2.699 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006604/0.4092, allocations: 209.3 kB / 443.9 MB, free: 2.625 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.000414/0.4096, allocations: 162.5 kB / 444 MB, free: 2.551 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001047/0.4107, allocations: 392.8 kB / 444.4 MB, free: 2.355 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006525/0.4113, allocations: 0.5783 MB / 445 MB, free: 2.109 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000179/0.4115, allocations: 86.27 kB / 445.1 MB, free: 2.062 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000271/0.4118, allocations: 226.7 kB / 445.3 MB, free: 1.965 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003727/0.4122, allocations: 222.5 kB / 445.5 MB, free: 1.879 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.137e-05/0.4123, allocations: 29.69 kB / 445.5 MB, free: 1.879 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000302/0.4126, allocations: 155.9 kB / 445.7 MB, free: 1.84 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001581/0.4127, allocations: 129.7 kB / 445.8 MB, free: 1.781 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000169/0.4129, allocations: 207.2 kB / 446 MB, free: 1.633 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006654/0.4136, allocations: 0.5161 MB / 446.5 MB, free: 1.414 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.4136, allocations: 0 / 446.5 MB, free: 1.414 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.4136, allocations: 0.875 kB / 446.5 MB, free: 1.414 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.067e-06/0.4136, allocations: 0 / 446.5 MB, free: 1.414 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.001527/0.4152, allocations: 0.854 MB / 447.4 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.119e-05/0.4152, allocations: 13.92 kB / 447.4 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001371/0.4154, allocations: 54.34 kB / 447.4 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005345/0.4159, allocations: 432 kB / 447.9 MB, free: 324 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.017e-05/0.416, allocations: 75.69 kB / 447.9 MB, free: 252 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.811e-05/0.4161, allocations: 36.16 kB / 448 MB, free: 236 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008192/0.4169, allocations: 399 kB / 448.4 MB, free: 15.96 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.054e-05/0.4169, allocations: 5.125 kB / 448.4 MB, free: 15.96 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.543e-05/0.417, allocations: 11.5 kB / 448.4 MB, free: 15.95 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.274e-05/0.417, allocations: 6.656 kB / 448.4 MB, free: 15.95 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005352/0.4176, allocations: 267.4 kB / 448.7 MB, free: 15.83 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002433/0.42, allocations: 1.447 MB / 450.1 MB, free: 14.64 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005932/0.4206, allocations: 202.3 kB / 450.3 MB, free: 14.53 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002508/0.4209, allocations: 133.5 kB / 450.4 MB, free: 14.46 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.987e-05/0.4209, allocations: 2.688 kB / 450.4 MB, free: 14.46 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004355/0.4214, allocations: 220 kB / 450.6 MB, free: 14.3 MB / 334.1 MB Notification: Performance of pre-optimization done (n=27): time 2.355e-06/0.4214, allocations: 0 / 450.6 MB, free: 14.3 MB / 334.1 MB Notification: Performance of matching and sorting (n=27): time 0.001181/0.4226, allocations: 484 kB / 451.1 MB, free: 14.06 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.773e-05/0.4227, allocations: 110.9 kB / 451.2 MB, free: 13.93 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007827/0.4235, allocations: 495.4 kB / 451.7 MB, free: 13.64 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.683e-05/0.4236, allocations: 31.92 kB / 451.7 MB, free: 13.61 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002636/0.4238, allocations: 256.3 kB / 452 MB, free: 13.38 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001272/0.424, allocations: 90.23 kB / 452.1 MB, free: 13.3 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000168/0.4242, allocations: 79.33 kB / 452.2 MB, free: 13.25 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000195/0.4244, allocations: 359.9 kB / 452.5 MB, free: 12.9 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002522/0.4246, allocations: 114 kB / 452.6 MB, free: 12.85 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003876/0.425, allocations: 233.5 kB / 452.8 MB, free: 12.65 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00177/0.4268, allocations: 0.7463 MB / 453.6 MB, free: 12.13 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.191e-06/0.4268, allocations: 1.125 kB / 453.6 MB, free: 12.13 MB / 334.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008981/0.4277, allocations: 0.5077 MB / 454.1 MB, free: 11.86 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.435e-05/0.4278, allocations: 37.7 kB / 454.1 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.276e-05/0.4278, allocations: 7.578 kB / 454.1 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.997e-05/0.4278, allocations: 5.281 kB / 454.2 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005714/0.4284, allocations: 99.83 kB / 454.2 MB, free: 11.79 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.254e-05/0.4284, allocations: 4.531 kB / 454.3 MB, free: 11.79 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002384/0.4287, allocations: 48.14 kB / 454.3 MB, free: 11.76 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.471e-05/0.4287, allocations: 22.12 kB / 454.3 MB, free: 11.75 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 (45): * Single equations (assignments): 44 * 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.0003653/0.4291, allocations: 247.1 kB / 454.6 MB, free: 11.54 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.747e-05/0.4292, allocations: 46.44 kB / 454.6 MB, free: 11.52 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008883/0.4301, allocations: 444.5 kB / 455 MB, free: 11.28 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.118e-06/0.4301, allocations: 10.27 kB / 455.1 MB, free: 11.27 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.654e-06/0.4301, allocations: 0 / 455.1 MB, free: 11.27 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.846e-06/0.4301, allocations: 5.25 kB / 455.1 MB, free: 11.27 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006463/0.4308, allocations: 420.5 kB / 455.5 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.4308, allocations: 0 / 455.5 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006021/0.4314, allocations: 70.08 kB / 455.5 MB, free: 10.89 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.049e-06/0.4314, allocations: 1.438 kB / 455.5 MB, free: 10.89 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.39e-05/0.4315, allocations: 16.86 kB / 455.6 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.587e-06/0.4315, allocations: 1.125 kB / 455.6 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.4315, allocations: 0 / 455.6 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001147/0.4326, allocations: 0.6033 MB / 456.2 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001042/0.4327, allocations: 121.5 kB / 456.3 MB, free: 10.42 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.608e-05/0.4328, allocations: 17.59 kB / 456.3 MB, free: 10.41 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001458/0.433, allocations: 20.31 kB / 456.3 MB, free: 10.39 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.231e-05/0.4331, allocations: 12.02 kB / 456.3 MB, free: 10.39 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.241e-05/0.4331, allocations: 16.2 kB / 456.3 MB, free: 10.38 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004947/0.4336, allocations: 341.7 kB / 456.7 MB, free: 10.18 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4336, allocations: 0 / 456.7 MB, free: 10.18 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005539/0.4342, allocations: 112.1 kB / 456.8 MB, free: 10.15 MB / 334.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.001199/0.4354, allocations: 454 kB / 457.2 MB, free: 9.863 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008184/0.4362, allocations: 418.6 kB / 457.6 MB, free: 9.641 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.4362, allocations: 0 / 457.6 MB, free: 9.641 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003217/0.4366, allocations: 228.5 kB / 457.9 MB, free: 9.5 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004395/0.437, allocations: 76.64 kB / 457.9 MB, free: 9.461 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001491/0.4385, allocations: 0.8492 MB / 458.8 MB, free: 8.922 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004722/0.439, allocations: 0.8473 MB / 459.6 MB, free: 8.152 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002291/0.4392, allocations: 72.52 kB / 459.7 MB, free: 8.117 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.599e-05/0.4393, allocations: 36.23 kB / 459.7 MB, free: 8.105 MB / 334.1 MB Notification: Performance of SimCode: time 8.72e-07/0.4393, allocations: 0 / 459.7 MB, free: 8.105 MB / 334.1 MB Notification: Performance of Templates: time 0.01057/0.4499, allocations: 4.721 MB / 464.5 MB, free: 3.863 MB / 334.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)