Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI.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.Blocks.Examples.TestTrackingI,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI") translateModel(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001244/0.001244, allocations: 105 kB / 16.35 MB, free: 5.824 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.00116/0.00116, allocations: 189.4 kB / 17.29 MB, free: 5.48 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.6/1.6, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.07616/0.07616, allocations: 10.74 MB / 281.3 MB, free: 1.305 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.002895/0.002895, allocations: 68.11 kB / 342 MB, free: 4.449 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3085/0.3115, allocations: 49.01 MB / 391 MB, free: 49.91 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI): time 0.003019/0.3145, allocations: 1.754 MB / 392.7 MB, free: 48.69 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009673/0.3155, allocations: 0.6429 MB / 393.4 MB, free: 48.23 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.863e-05/0.3156, allocations: 6.719 kB / 393.4 MB, free: 48.23 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001163/0.3158, allocations: 18.22 kB / 393.4 MB, free: 48.21 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.88e-05/0.3159, allocations: 33.75 kB / 393.4 MB, free: 48.19 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002746/0.3161, allocations: 95.27 kB / 393.5 MB, free: 48.13 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002662/0.3164, allocations: 198.1 kB / 393.7 MB, free: 48.05 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001373/0.3166, allocations: 39.23 kB / 393.8 MB, free: 48.03 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001256/0.3167, allocations: 92.83 kB / 393.9 MB, free: 47.98 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001482/0.3168, allocations: 84.56 kB / 393.9 MB, free: 47.95 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.898e-05/0.3169, allocations: 15.12 kB / 394 MB, free: 47.95 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.304e-05/0.3169, allocations: 15.12 kB / 394 MB, free: 47.95 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.258e-05/0.317, allocations: 42.41 kB / 394 MB, free: 47.92 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001036/0.3171, allocations: 76.72 kB / 394.1 MB, free: 47.87 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002521/0.3174, allocations: 174.3 kB / 394.3 MB, free: 47.79 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.3174, allocations: 5.375 kB / 394.3 MB, free: 47.79 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.993e-06/0.3174, allocations: 0 / 394.3 MB, free: 47.79 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.176e-06/0.3174, allocations: 0.6094 kB / 394.3 MB, free: 47.79 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.001076/0.3185, allocations: 0.5673 MB / 394.8 MB, free: 47.29 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.093e-05/0.3185, allocations: 13.14 kB / 394.8 MB, free: 47.29 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.894e-05/0.3186, allocations: 23.94 kB / 394.9 MB, free: 47.28 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000363/0.319, allocations: 260 kB / 395.1 MB, free: 47.04 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.913e-05/0.319, allocations: 64.47 kB / 395.2 MB, free: 46.97 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.469e-05/0.3191, allocations: 14.05 kB / 395.2 MB, free: 46.97 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005147/0.3196, allocations: 196.3 kB / 395.4 MB, free: 46.87 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.167e-05/0.3196, allocations: 1.156 kB / 395.4 MB, free: 46.87 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.058e-05/0.3197, allocations: 5.797 kB / 395.4 MB, free: 46.87 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.465e-06/0.3197, allocations: 2.5 kB / 395.4 MB, free: 46.87 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006093/0.3203, allocations: 159.5 kB / 395.6 MB, free: 46.83 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009902/0.3213, allocations: 0.6393 MB / 396.2 MB, free: 46.31 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006571/0.322, allocations: 158.7 kB / 396.4 MB, free: 46.26 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000302/0.3223, allocations: 88.77 kB / 396.4 MB, free: 46.23 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.959e-05/0.3223, allocations: 1.875 kB / 396.4 MB, free: 46.23 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000456/0.3228, allocations: 162.2 kB / 396.6 MB, free: 46.16 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 1.663e-06/0.3228, allocations: 4 kB / 396.6 MB, free: 46.15 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.001043/0.3238, allocations: 293.9 kB / 396.9 MB, free: 46.07 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.739e-05/0.3239, allocations: 58.69 kB / 396.9 MB, free: 46 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000212/0.3241, allocations: 200.2 kB / 397.1 MB, free: 45.86 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.561e-05/0.3241, allocations: 28.89 kB / 397.2 MB, free: 45.83 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.762e-05/0.3242, allocations: 135.6 kB / 397.3 MB, free: 45.71 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.715e-05/0.3243, allocations: 44.84 kB / 397.3 MB, free: 45.67 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.074e-05/0.3244, allocations: 43.72 kB / 397.4 MB, free: 45.64 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.332e-05/0.3244, allocations: 329.7 kB / 397.7 MB, free: 45.32 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003377/0.3248, allocations: 99.45 kB / 397.8 MB, free: 45.3 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003393/0.3251, allocations: 141.4 kB / 397.9 MB, free: 45.21 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006388/0.3258, allocations: 271.5 kB / 398.2 MB, free: 45.04 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.3258, allocations: 0 / 398.2 MB, free: 45.04 MB / 318.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0008365/0.3266, allocations: 345.2 kB / 398.6 MB, free: 44.88 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.635e-05/0.3267, allocations: 66.31 kB / 398.6 MB, free: 44.81 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.081e-05/0.3268, allocations: 1.969 kB / 398.6 MB, free: 44.81 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.017e-05/0.3268, allocations: 2.156 kB / 398.6 MB, free: 44.81 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004651/0.3273, allocations: 59.95 kB / 398.7 MB, free: 44.8 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.39e-05/0.3273, allocations: 6.453 kB / 398.7 MB, free: 44.8 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002976/0.3276, allocations: 48.98 kB / 398.7 MB, free: 44.79 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.259e-05/0.3276, allocations: 12.45 kB / 398.7 MB, free: 44.78 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition2,TrackRef.count,$PRE.TrackRef.count,TrackRef.T_start,$PRE.TrackRef.T_start,TSsignal.pulseStart,$PRE.TSsignal.pulseStart,Itr.ts,Input.count,$PRE.Input.count,Input.T_start,$PRE.Input.T_start,$whenCondition1,$whenCondition3,I.TS_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 2 * 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.0001478/0.3278, allocations: 132.7 kB / 398.9 MB, free: 44.65 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.776e-05/0.3278, allocations: 19.62 kB / 398.9 MB, free: 44.64 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.764e-05/0.3279, allocations: 24.44 kB / 398.9 MB, free: 44.62 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.033e-06/0.3279, allocations: 2 kB / 398.9 MB, free: 44.62 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.157e-06/0.3279, allocations: 0 / 398.9 MB, free: 44.62 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.194e-06/0.3279, allocations: 5.359 kB / 398.9 MB, free: 44.62 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000329/0.3283, allocations: 245 kB / 399.2 MB, free: 44.4 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.3283, allocations: 1.125 kB / 399.2 MB, free: 44.4 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004098/0.3287, allocations: 51.25 kB / 399.2 MB, free: 44.39 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/0.3287, allocations: 1.188 kB / 399.2 MB, free: 44.39 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.114e-05/0.3287, allocations: 2.562 kB / 399.2 MB, free: 44.39 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.3288, allocations: 1.062 kB / 399.2 MB, free: 44.39 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/0.3288, allocations: 0 / 399.2 MB, free: 44.39 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001112/0.3299, allocations: 351.5 kB / 399.6 MB, free: 44.24 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.947e-05/0.33, allocations: 93.42 kB / 399.7 MB, free: 44.13 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.581e-05/0.33, allocations: 5.438 kB / 399.7 MB, free: 44.13 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002153/0.3302, allocations: 29.86 kB / 399.7 MB, free: 44.12 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001107/0.3303, allocations: 30.95 kB / 399.7 MB, free: 44.1 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.481e-05/0.3304, allocations: 6.438 kB / 399.7 MB, free: 44.09 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001321/0.3305, allocations: 142.9 kB / 399.9 MB, free: 43.99 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3305, allocations: 1.188 kB / 399.9 MB, free: 43.99 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002706/0.3308, allocations: 42.62 kB / 399.9 MB, free: 43.98 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (I.y,Itr.y) * Number of discrete variables: 9 ($whenCondition3,$whenCondition2,$whenCondition1,Input.T_start,Input.count,Itr.ts,TSsignal.pulseStart,TrackRef.T_start,TrackRef.count) * Number of discrete states: 2 (Input.count,TrackRef.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001171/0.3309, allocations: 101.8 kB / 400 MB, free: 43.89 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0007298/0.3316, allocations: 327.2 kB / 400.3 MB, free: 43.66 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.3317, allocations: 1.188 kB / 400.3 MB, free: 43.66 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003253/0.332, allocations: 101.4 kB / 400.4 MB, free: 43.62 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002821/0.3323, allocations: 33.84 kB / 400.5 MB, free: 43.6 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007054/0.333, allocations: 334.6 kB / 400.8 MB, free: 43.34 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001703/0.3332, allocations: 0.7218 MB / 401.5 MB, free: 42.63 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 8.4e-05/0.3333, allocations: 19.3 kB / 401.5 MB, free: 42.62 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.426e-05/0.3333, allocations: 16.91 kB / 401.5 MB, free: 42.61 MB / 318.1 MB Notification: Performance of SimCode: time 3.9e-07/0.3333, allocations: 5.719 kB / 401.6 MB, free: 42.61 MB / 318.1 MB Notification: Performance of Templates: time 0.005736/0.3391, allocations: 2.383 MB / 403.9 MB, free: 41.44 MB / 318.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI.makefile (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI.sim & ./IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI.pipe 2>&1)