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.005481/0.005481, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001254/0.001254, allocations: 197.3 kB / 16.67 MB, free: 5.934 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.523/1.523, allocations: 205.1 MB / 222.6 MB, free: 4.527 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05978/0.05978, allocations: 10.75 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.001872/0.001872, allocations: 64.75 kB / 390.3 MB, free: 5.543 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3211/0.323, allocations: 49.02 MB / 439.4 MB, free: 5.086 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingLL): time 0.003157/0.3262, allocations: 1.879 MB / 441.3 MB, free: 3.746 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001419/0.3277, allocations: 0.7292 MB / 442 MB, free: 3.234 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001551/0.3279, allocations: 9.75 kB / 442 MB, free: 3.23 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001408/0.3281, allocations: 24.86 kB / 442 MB, free: 3.211 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001212/0.3282, allocations: 46.62 kB / 442.1 MB, free: 3.176 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004697/0.3287, allocations: 135 kB / 442.2 MB, free: 3.102 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003497/0.329, allocations: 296.9 kB / 442.5 MB, free: 2.965 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001709/0.3292, allocations: 59.64 kB / 442.5 MB, free: 2.938 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001712/0.3294, allocations: 126.7 kB / 442.7 MB, free: 2.879 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001758/0.3296, allocations: 117.5 kB / 442.8 MB, free: 2.82 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.659e-05/0.3296, allocations: 22 kB / 442.8 MB, free: 2.82 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.895e-05/0.3297, allocations: 20.62 kB / 442.8 MB, free: 2.82 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.664e-05/0.3297, allocations: 56.7 kB / 442.9 MB, free: 2.785 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001057/0.3298, allocations: 107.6 kB / 443 MB, free: 2.711 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003421/0.3302, allocations: 229.5 kB / 443.2 MB, free: 2.613 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.3302, allocations: 0 / 443.2 MB, free: 2.613 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.3302, allocations: 3.938 kB / 443.2 MB, free: 2.609 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.322e-06/0.3302, allocations: 0 / 443.2 MB, free: 2.609 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.001114/0.3314, allocations: 0.6116 MB / 443.8 MB, free: 2.098 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.586e-05/0.3314, allocations: 13.05 kB / 443.8 MB, free: 2.094 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.763e-05/0.3315, allocations: 47.22 kB / 443.9 MB, free: 2.047 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.24e-05/0.3315, allocations: 33.73 kB / 443.9 MB, free: 2.031 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000489/0.332, allocations: 329.1 kB / 444.2 MB, free: 1.758 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.502e-05/0.3321, allocations: 99.19 kB / 444.3 MB, free: 1.656 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.763e-05/0.3322, allocations: 24.25 kB / 444.4 MB, free: 1.645 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005376/0.3327, allocations: 203.5 kB / 444.6 MB, free: 1.566 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.337e-05/0.3327, allocations: 1.625 kB / 444.6 MB, free: 1.566 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.123e-05/0.3328, allocations: 4.516 kB / 444.6 MB, free: 1.562 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.3328, allocations: 3.719 kB / 444.6 MB, free: 1.562 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000564/0.3334, allocations: 171.4 kB / 444.7 MB, free: 1.516 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001408/0.3348, allocations: 0.7106 MB / 445.4 MB, free: 1.059 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005574/0.3353, allocations: 177 kB / 445.6 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002854/0.3356, allocations: 92.83 kB / 445.7 MB, free: 0.957 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.209e-05/0.3357, allocations: 6.125 kB / 445.7 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004507/0.3361, allocations: 158.6 kB / 445.9 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of pre-optimization done (n=16): time 2.134e-06/0.3362, allocations: 3.938 kB / 445.9 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of matching and sorting (n=16): time 0.001046/0.3372, allocations: 333.9 kB / 446.2 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.348e-05/0.3373, allocations: 55.5 kB / 446.2 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002189/0.3375, allocations: 232.5 kB / 446.5 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.337e-05/0.3375, allocations: 31.92 kB / 446.5 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.645e-05/0.3376, allocations: 148.8 kB / 446.7 MB, free: 400 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.397e-05/0.3377, allocations: 59.28 kB / 446.7 MB, free: 352 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.393e-05/0.3378, allocations: 51.69 kB / 446.8 MB, free: 316 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001067/0.3379, allocations: 333 kB / 447.1 MB, free: 15.99 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003368/0.3382, allocations: 96.22 kB / 447.2 MB, free: 15.96 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003291/0.3386, allocations: 131.2 kB / 447.3 MB, free: 15.89 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006108/0.3392, allocations: 231.8 kB / 447.5 MB, free: 15.77 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.3392, allocations: 0 / 447.5 MB, free: 15.77 MB / 334.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000782/0.34, allocations: 319 kB / 447.8 MB, free: 15.61 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.196e-05/0.34, allocations: 30.86 kB / 447.9 MB, free: 15.58 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.278e-06/0.34, allocations: 8.953 kB / 447.9 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.691e-05/0.3401, allocations: 6.438 kB / 447.9 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001446/0.3415, allocations: 115.9 kB / 448 MB, free: 15.54 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002445/0.344, allocations: 2.879 MB / 450.9 MB, free: 12.5 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003313/0.3443, allocations: 35.8 kB / 450.9 MB, free: 12.48 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.575e-05/0.3444, allocations: 5.844 kB / 450.9 MB, free: 12.48 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.0002314/0.3446, allocations: 144.1 kB / 451.1 MB, free: 12.34 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.551e-05/0.3447, allocations: 26.88 kB / 451.1 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007185/0.3454, allocations: 271.4 kB / 451.4 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.3454, allocations: 6.406 kB / 451.4 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.303e-06/0.3454, allocations: 0 / 451.4 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.456e-06/0.3454, allocations: 0 / 451.4 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001157/0.3466, allocations: 0.6472 MB / 452 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.3466, allocations: 0 / 452 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001239/0.3478, allocations: 113 kB / 452.1 MB, free: 11.61 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.54e-06/0.3479, allocations: 1.344 kB / 452.1 MB, free: 11.61 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.08e-05/0.3479, allocations: 1.375 kB / 452.1 MB, free: 11.61 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.574e-06/0.3479, allocations: 8.922 kB / 452.1 MB, free: 11.6 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.3479, allocations: 4 kB / 452.1 MB, free: 11.59 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009778/0.3489, allocations: 457.5 kB / 452.6 MB, free: 11.3 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.189e-05/0.349, allocations: 100.8 kB / 452.7 MB, free: 11.2 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.992e-05/0.349, allocations: 7.938 kB / 452.7 MB, free: 11.19 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002277/0.3492, allocations: 28.75 kB / 452.7 MB, free: 11.17 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.346e-05/0.3493, allocations: 22.56 kB / 452.7 MB, free: 11.16 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.587e-05/0.3494, allocations: 3.5 kB / 452.7 MB, free: 11.16 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001474/0.3495, allocations: 162.8 kB / 452.9 MB, free: 11.04 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3495, allocations: 4.938 kB / 452.9 MB, free: 11.04 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003544/0.3499, allocations: 50.83 kB / 453 MB, free: 11.02 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.001346/0.3512, allocations: 0.9969 MB / 454 MB, free: 10.2 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001041/0.3523, allocations: 294.3 kB / 454.2 MB, free: 10.03 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.3523, allocations: 4.188 kB / 454.2 MB, free: 10.03 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003264/0.3526, allocations: 110.5 kB / 454.4 MB, free: 9.98 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003552/0.353, allocations: 31.55 kB / 454.4 MB, free: 9.965 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004065/0.3571, allocations: 2.571 MB / 457 MB, free: 8.02 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003438/0.3574, allocations: 0.7508 MB / 457.7 MB, free: 7.285 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001464/0.3576, allocations: 23.08 kB / 457.7 MB, free: 7.277 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001521/0.3578, allocations: 73.66 kB / 457.8 MB, free: 7.219 MB / 334.1 MB Notification: Performance of SimCode: time 1.463e-06/0.3578, allocations: 0 / 457.8 MB, free: 7.219 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02652/0.3843, allocations: 5.131 MB / 462.9 MB, free: 4.605 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.73/12.12, allocations: 20.84 kB / 462.9 MB, free: 4.586 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)