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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.008737/0.008737, allocations: 96.16 kB / 15.73 MB, free: 6.055 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.001962/0.001962, allocations: 195.1 kB / 16.67 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.59/1.59, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.1766/0.1766, allocations: 11.18 MB / 301.7 MB, free: 1.301 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001952/0.001952, allocations: 67.89 kB / 417.4 MB, free: 6.082 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2468/0.2487, allocations: 51.98 MB / 469.3 MB, free: 16.54 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingLL): time 0.002832/0.2516, allocations: 1.871 MB / 471.2 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001161/0.2528, allocations: 0.679 MB / 471.9 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001522/0.253, allocations: 13.56 kB / 471.9 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001403/0.2531, allocations: 28.38 kB / 471.9 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001018/0.2532, allocations: 47.19 kB / 472 MB, free: 14.67 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003906/0.2536, allocations: 141.6 kB / 472.1 MB, free: 14.59 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002967/0.2539, allocations: 287 kB / 472.4 MB, free: 14.46 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001538/0.2541, allocations: 61.39 kB / 472.4 MB, free: 14.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000151/0.2543, allocations: 126.2 kB / 472.6 MB, free: 14.37 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000166/0.2544, allocations: 117.2 kB / 472.7 MB, free: 14.31 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.25e-05/0.2545, allocations: 21.19 kB / 472.7 MB, free: 14.31 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.676e-05/0.2545, allocations: 20.59 kB / 472.7 MB, free: 14.31 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.965e-05/0.2546, allocations: 59.95 kB / 472.8 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.299e-05/0.2547, allocations: 105.3 kB / 472.9 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002885/0.255, allocations: 236.4 kB / 473.1 MB, free: 14.09 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.255, allocations: 3.922 kB / 473.1 MB, free: 14.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.255, allocations: 0 / 473.1 MB, free: 14.09 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.853e-06/0.255, allocations: 0 / 473.1 MB, free: 14.09 MB / 350.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.001021/0.256, allocations: 0.6122 MB / 473.7 MB, free: 13.58 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.075e-05/0.2561, allocations: 13.05 kB / 473.7 MB, free: 13.57 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.233e-05/0.2561, allocations: 53.59 kB / 473.8 MB, free: 13.52 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.468e-05/0.2562, allocations: 31.88 kB / 473.8 MB, free: 13.51 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004122/0.2566, allocations: 326.2 kB / 474.1 MB, free: 13.24 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.937e-05/0.2567, allocations: 99.27 kB / 474.2 MB, free: 13.14 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.065e-05/0.2568, allocations: 15.8 kB / 474.3 MB, free: 13.13 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005025/0.2573, allocations: 204.7 kB / 474.5 MB, free: 13.05 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.226e-05/0.2573, allocations: 4 kB / 474.5 MB, free: 13.05 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.378e-05/0.2573, allocations: 9.312 kB / 474.5 MB, free: 13.04 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.845e-06/0.2573, allocations: 4.125 kB / 474.5 MB, free: 13.04 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005272/0.2579, allocations: 163.9 kB / 474.6 MB, free: 12.97 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001227/0.2591, allocations: 0.7159 MB / 475.4 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005149/0.2596, allocations: 175.5 kB / 475.5 MB, free: 12.28 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002741/0.2599, allocations: 96.19 kB / 475.6 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.668e-05/0.2599, allocations: 1.344 kB / 475.6 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000414/0.2604, allocations: 172.1 kB / 475.8 MB, free: 12.11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.502e-06/0.2604, allocations: 0 / 475.8 MB, free: 12.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.000977/0.2614, allocations: 327.2 kB / 476.1 MB, free: 11.94 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.053e-05/0.2614, allocations: 66.08 kB / 476.2 MB, free: 11.86 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001847/0.2616, allocations: 233.2 kB / 476.4 MB, free: 11.69 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.331e-05/0.2616, allocations: 31.27 kB / 476.4 MB, free: 11.66 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.1e-05/0.2617, allocations: 151.7 kB / 476.6 MB, free: 11.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.38e-05/0.2617, allocations: 53.91 kB / 476.6 MB, free: 11.47 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.999e-05/0.2618, allocations: 51.94 kB / 476.7 MB, free: 11.43 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.044e-05/0.2619, allocations: 331.2 kB / 477 MB, free: 11.1 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000299/0.2622, allocations: 93.28 kB / 477.1 MB, free: 11.06 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003044/0.2625, allocations: 129 kB / 477.2 MB, free: 10.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005753/0.2631, allocations: 229.5 kB / 477.4 MB, free: 10.83 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.073e-06/0.2631, allocations: 0 / 477.4 MB, free: 10.83 MB / 350.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0007131/0.2638, allocations: 316.2 kB / 477.8 MB, free: 10.64 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.029e-05/0.2639, allocations: 32.14 kB / 477.8 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.2639, allocations: 1.094 kB / 477.8 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.696e-05/0.2639, allocations: 2.094 kB / 477.8 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00142/0.2653, allocations: 131.3 kB / 477.9 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001671/0.267, allocations: 2.884 MB / 480.8 MB, free: 7.523 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002775/0.2673, allocations: 32.3 kB / 480.8 MB, free: 7.508 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.431e-05/0.2673, allocations: 9.531 kB / 480.8 MB, free: 7.504 MB / 350.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.0001301/0.2675, allocations: 136.6 kB / 481 MB, free: 7.371 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.399e-05/0.2675, allocations: 25.06 kB / 481 MB, free: 7.355 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006923/0.2682, allocations: 277.8 kB / 481.3 MB, free: 7.195 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.2682, allocations: 5.234 kB / 481.3 MB, free: 7.191 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.894e-06/0.2682, allocations: 1.344 kB / 481.3 MB, free: 7.191 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.2682, allocations: 0 / 481.3 MB, free: 7.191 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009749/0.2692, allocations: 0.6508 MB / 481.9 MB, free: 6.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.2692, allocations: 7.875 kB / 481.9 MB, free: 6.652 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001242/0.2705, allocations: 104.1 kB / 482 MB, free: 6.629 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.895e-06/0.2705, allocations: 1.531 kB / 482 MB, free: 6.629 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.091e-05/0.2705, allocations: 5.562 kB / 482 MB, free: 6.625 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.2705, allocations: 5.344 kB / 482 MB, free: 6.621 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.2705, allocations: 0 / 482 MB, free: 6.621 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009492/0.2715, allocations: 463 kB / 482.5 MB, free: 6.328 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.972e-05/0.2715, allocations: 98.59 kB / 482.6 MB, free: 6.219 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.194e-05/0.2716, allocations: 10.5 kB / 482.6 MB, free: 6.211 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002356/0.2718, allocations: 24.84 kB / 482.6 MB, free: 6.199 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.939e-05/0.2719, allocations: 30.75 kB / 482.7 MB, free: 6.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.572e-05/0.2719, allocations: 3.844 kB / 482.7 MB, free: 6.18 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001141/0.272, allocations: 162.4 kB / 482.8 MB, free: 6.062 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.272, allocations: 1.156 kB / 482.8 MB, free: 6.062 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003145/0.2724, allocations: 45.89 kB / 482.9 MB, free: 6.051 MB / 350.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.001132/0.2735, allocations: 1.003 MB / 483.9 MB, free: 5.219 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009706/0.2745, allocations: 301.9 kB / 484.2 MB, free: 5.047 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.2745, allocations: 0 / 484.2 MB, free: 5.047 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003202/0.2748, allocations: 111.5 kB / 484.3 MB, free: 5 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003533/0.2752, allocations: 34.08 kB / 484.3 MB, free: 4.98 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003451/0.2787, allocations: 2.566 MB / 486.9 MB, free: 3.043 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001445/0.2788, allocations: 0.7473 MB / 487.6 MB, free: 2.316 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001406/0.279, allocations: 24.11 kB / 487.6 MB, free: 2.309 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001291/0.2791, allocations: 80.88 kB / 487.7 MB, free: 2.242 MB / 350.1 MB Notification: Performance of SimCode: time 9.72e-07/0.2791, allocations: 0 / 487.7 MB, free: 2.242 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02995/0.3091, allocations: 5.126 MB / 492.9 MB, free: 15.75 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.31/12.62, allocations: 16.89 kB / 492.9 MB, free: 15.74 MB / 366.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)