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.004736/0.004737, allocations: 102.3 kB / 15.73 MB, free: 6.059 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.0009908/0.0009908, allocations: 191 kB / 16.67 MB, free: 5.969 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.257/1.257, allocations: 205.1 MB / 222.5 MB, free: 4.508 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05502/0.05502, allocations: 10.74 MB / 280.6 MB, free: 10.4 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.00145/0.00145, allocations: 71.23 kB / 390.8 MB, free: 5.012 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2398/0.2413, allocations: 49.01 MB / 439.9 MB, free: 5.344 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO): time 0.00277/0.2441, allocations: 1.814 MB / 441.7 MB, free: 4.055 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009059/0.245, allocations: 0.6567 MB / 442.3 MB, free: 3.59 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.984e-05/0.2452, allocations: 7.719 kB / 442.3 MB, free: 3.586 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001149/0.2453, allocations: 28.88 kB / 442.4 MB, free: 3.562 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.952e-05/0.2454, allocations: 30.7 kB / 442.4 MB, free: 3.539 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002717/0.2457, allocations: 101.6 kB / 442.5 MB, free: 3.484 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002543/0.2459, allocations: 235.1 kB / 442.7 MB, free: 3.375 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001445/0.2461, allocations: 59.09 kB / 442.8 MB, free: 3.344 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000113/0.2462, allocations: 95.7 kB / 442.9 MB, free: 3.297 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001226/0.2463, allocations: 97.88 kB / 443 MB, free: 3.246 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.382e-05/0.2464, allocations: 16.31 kB / 443 MB, free: 3.246 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.781e-05/0.2464, allocations: 17.88 kB / 443 MB, free: 3.246 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.607e-05/0.2465, allocations: 44.83 kB / 443 MB, free: 3.219 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.208e-05/0.2465, allocations: 92.53 kB / 443.1 MB, free: 3.156 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000212/0.2467, allocations: 198.5 kB / 443.3 MB, free: 3.066 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.2468, allocations: 0 / 443.3 MB, free: 3.066 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2468, allocations: 1.375 kB / 443.3 MB, free: 3.066 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.581e-06/0.2468, allocations: 0 / 443.3 MB, free: 3.066 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0008634/0.2476, allocations: 0.5618 MB / 443.9 MB, free: 2.582 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.152e-05/0.2477, allocations: 17.2 kB / 443.9 MB, free: 2.574 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.849e-05/0.2477, allocations: 30.09 kB / 443.9 MB, free: 2.559 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003285/0.2481, allocations: 300.5 kB / 444.2 MB, free: 2.305 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.075e-05/0.2481, allocations: 104.6 kB / 444.3 MB, free: 2.195 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.238e-05/0.2482, allocations: 15.69 kB / 444.3 MB, free: 2.191 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004461/0.2486, allocations: 181.1 kB / 444.5 MB, free: 2.117 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.2487, allocations: 3.938 kB / 444.5 MB, free: 2.113 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.038e-05/0.2487, allocations: 5.156 kB / 444.5 MB, free: 2.109 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.939e-06/0.2487, allocations: 4.344 kB / 444.5 MB, free: 2.109 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004821/0.2492, allocations: 148.3 kB / 444.7 MB, free: 2.074 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009076/0.2501, allocations: 0.5668 MB / 445.3 MB, free: 1.68 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004555/0.2506, allocations: 140.4 kB / 445.4 MB, free: 1.629 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002345/0.2508, allocations: 79.16 kB / 445.5 MB, free: 1.602 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.406e-05/0.2509, allocations: 1.438 kB / 445.5 MB, free: 1.602 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000353/0.2512, allocations: 144.6 kB / 445.6 MB, free: 1.531 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 1.973e-06/0.2512, allocations: 0 / 445.6 MB, free: 1.531 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.0008828/0.2521, allocations: 272.2 kB / 445.9 MB, free: 1.441 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.855e-05/0.2521, allocations: 53.89 kB / 445.9 MB, free: 1.379 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001868/0.2523, allocations: 205 kB / 446.1 MB, free: 1.246 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.404e-05/0.2524, allocations: 33.17 kB / 446.2 MB, free: 1.211 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.466e-05/0.2525, allocations: 146 kB / 446.3 MB, free: 1.082 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.452e-05/0.2525, allocations: 39.48 kB / 446.3 MB, free: 1.051 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.344e-05/0.2526, allocations: 42.22 kB / 446.4 MB, free: 1.023 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.191e-05/0.2526, allocations: 333.6 kB / 446.7 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002644/0.2529, allocations: 79.62 kB / 446.8 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002623/0.2532, allocations: 113.7 kB / 446.9 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004755/0.2537, allocations: 206.5 kB / 447.1 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.2537, allocations: 0 / 447.1 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0006191/0.2543, allocations: 266.1 kB / 447.4 MB, free: 400 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.482e-05/0.2543, allocations: 37.33 kB / 447.4 MB, free: 364 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.2544, allocations: 4.797 kB / 447.4 MB, free: 360 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.467e-05/0.2544, allocations: 2.406 kB / 447.4 MB, free: 360 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006591/0.255, allocations: 71.53 kB / 447.5 MB, free: 356 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.943e-06/0.2551, allocations: 2.719 kB / 447.5 MB, free: 356 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001885/0.2553, allocations: 36.42 kB / 447.5 MB, free: 344 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.772e-05/0.2553, allocations: 9.719 kB / 447.5 MB, free: 340 kB / 318.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 8.509e-05/0.2554, allocations: 132.7 kB / 447.6 MB, free: 208 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.607e-05/0.2554, allocations: 15 kB / 447.7 MB, free: 200 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.124e-05/0.2555, allocations: 20.94 kB / 447.7 MB, free: 188 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.2555, allocations: 1.219 kB / 447.7 MB, free: 188 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.2555, allocations: 6.016 kB / 447.7 MB, free: 184 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.2555, allocations: 0.5156 kB / 447.7 MB, free: 184 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002516/0.2557, allocations: 282.6 kB / 448 MB, free: 15.9 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.2557, allocations: 4 kB / 448 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008014/0.2566, allocations: 72.22 kB / 448 MB, free: 15.88 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.2566, allocations: 0 / 448 MB, free: 15.88 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.574e-05/0.2566, allocations: 2.344 kB / 448 MB, free: 15.88 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.482e-06/0.2566, allocations: 0 / 448 MB, free: 15.88 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.2566, allocations: 1.25 kB / 448 MB, free: 15.88 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008302/0.2574, allocations: 311.7 kB / 448.3 MB, free: 15.69 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.219e-05/0.2575, allocations: 101.5 kB / 448.4 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.232e-05/0.2576, allocations: 9.969 kB / 448.5 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001752/0.2577, allocations: 21.12 kB / 448.5 MB, free: 15.56 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.014e-05/0.2578, allocations: 24.72 kB / 448.5 MB, free: 15.54 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.417e-05/0.2578, allocations: 6.047 kB / 448.5 MB, free: 15.54 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001106/0.258, allocations: 153.6 kB / 448.7 MB, free: 15.43 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.258, allocations: 0 / 448.7 MB, free: 15.43 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000227/0.2582, allocations: 35.09 kB / 448.7 MB, free: 15.42 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.0001098/0.2583, allocations: 105.8 kB / 448.8 MB, free: 15.32 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006029/0.2589, allocations: 232.2 kB / 449 MB, free: 15.18 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.2589, allocations: 0 / 449 MB, free: 15.18 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002812/0.2592, allocations: 88.28 kB / 449.1 MB, free: 15.14 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000252/0.2595, allocations: 32 kB / 449.1 MB, free: 15.12 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007854/0.2603, allocations: 381.2 kB / 449.5 MB, free: 14.85 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000267/0.2606, allocations: 0.7344 MB / 450.2 MB, free: 14.13 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.084e-05/0.2606, allocations: 21.02 kB / 450.3 MB, free: 14.11 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.592e-05/0.2607, allocations: 18.06 kB / 450.3 MB, free: 14.11 MB / 334.1 MB Notification: Performance of SimCode: time 2.51e-07/0.2607, allocations: 0 / 450.3 MB, free: 14.11 MB / 334.1 MB Notification: Performance of Templates: time 0.004611/0.2653, allocations: 1.983 MB / 452.3 MB, free: 13.09 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)