Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO.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.TestTrackingFO,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO") translateModel(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001177/0.001177, allocations: 108.6 kB / 16.41 MB, free: 6.441 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.001203/0.001203, allocations: 185.6 kB / 17.34 MB, free: 5.746 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.405/1.405, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05707/0.05707, allocations: 10.73 MB / 281.3 MB, free: 1.301 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.001454/0.001454, allocations: 66.39 kB / 391.5 MB, free: 46 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08333/0.08479, allocations: 49.04 MB / 440.5 MB, free: 3.82 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO): time 0.002252/0.08708, allocations: 1.802 MB / 442.3 MB, free: 2 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007733/0.08787, allocations: 0.6477 MB / 443 MB, free: 1.344 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001096/0.08799, allocations: 11.88 kB / 443 MB, free: 1.332 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001039/0.08811, allocations: 19.73 kB / 443 MB, free: 1.312 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.785e-05/0.08819, allocations: 35.59 kB / 443 MB, free: 1.277 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002258/0.08842, allocations: 107.7 kB / 443.2 MB, free: 1.172 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001917/0.08862, allocations: 231.4 kB / 443.4 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001298/0.08876, allocations: 64.52 kB / 443.4 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.221e-05/0.08886, allocations: 91.62 kB / 443.5 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.93e-05/0.08896, allocations: 95.53 kB / 443.6 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.07e-05/0.089, allocations: 16 kB / 443.6 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.541e-05/0.08903, allocations: 20 kB / 443.7 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.536e-05/0.08907, allocations: 43.83 kB / 443.7 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.278e-05/0.08914, allocations: 91.45 kB / 443.8 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001513/0.08929, allocations: 203.2 kB / 444 MB, free: 336 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.0893, allocations: 3.984 kB / 444 MB, free: 332 kB / 318.1 MB Notification: Performance of FrontEnd: time 9.02e-07/0.08931, allocations: 3.938 kB / 444 MB, free: 328 kB / 318.1 MB Notification: Performance of Transformations before backend: time 5.16e-06/0.08932, allocations: 0 / 444 MB, free: 328 kB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0009305/0.09026, allocations: 0.5666 MB / 444.6 MB, free: 15.7 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.411e-05/0.0903, allocations: 15.89 kB / 444.6 MB, free: 15.68 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.161e-05/0.09037, allocations: 20.75 kB / 444.6 MB, free: 15.66 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003718/0.09074, allocations: 303.3 kB / 444.9 MB, free: 15.33 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.843e-05/0.09083, allocations: 97.66 kB / 445 MB, free: 15.21 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.023e-05/0.09088, allocations: 16.38 kB / 445 MB, free: 15.2 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004622/0.09135, allocations: 181.6 kB / 445.2 MB, free: 15.02 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/0.09137, allocations: 0 / 445.2 MB, free: 15.02 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.202e-05/0.09139, allocations: 4 kB / 445.2 MB, free: 15.01 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.985e-06/0.09141, allocations: 4 kB / 445.2 MB, free: 15.01 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005418/0.09195, allocations: 155.8 kB / 445.3 MB, free: 14.86 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001069/0.09303, allocations: 0.5624 MB / 445.9 MB, free: 14.24 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005037/0.09355, allocations: 142.5 kB / 446 MB, free: 14.09 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002604/0.09382, allocations: 84.92 kB / 446.1 MB, free: 14.01 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.331e-05/0.09385, allocations: 0 / 446.1 MB, free: 14.01 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003727/0.09423, allocations: 143.3 kB / 446.3 MB, free: 13.86 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.403e-06/0.09425, allocations: 0 / 446.3 MB, free: 13.86 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0009122/0.09516, allocations: 281.1 kB / 446.5 MB, free: 13.57 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.674e-05/0.09523, allocations: 59.34 kB / 446.6 MB, free: 13.5 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001918/0.09543, allocations: 207.1 kB / 446.8 MB, free: 13.29 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.526e-05/0.09546, allocations: 29.7 kB / 446.8 MB, free: 13.26 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.325e-05/0.09556, allocations: 152.2 kB / 447 MB, free: 13.11 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.313e-05/0.09561, allocations: 35.45 kB / 447 MB, free: 13.07 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.421e-05/0.09569, allocations: 41.7 kB / 447.1 MB, free: 13.02 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001187/0.09581, allocations: 334.8 kB / 447.4 MB, free: 12.69 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003058/0.09613, allocations: 79.94 kB / 447.5 MB, free: 12.61 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002932/0.09643, allocations: 110.6 kB / 447.6 MB, free: 12.49 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005273/0.09697, allocations: 203 kB / 447.8 MB, free: 12.28 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.09698, allocations: 0 / 447.8 MB, free: 12.28 MB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0006546/0.09764, allocations: 266.9 kB / 448 MB, free: 12 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.574e-05/0.09768, allocations: 34.8 kB / 448.1 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.0977, allocations: 8.094 kB / 448.1 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.526e-05/0.09772, allocations: 0 / 448.1 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007412/0.09846, allocations: 75.88 kB / 448.1 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.678e-06/0.09848, allocations: 3.984 kB / 448.2 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002201/0.09871, allocations: 39.81 kB / 448.2 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.913e-05/0.09874, allocations: 7.938 kB / 448.2 MB, free: 11.83 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,TrackRef.count,$PRE.TrackRef.count,TrackRef.T_start,$PRE.TrackRef.T_start,TSsignal.pulseStart,$PRE.TSsignal.pulseStart,FOaw.ts,$whenCondition2,FO.TS_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 18 * 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.000124/0.09887, allocations: 141.6 kB / 448.3 MB, free: 11.68 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.923e-05/0.0989, allocations: 15.81 kB / 448.4 MB, free: 11.67 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.713e-05/0.09896, allocations: 21.41 kB / 448.4 MB, free: 11.65 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.305e-06/0.09897, allocations: 0 / 448.4 MB, free: 11.65 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/0.09898, allocations: 3.984 kB / 448.4 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.09899, allocations: 0 / 448.4 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002529/0.09924, allocations: 273.4 kB / 448.6 MB, free: 11.33 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.09926, allocations: 4 kB / 448.6 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008266/0.1001, allocations: 71.94 kB / 448.7 MB, free: 11.25 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.837e-06/0.1001, allocations: 0 / 448.7 MB, free: 11.25 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.519e-05/0.1001, allocations: 0 / 448.7 MB, free: 11.25 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.1001, allocations: 0 / 448.7 MB, free: 11.25 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.1001, allocations: 7.984 kB / 448.7 MB, free: 11.25 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009127/0.1011, allocations: 312.6 kB / 449 MB, free: 10.92 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.036e-05/0.1011, allocations: 96.86 kB / 449.1 MB, free: 10.81 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.52e-05/0.1012, allocations: 8 kB / 449.1 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002077/0.1014, allocations: 24 kB / 449.2 MB, free: 10.78 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.287e-05/0.1015, allocations: 19.98 kB / 449.2 MB, free: 10.76 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.35e-05/0.1015, allocations: 7.984 kB / 449.2 MB, free: 10.75 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001147/0.1016, allocations: 144.6 kB / 449.3 MB, free: 10.61 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1016, allocations: 0 / 449.3 MB, free: 10.61 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002581/0.1019, allocations: 35.91 kB / 449.4 MB, free: 10.57 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (FOtr.Y,FOaw.Y,FO.Y) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,FOaw.ts,TSsignal.pulseStart,TrackRef.T_start,TrackRef.count) * Number of discrete states: 1 (TrackRef.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001158/0.102, allocations: 111.3 kB / 449.5 MB, free: 10.46 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000666/0.1027, allocations: 231.1 kB / 449.7 MB, free: 10.22 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.1027, allocations: 0 / 449.7 MB, free: 10.22 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002875/0.103, allocations: 99.92 kB / 449.8 MB, free: 10.12 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002644/0.1033, allocations: 28.61 kB / 449.8 MB, free: 10.09 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008221/0.1041, allocations: 407 kB / 450.2 MB, free: 9.672 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002684/0.1044, allocations: 0.7358 MB / 451 MB, free: 8.91 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.538e-05/0.1045, allocations: 23.42 kB / 451 MB, free: 8.887 MB / 334.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1045, allocations: 0 / 451 MB, free: 8.887 MB / 334.1 MB Notification: Performance of Templates: time 0.00417/0.1087, allocations: 2.446 MB / 453.4 MB, free: 6.441 MB / 334.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO.makefile (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO.sim & ./IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO.pipe 2>&1)