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.009369/0.009369, allocations: 96.03 kB / 15.73 MB, free: 6.051 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.002111/0.002111, allocations: 197.9 kB / 16.67 MB, free: 5.973 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.542/1.542, allocations: 205.1 MB / 222.6 MB, free: 4.539 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06416/0.06416, allocations: 10.74 MB / 280.7 MB, free: 10.41 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.002134/0.002134, allocations: 74.92 kB / 390.4 MB, free: 5.539 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2636/0.2657, allocations: 49.01 MB / 439.4 MB, free: 5.105 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingLL): time 0.002888/0.2686, allocations: 1.887 MB / 441.3 MB, free: 3.758 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001125/0.2697, allocations: 0.7273 MB / 442 MB, free: 3.25 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001152/0.2698, allocations: 13.84 kB / 442 MB, free: 3.242 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001183/0.27, allocations: 24.84 kB / 442 MB, free: 3.223 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001001/0.2701, allocations: 50.89 kB / 442.1 MB, free: 3.184 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003745/0.2704, allocations: 134.9 kB / 442.2 MB, free: 3.109 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002985/0.2707, allocations: 286.5 kB / 442.5 MB, free: 2.98 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001453/0.2709, allocations: 49.56 kB / 442.5 MB, free: 2.953 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001541/0.271, allocations: 126.6 kB / 442.6 MB, free: 2.895 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000161/0.2712, allocations: 118.1 kB / 442.8 MB, free: 2.836 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.151e-05/0.2712, allocations: 20.66 kB / 442.8 MB, free: 2.836 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.12e-05/0.2713, allocations: 24.59 kB / 442.8 MB, free: 2.832 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.342e-05/0.2713, allocations: 52.12 kB / 442.9 MB, free: 2.801 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.901e-05/0.2714, allocations: 108.7 kB / 443 MB, free: 2.727 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002689/0.2717, allocations: 233 kB / 443.2 MB, free: 2.625 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.2717, allocations: 0 / 443.2 MB, free: 2.625 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.143e-06/0.2717, allocations: 0 / 443.2 MB, free: 2.625 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.352e-06/0.2717, allocations: 5.312 kB / 443.2 MB, free: 2.621 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.00107/0.2728, allocations: 0.6101 MB / 443.8 MB, free: 2.109 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.933e-05/0.2728, allocations: 13.58 kB / 443.8 MB, free: 2.105 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.59e-05/0.2728, allocations: 48.27 kB / 443.9 MB, free: 2.059 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.424e-05/0.2729, allocations: 31.59 kB / 443.9 MB, free: 2.043 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004109/0.2733, allocations: 329.3 kB / 444.2 MB, free: 1.77 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.736e-05/0.2734, allocations: 100.5 kB / 444.3 MB, free: 1.668 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.93e-05/0.2734, allocations: 15.55 kB / 444.3 MB, free: 1.664 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005249/0.274, allocations: 203.3 kB / 444.5 MB, free: 1.586 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.143e-05/0.274, allocations: 2.203 kB / 444.5 MB, free: 1.586 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.36e-05/0.274, allocations: 9 kB / 444.5 MB, free: 1.578 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.545e-06/0.274, allocations: 7.422 kB / 444.6 MB, free: 1.574 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005838/0.2746, allocations: 171 kB / 444.7 MB, free: 1.527 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001365/0.276, allocations: 0.7133 MB / 445.4 MB, free: 1.066 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005603/0.2765, allocations: 163.7 kB / 445.6 MB, free: 1.008 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002954/0.2768, allocations: 92.53 kB / 445.7 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.57e-05/0.2768, allocations: 1.969 kB / 445.7 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004658/0.2773, allocations: 174.8 kB / 445.9 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of pre-optimization done (n=16): time 1.563e-06/0.2773, allocations: 0 / 445.9 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of matching and sorting (n=16): time 0.001047/0.2784, allocations: 329.6 kB / 446.2 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.343e-05/0.2784, allocations: 54.7 kB / 446.2 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000187/0.2786, allocations: 233.2 kB / 446.5 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.286e-05/0.2786, allocations: 31.83 kB / 446.5 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.285e-05/0.2787, allocations: 152 kB / 446.6 MB, free: 416 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.994e-05/0.2787, allocations: 50.8 kB / 446.7 MB, free: 376 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.746e-05/0.2788, allocations: 53.05 kB / 446.7 MB, free: 340 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.635e-05/0.2789, allocations: 340 kB / 447.1 MB, free: 4 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003477/0.2792, allocations: 92.48 kB / 447.2 MB, free: 15.98 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003468/0.2796, allocations: 127.7 kB / 447.3 MB, free: 15.91 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006332/0.2802, allocations: 231.7 kB / 447.5 MB, free: 15.79 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.2802, allocations: 0 / 447.5 MB, free: 15.79 MB / 334.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0007985/0.281, allocations: 313.6 kB / 447.8 MB, free: 15.64 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.851e-05/0.281, allocations: 36.3 kB / 447.9 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.636e-06/0.281, allocations: 5.094 kB / 447.9 MB, free: 15.6 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.916e-05/0.2811, allocations: 10.23 kB / 447.9 MB, free: 15.59 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001481/0.2825, allocations: 123.7 kB / 448 MB, free: 15.55 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002762/0.2853, allocations: 2.88 MB / 450.9 MB, free: 12.52 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002874/0.2856, allocations: 35.77 kB / 450.9 MB, free: 12.5 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.419e-05/0.2856, allocations: 5.375 kB / 450.9 MB, free: 12.5 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 ($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.0001815/0.2858, allocations: 136.4 kB / 451 MB, free: 12.36 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.264e-05/0.2858, allocations: 30.72 kB / 451.1 MB, free: 12.34 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007786/0.2866, allocations: 274.6 kB / 451.3 MB, free: 12.18 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.2866, allocations: 2.25 kB / 451.3 MB, free: 12.18 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.413e-06/0.2866, allocations: 0 / 451.3 MB, free: 12.18 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.062e-06/0.2866, allocations: 5.062 kB / 451.3 MB, free: 12.18 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001207/0.2878, allocations: 0.646 MB / 452 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.2878, allocations: 0 / 452 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001288/0.2891, allocations: 109.1 kB / 452.1 MB, free: 11.63 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.178e-06/0.2891, allocations: 1.188 kB / 452.1 MB, free: 11.63 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.438e-05/0.2892, allocations: 4.969 kB / 452.1 MB, free: 11.62 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.761e-06/0.2892, allocations: 12.94 kB / 452.1 MB, free: 11.61 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.2892, allocations: 5.109 kB / 452.1 MB, free: 11.61 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001058/0.2902, allocations: 456.2 kB / 452.6 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001046/0.2903, allocations: 95.25 kB / 452.7 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.687e-05/0.2904, allocations: 11.25 kB / 452.7 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002414/0.2906, allocations: 27.97 kB / 452.7 MB, free: 11.19 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.361e-05/0.2907, allocations: 26.62 kB / 452.7 MB, free: 11.18 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.602e-05/0.2907, allocations: 3.25 kB / 452.7 MB, free: 11.18 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001462/0.2909, allocations: 164.6 kB / 452.9 MB, free: 11.06 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2909, allocations: 0 / 452.9 MB, free: 11.06 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003185/0.2912, allocations: 51.52 kB / 452.9 MB, free: 11.04 MB / 334.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.001391/0.2926, allocations: 0.9912 MB / 453.9 MB, free: 10.22 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001019/0.2936, allocations: 292.4 kB / 454.2 MB, free: 10.05 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.2936, allocations: 0 / 454.2 MB, free: 10.05 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003471/0.2939, allocations: 113.6 kB / 454.3 MB, free: 10 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003379/0.2943, allocations: 26.14 kB / 454.4 MB, free: 9.988 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0041/0.2984, allocations: 2.564 MB / 456.9 MB, free: 8.051 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003687/0.2988, allocations: 0.7509 MB / 457.7 MB, free: 7.316 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001219/0.2989, allocations: 23.83 kB / 457.7 MB, free: 7.309 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000158/0.299, allocations: 77.16 kB / 457.8 MB, free: 7.246 MB / 334.1 MB Notification: Performance of SimCode: time 5.92e-07/0.299, allocations: 0 / 457.8 MB, free: 7.246 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03342/0.3324, allocations: 5.148 MB / 462.9 MB, free: 4.621 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.26/12.59, allocations: 5.062 kB / 462.9 MB, free: 4.617 MB / 334.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)