Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingLL.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: "" <> buildModelFMU(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingLL,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingLL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingLL,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingLL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002041/0.002041, allocations: 108 kB / 15.6 MB, free: 132 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.002544/0.002544, allocations: 199.3 kB / 16.54 MB, free: 6.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.407/2.407, allocations: 205.1 MB / 222.4 MB, free: 4.613 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.0876/0.0876, allocations: 10.73 MB / 280.5 MB, free: 10.51 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.003527/0.003527, allocations: 75.89 kB / 340.7 MB, free: 23.21 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2211/0.2247, allocations: 49.01 MB / 389.7 MB, free: 6.141 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingLL): time 0.008483/0.2332, allocations: 1.886 MB / 391.6 MB, free: 4.23 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003444/0.2368, allocations: 0.7182 MB / 392.3 MB, free: 3.508 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005177/0.2375, allocations: 11.94 kB / 392.3 MB, free: 3.496 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003367/0.2378, allocations: 27.69 kB / 392.3 MB, free: 3.469 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004688/0.2384, allocations: 43.58 kB / 392.4 MB, free: 3.426 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00113/0.2395, allocations: 135.7 kB / 392.5 MB, free: 3.293 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009926/0.2405, allocations: 291.2 kB / 392.8 MB, free: 3.008 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000342/0.2409, allocations: 56.97 kB / 392.8 MB, free: 2.957 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004675/0.2414, allocations: 131.5 kB / 393 MB, free: 2.828 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004044/0.2418, allocations: 115.5 kB / 393.1 MB, free: 2.715 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001221/0.2419, allocations: 20 kB / 393.1 MB, free: 2.695 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.763e-05/0.242, allocations: 20 kB / 393.1 MB, free: 2.676 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001373/0.2422, allocations: 59.81 kB / 393.2 MB, free: 2.617 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002395/0.2425, allocations: 103.3 kB / 393.3 MB, free: 2.516 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006405/0.2431, allocations: 231.3 kB / 393.5 MB, free: 2.289 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.16e-05/0.2431, allocations: 0 / 393.5 MB, free: 2.289 MB / 286.1 MB Notification: Performance of FrontEnd: time 4.268e-06/0.2432, allocations: 0 / 393.5 MB, free: 2.289 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.624e-05/0.2432, allocations: 3.984 kB / 393.5 MB, free: 2.285 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.002493/0.2457, allocations: 0.5978 MB / 394.1 MB, free: 1.633 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 9.736e-05/0.2458, allocations: 11.89 kB / 394.1 MB, free: 1.621 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001366/0.246, allocations: 50.73 kB / 394.2 MB, free: 1.562 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001803/0.2462, allocations: 32.56 kB / 394.2 MB, free: 1.531 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008718/0.247, allocations: 302.3 kB / 394.5 MB, free: 1.191 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002151/0.2473, allocations: 101.4 kB / 394.6 MB, free: 1.074 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001181/0.2474, allocations: 16 kB / 394.6 MB, free: 1.059 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001105/0.2485, allocations: 203.8 kB / 394.8 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.737e-05/0.2486, allocations: 0 / 394.8 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.02e-05/0.2487, allocations: 11.94 kB / 394.8 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.482e-05/0.2487, allocations: 4 kB / 394.8 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009303/0.2496, allocations: 168.4 kB / 395 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002774/0.2524, allocations: 0.7224 MB / 395.7 MB, free: 15.9 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008456/0.2533, allocations: 174.4 kB / 395.9 MB, free: 15.72 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004379/0.2537, allocations: 92.8 kB / 396 MB, free: 15.63 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.853e-05/0.2538, allocations: 0 / 396 MB, free: 15.63 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008427/0.2546, allocations: 167.1 kB / 396.1 MB, free: 15.45 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 3.436e-06/0.2547, allocations: 4 kB / 396.1 MB, free: 15.45 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.001618/0.2563, allocations: 325 kB / 396.4 MB, free: 15.13 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.641e-05/0.2564, allocations: 63.34 kB / 396.5 MB, free: 15.05 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000416/0.2568, allocations: 232.9 kB / 396.7 MB, free: 14.82 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.395e-05/0.2569, allocations: 29.7 kB / 396.8 MB, free: 14.78 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002141/0.2571, allocations: 152.3 kB / 396.9 MB, free: 14.62 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001024/0.2572, allocations: 59.27 kB / 397 MB, free: 14.57 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000211/0.2575, allocations: 41.7 kB / 397 MB, free: 14.52 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002604/0.2577, allocations: 338.8 kB / 397.3 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004863/0.2582, allocations: 91.92 kB / 397.4 MB, free: 14.09 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005557/0.2588, allocations: 131.2 kB / 397.6 MB, free: 13.95 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001012/0.2598, allocations: 237 kB / 397.8 MB, free: 13.7 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/0.2599, allocations: 0 / 397.8 MB, free: 13.7 MB / 302.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.001265/0.2611, allocations: 314.8 kB / 398.1 MB, free: 13.38 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.555e-05/0.2613, allocations: 33.7 kB / 398.1 MB, free: 13.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.188e-05/0.2613, allocations: 0 / 398.1 MB, free: 13.34 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.675e-05/0.2613, allocations: 4 kB / 398.1 MB, free: 13.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002184/0.2635, allocations: 127.9 kB / 398.3 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004276/0.2678, allocations: 2.879 MB / 401.1 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000522/0.2684, allocations: 35.84 kB / 401.2 MB, free: 10.01 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.12e-05/0.2685, allocations: 7.984 kB / 401.2 MB, free: 10 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 ($whenCondition2,TrackRef.count,$PRE.TrackRef.count,TrackRef.T_start,$PRE.TrackRef.T_start,TSsignal.pulseStart,$PRE.TSsignal.pulseStart,LLtr.ts,$whenCondition1,LL.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): 20 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003586/0.2689, allocations: 137.7 kB / 401.3 MB, free: 9.859 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001125/0.269, allocations: 23.72 kB / 401.3 MB, free: 9.836 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001159/0.2702, allocations: 271.6 kB / 401.6 MB, free: 9.566 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/0.2702, allocations: 4 kB / 401.6 MB, free: 9.562 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/0.2702, allocations: 0 / 401.6 MB, free: 9.562 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.095e-06/0.2702, allocations: 7.875 kB / 401.6 MB, free: 9.555 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002034/0.2723, allocations: 0.6505 MB / 402.3 MB, free: 8.848 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.979e-06/0.2723, allocations: 0 / 402.3 MB, free: 8.848 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001861/0.2742, allocations: 115.9 kB / 402.4 MB, free: 8.734 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.017e-05/0.2742, allocations: 7.984 kB / 402.4 MB, free: 8.727 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.07e-05/0.2743, allocations: 0 / 402.4 MB, free: 8.727 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.835e-05/0.2743, allocations: 7.938 kB / 402.4 MB, free: 8.719 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/0.2743, allocations: 0 / 402.4 MB, free: 8.719 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001638/0.276, allocations: 454.4 kB / 402.8 MB, free: 8.262 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001987/0.2762, allocations: 101 kB / 402.9 MB, free: 8.145 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001529/0.2764, allocations: 3.938 kB / 402.9 MB, free: 8.141 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003929/0.2768, allocations: 27.97 kB / 403 MB, free: 8.113 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001819/0.277, allocations: 23.97 kB / 403 MB, free: 8.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.286e-05/0.277, allocations: 8 kB / 403 MB, free: 8.082 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003388/0.2774, allocations: 160.5 kB / 403.2 MB, free: 7.93 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.2774, allocations: 0 / 403.2 MB, free: 7.93 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006312/0.278, allocations: 43.84 kB / 403.2 MB, free: 7.887 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (LLaw.uF,LLtr.uF,LL.uF) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,LLtr.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 (18): * Single equations (assignments): 15 * 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.002318/0.2803, allocations: 1.001 MB / 404.2 MB, free: 6.859 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001776/0.2821, allocations: 311 kB / 404.5 MB, free: 6.543 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.711e-06/0.2822, allocations: 0 / 404.5 MB, free: 6.543 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005587/0.2827, allocations: 112.1 kB / 404.6 MB, free: 6.434 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006975/0.2835, allocations: 28.42 kB / 404.6 MB, free: 6.406 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007613/0.2911, allocations: 2.553 MB / 407.2 MB, free: 3.746 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00069/0.2919, allocations: 0.748 MB / 407.9 MB, free: 2.969 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002567/0.2921, allocations: 29.92 kB / 408 MB, free: 2.938 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004374/0.2965, allocations: 83.34 kB / 408 MB, free: 2.859 MB / 302.1 MB Notification: Performance of SimCode: time 1.884e-06/0.2966, allocations: 0 / 408 MB, free: 2.859 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1517/0.4483, allocations: 5.03 MB / 413.1 MB, free: 13.91 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 24.45/24.9, allocations: 28.06 kB / 413.1 MB, free: 13.88 MB / 318.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingLL.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingLL.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingLL.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingLL.sim & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingLL_res.csv --start-time 0 --stop-time 22 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0088 IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingLL.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingLL.pipe 2>&1)