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.001449/0.001449, allocations: 106.8 kB / 15.99 MB, free: 6.348 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.001543/0.001543, allocations: 191.3 kB / 16.91 MB, free: 6.188 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.498/1.498, allocations: 205.1 MB / 222.8 MB, free: 4.703 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05466/0.05465, allocations: 10.74 MB / 280.8 MB, free: 10.67 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.001265/0.001265, allocations: 67.84 kB / 340.7 MB, free: 23.68 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0795/0.08078, allocations: 49.01 MB / 389.7 MB, free: 6.602 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO): time 0.002799/0.08362, allocations: 1.872 MB / 391.6 MB, free: 4.711 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009318/0.08457, allocations: 0.6438 MB / 392.2 MB, free: 4.059 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001026/0.08468, allocations: 7.938 kB / 392.2 MB, free: 4.051 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001143/0.08482, allocations: 15.81 kB / 392.3 MB, free: 4.035 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 7.837e-05/0.0849, allocations: 27.78 kB / 392.3 MB, free: 4.008 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002522/0.08516, allocations: 95.83 kB / 392.4 MB, free: 3.914 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002508/0.08542, allocations: 223.4 kB / 392.6 MB, free: 3.695 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001416/0.08558, allocations: 60.55 kB / 392.6 MB, free: 3.641 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001106/0.08569, allocations: 95.58 kB / 392.7 MB, free: 3.547 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001077/0.08581, allocations: 99.52 kB / 392.8 MB, free: 3.449 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.441e-05/0.08585, allocations: 16 kB / 392.9 MB, free: 3.434 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.847e-05/0.08588, allocations: 19.94 kB / 392.9 MB, free: 3.414 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.897e-05/0.08594, allocations: 43.83 kB / 392.9 MB, free: 3.371 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.617e-05/0.08603, allocations: 91.47 kB / 393 MB, free: 3.281 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001541/0.08619, allocations: 135.9 kB / 393.1 MB, free: 3.148 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.0862, allocations: 0 / 393.1 MB, free: 3.148 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.08621, allocations: 0 / 393.1 MB, free: 3.148 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.847e-06/0.08623, allocations: 4 kB / 393.1 MB, free: 3.145 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.000961/0.08719, allocations: 0.5589 MB / 393.7 MB, free: 2.531 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.57e-05/0.08724, allocations: 15.89 kB / 393.7 MB, free: 2.516 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.429e-05/0.08731, allocations: 28.66 kB / 393.7 MB, free: 2.488 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003001/0.08761, allocations: 279.4 kB / 394 MB, free: 2.176 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.214e-05/0.08769, allocations: 97.66 kB / 394.1 MB, free: 2.062 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.894e-05/0.08774, allocations: 16.38 kB / 394.1 MB, free: 2.047 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004419/0.08819, allocations: 189.6 kB / 394.3 MB, free: 1.855 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.08821, allocations: 3.938 kB / 394.3 MB, free: 1.852 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.055e-05/0.08823, allocations: 4 kB / 394.3 MB, free: 1.848 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.679e-06/0.08824, allocations: 0 / 394.3 MB, free: 1.848 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004919/0.08874, allocations: 151.9 kB / 394.5 MB, free: 1.699 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001008/0.08976, allocations: 0.5779 MB / 395 MB, free: 1.07 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004681/0.09024, allocations: 150.4 kB / 395.2 MB, free: 0.9141 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002411/0.09049, allocations: 72.8 kB / 395.3 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.305e-05/0.09052, allocations: 0 / 395.3 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004203/0.09095, allocations: 143.3 kB / 395.4 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of pre-optimization done (n=12): time 1.703e-06/0.09096, allocations: 4 kB / 395.4 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of matching and sorting (n=12): time 0.0008571/0.09182, allocations: 269.4 kB / 395.7 MB, free: 424 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.059e-05/0.09187, allocations: 59.41 kB / 395.7 MB, free: 352 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001682/0.09205, allocations: 207.1 kB / 395.9 MB, free: 136 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.879e-05/0.09209, allocations: 29.7 kB / 396 MB, free: 100 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.463e-05/0.09219, allocations: 140.4 kB / 396.1 MB, free: 15.95 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.427e-05/0.09223, allocations: 39.36 kB / 396.1 MB, free: 15.91 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.619e-05/0.09231, allocations: 41.7 kB / 396.2 MB, free: 15.87 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001019/0.09242, allocations: 334.8 kB / 396.5 MB, free: 15.53 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002671/0.09269, allocations: 79.94 kB / 396.6 MB, free: 15.45 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002791/0.09298, allocations: 110.8 kB / 396.7 MB, free: 15.34 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005055/0.09349, allocations: 205 kB / 396.9 MB, free: 15.12 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.09351, allocations: 3.938 kB / 396.9 MB, free: 15.11 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0006216/0.09413, allocations: 274.9 kB / 397.2 MB, free: 14.83 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.302e-05/0.09418, allocations: 32.67 kB / 397.2 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.09419, allocations: 3.984 kB / 397.2 MB, free: 14.79 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.126e-05/0.09421, allocations: 4 kB / 397.2 MB, free: 14.79 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006706/0.09488, allocations: 72 kB / 397.3 MB, free: 14.72 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.735e-06/0.0949, allocations: 4 kB / 397.3 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001998/0.0951, allocations: 35.81 kB / 397.3 MB, free: 14.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.867e-05/0.09513, allocations: 7.984 kB / 397.3 MB, free: 14.67 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.0001117/0.09525, allocations: 134.8 kB / 397.5 MB, free: 14.53 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.807e-05/0.09528, allocations: 23.73 kB / 397.5 MB, free: 14.51 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.944e-05/0.09534, allocations: 21.39 kB / 397.5 MB, free: 14.48 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.09535, allocations: 8 kB / 397.5 MB, free: 14.48 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.09536, allocations: 0 / 397.5 MB, free: 14.48 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-06/0.09537, allocations: 0 / 397.5 MB, free: 14.48 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002406/0.09561, allocations: 273.4 kB / 397.8 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.09562, allocations: 4 kB / 397.8 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007652/0.09639, allocations: 67.94 kB / 397.8 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.007e-06/0.09641, allocations: 8 kB / 397.9 MB, free: 14.08 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.617e-05/0.09643, allocations: 0 / 397.9 MB, free: 14.08 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.09644, allocations: 3.984 kB / 397.9 MB, free: 14.08 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.09644, allocations: 0 / 397.9 MB, free: 14.08 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008224/0.09727, allocations: 317 kB / 398.2 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.955e-05/0.09733, allocations: 96.83 kB / 398.3 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.987e-05/0.09737, allocations: 4 kB / 398.3 MB, free: 13.63 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001822/0.09755, allocations: 24 kB / 398.3 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.015e-05/0.09764, allocations: 19.98 kB / 398.3 MB, free: 13.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.36e-05/0.09766, allocations: 7.984 kB / 398.3 MB, free: 13.58 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001023/0.09777, allocations: 152.6 kB / 398.5 MB, free: 13.43 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.09778, allocations: 0 / 398.5 MB, free: 13.43 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002256/0.09801, allocations: 35.94 kB / 398.5 MB, free: 13.4 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.0001024/0.09812, allocations: 103.2 kB / 398.6 MB, free: 13.29 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006036/0.09873, allocations: 235.3 kB / 398.8 MB, free: 13.05 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.09874, allocations: 0 / 398.8 MB, free: 13.05 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002583/0.099, allocations: 87.86 kB / 398.9 MB, free: 12.96 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002961/0.09931, allocations: 32.53 kB / 398.9 MB, free: 12.93 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008028/0.1001, allocations: 475.2 kB / 399.4 MB, free: 12.43 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002582/0.1004, allocations: 0.7358 MB / 400.1 MB, free: 11.67 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.983e-05/0.1005, allocations: 19.44 kB / 400.2 MB, free: 11.65 MB / 302.1 MB Notification: Performance of SimCode: time 6.21e-07/0.1005, allocations: 0 / 400.2 MB, free: 11.65 MB / 302.1 MB Notification: Performance of Templates: time 0.003801/0.1043, allocations: 2.433 MB / 402.6 MB, free: 9.223 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)