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.001197/0.001197, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001369/0.001369, allocations: 196.8 kB / 16.53 MB, free: 6.664 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.47/1.47, allocations: 205.1 MB / 222.4 MB, free: 4.602 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05654/0.05654, allocations: 10.74 MB / 280.5 MB, free: 10.5 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.001338/0.001338, allocations: 63.91 kB / 340.5 MB, free: 23.34 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0973/0.09865, allocations: 49.02 MB / 389.6 MB, free: 6.258 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO): time 0.002953/0.1016, allocations: 1.811 MB / 391.4 MB, free: 4.426 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009735/0.1026, allocations: 0.6554 MB / 392 MB, free: 3.762 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001015/0.1027, allocations: 11.94 kB / 392 MB, free: 3.75 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001156/0.1029, allocations: 27.67 kB / 392.1 MB, free: 3.723 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 8.825e-05/0.103, allocations: 35.66 kB / 392.1 MB, free: 3.688 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002689/0.1032, allocations: 99.8 kB / 392.2 MB, free: 3.59 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002525/0.1035, allocations: 227.4 kB / 392.4 MB, free: 3.367 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001454/0.1037, allocations: 56.62 kB / 392.5 MB, free: 3.316 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001181/0.1038, allocations: 95.62 kB / 392.6 MB, free: 3.223 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001126/0.1039, allocations: 91.47 kB / 392.7 MB, free: 3.133 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.713e-05/0.1039, allocations: 23.94 kB / 392.7 MB, free: 3.109 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.149e-05/0.104, allocations: 16 kB / 392.7 MB, free: 3.094 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.057e-05/0.1041, allocations: 47.83 kB / 392.7 MB, free: 3.047 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.443e-05/0.1041, allocations: 87.45 kB / 392.8 MB, free: 2.961 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001985/0.1044, allocations: 187.5 kB / 393 MB, free: 2.777 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.1044, allocations: 0 / 393 MB, free: 2.777 MB / 286.1 MB Notification: Performance of FrontEnd: time 9.42e-07/0.1044, allocations: 0 / 393 MB, free: 2.777 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.2e-06/0.1044, allocations: 8 kB / 393 MB, free: 2.77 MB / 286.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.0009828/0.1054, allocations: 0.555 MB / 393.6 MB, free: 2.16 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.967e-05/0.1054, allocations: 19.88 kB / 393.6 MB, free: 2.141 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.609e-05/0.1055, allocations: 28.66 kB / 393.6 MB, free: 2.113 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003163/0.1058, allocations: 283.2 kB / 393.9 MB, free: 1.797 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.5e-05/0.1059, allocations: 97.67 kB / 394 MB, free: 1.684 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.922e-05/0.1059, allocations: 16.36 kB / 394 MB, free: 1.668 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004389/0.1064, allocations: 189.6 kB / 394.2 MB, free: 1.477 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.065e-06/0.1064, allocations: 0 / 394.2 MB, free: 1.477 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.052e-05/0.1064, allocations: 4 kB / 394.2 MB, free: 1.473 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/0.1064, allocations: 0 / 394.2 MB, free: 1.473 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005003/0.1069, allocations: 155.8 kB / 394.3 MB, free: 1.32 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009763/0.1079, allocations: 0.5779 MB / 394.9 MB, free: 0.6914 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004809/0.1084, allocations: 146.5 kB / 395.1 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002521/0.1087, allocations: 76.92 kB / 395.1 MB, free: 472 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.828e-05/0.1087, allocations: 0 / 395.1 MB, free: 472 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003852/0.1091, allocations: 143.3 kB / 395.3 MB, free: 316 kB / 286.1 MB Notification: Performance of pre-optimization done (n=12): time 1.312e-06/0.1091, allocations: 0 / 395.3 MB, free: 316 kB / 286.1 MB Notification: Performance of matching and sorting (n=12): time 0.0008655/0.11, allocations: 277.5 kB / 395.6 MB, free: 32 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.616e-05/0.11, allocations: 63.39 kB / 395.6 MB, free: 15.96 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001725/0.1102, allocations: 203.1 kB / 395.8 MB, free: 15.75 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.556e-05/0.1103, allocations: 29.7 kB / 395.8 MB, free: 15.71 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.617e-05/0.1104, allocations: 140.3 kB / 396 MB, free: 15.57 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.928e-05/0.1104, allocations: 39.39 kB / 396 MB, free: 15.53 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.812e-05/0.1105, allocations: 41.7 kB / 396.1 MB, free: 15.48 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001079/0.1106, allocations: 334.8 kB / 396.4 MB, free: 15.15 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002712/0.1109, allocations: 79.94 kB / 396.5 MB, free: 15.07 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002753/0.1112, allocations: 114.8 kB / 396.6 MB, free: 14.95 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005118/0.1117, allocations: 203.8 kB / 396.8 MB, free: 14.73 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.1117, allocations: 0 / 396.8 MB, free: 14.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0006459/0.1123, allocations: 270.9 kB / 397 MB, free: 14.46 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.907e-05/0.1124, allocations: 29.7 kB / 397.1 MB, free: 14.42 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.1124, allocations: 7.984 kB / 397.1 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.171e-05/0.1124, allocations: 0 / 397.1 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007043/0.1131, allocations: 71.98 kB / 397.1 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.295e-06/0.1131, allocations: 7.938 kB / 397.2 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002007/0.1133, allocations: 39.8 kB / 397.2 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.609e-05/0.1134, allocations: 4 kB / 397.2 MB, free: 14.29 MB / 302.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.0001157/0.1135, allocations: 133.7 kB / 397.3 MB, free: 14.15 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.65e-05/0.1135, allocations: 15.81 kB / 397.3 MB, free: 14.14 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.576e-05/0.1136, allocations: 29.39 kB / 397.4 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.1136, allocations: 0 / 397.4 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.1136, allocations: 0 / 397.4 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.1136, allocations: 0 / 397.4 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002351/0.1138, allocations: 273.4 kB / 397.6 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.1139, allocations: 4 kB / 397.6 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007699/0.1146, allocations: 67.94 kB / 397.7 MB, free: 13.72 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.1146, allocations: 4 kB / 397.7 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.729e-05/0.1147, allocations: 3.984 kB / 397.7 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.1147, allocations: 0 / 397.7 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.1147, allocations: 0 / 397.7 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008551/0.1155, allocations: 324.6 kB / 398 MB, free: 13.38 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.122e-05/0.1156, allocations: 96.83 kB / 398.1 MB, free: 13.26 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.073e-05/0.1156, allocations: 4 kB / 398.1 MB, free: 13.26 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001919/0.1158, allocations: 24 kB / 398.2 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.362e-05/0.1159, allocations: 23.97 kB / 398.2 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.385e-05/0.1159, allocations: 12 kB / 398.2 MB, free: 13.2 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001146/0.1161, allocations: 148.6 kB / 398.3 MB, free: 13.05 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1161, allocations: 0 / 398.3 MB, free: 13.05 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002194/0.1163, allocations: 35.94 kB / 398.4 MB, free: 13.02 MB / 302.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.0001017/0.1164, allocations: 99.33 kB / 398.5 MB, free: 12.91 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006316/0.117, allocations: 251 kB / 398.7 MB, free: 12.66 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.117, allocations: 0 / 398.7 MB, free: 12.66 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002692/0.1173, allocations: 87.88 kB / 398.8 MB, free: 12.57 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002372/0.1176, allocations: 32.53 kB / 398.8 MB, free: 12.54 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007241/0.1183, allocations: 377.5 kB / 399.2 MB, free: 12.15 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002728/0.1186, allocations: 0.7319 MB / 399.9 MB, free: 11.39 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.447e-05/0.1187, allocations: 21.55 kB / 400 MB, free: 11.37 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.66e-05/0.1188, allocations: 23.44 kB / 400 MB, free: 11.35 MB / 302.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1188, allocations: 0 / 400 MB, free: 11.35 MB / 302.1 MB Notification: Performance of Templates: time 0.004815/0.1236, allocations: 1.95 MB / 401.9 MB, free: 9.402 MB / 302.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)