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: "" <> buildModelFMU(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingFO",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingFO",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.007655/0.007655, allocations: 99.81 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.001843/0.001843, allocations: 195.1 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.529/1.529, allocations: 205.1 MB / 222.6 MB, free: 4.488 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05959/0.05959, allocations: 10.75 MB / 280.7 MB, free: 10.38 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.001704/0.001704, allocations: 71.83 kB / 390.4 MB, free: 5.484 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3161/0.3178, allocations: 49.01 MB / 439.4 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO): time 0.003041/0.3209, allocations: 1.807 MB / 441.2 MB, free: 3.781 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001275/0.3222, allocations: 0.655 MB / 441.8 MB, free: 3.316 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001396/0.3224, allocations: 12.72 kB / 441.8 MB, free: 3.309 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001465/0.3226, allocations: 24.16 kB / 441.9 MB, free: 3.289 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.798e-05/0.3227, allocations: 35.42 kB / 441.9 MB, free: 3.262 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003466/0.323, allocations: 102.4 kB / 442 MB, free: 3.207 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003151/0.3234, allocations: 230.4 kB / 442.2 MB, free: 3.102 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001708/0.3235, allocations: 62.78 kB / 442.3 MB, free: 3.066 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000147/0.3237, allocations: 93 kB / 442.4 MB, free: 3.023 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001442/0.3238, allocations: 96.67 kB / 442.5 MB, free: 2.973 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.317e-05/0.3239, allocations: 17.34 kB / 442.5 MB, free: 2.973 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.477e-05/0.3239, allocations: 16.09 kB / 442.5 MB, free: 2.973 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.674e-05/0.324, allocations: 45.88 kB / 442.6 MB, free: 2.945 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.189e-05/0.3241, allocations: 99.56 kB / 442.7 MB, free: 2.875 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002795/0.3244, allocations: 189.9 kB / 442.8 MB, free: 2.797 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.3244, allocations: 0 / 442.8 MB, free: 2.797 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3244, allocations: 4 kB / 442.8 MB, free: 2.793 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.407e-06/0.3244, allocations: 2.078 kB / 442.8 MB, free: 2.793 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.001036/0.3255, allocations: 0.5727 MB / 443.4 MB, free: 2.297 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.569e-05/0.3255, allocations: 13.48 kB / 443.4 MB, free: 2.293 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.632e-05/0.3256, allocations: 54.11 kB / 443.5 MB, free: 2.238 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.877e-05/0.3256, allocations: 27.34 kB / 443.5 MB, free: 2.227 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004566/0.3261, allocations: 299.8 kB / 443.8 MB, free: 1.973 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.067e-05/0.3262, allocations: 96.7 kB / 443.9 MB, free: 1.871 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.292e-05/0.3262, allocations: 19.92 kB / 443.9 MB, free: 1.863 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004762/0.3267, allocations: 181 kB / 444.1 MB, free: 1.789 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/0.3267, allocations: 3.984 kB / 444.1 MB, free: 1.785 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.012e-05/0.3268, allocations: 10.17 kB / 444.1 MB, free: 1.777 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.472e-06/0.3268, allocations: 2.812 kB / 444.1 MB, free: 1.777 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005144/0.3273, allocations: 144.2 kB / 444.3 MB, free: 1.746 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001074/0.3284, allocations: 0.5634 MB / 444.8 MB, free: 1.355 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004997/0.3289, allocations: 145.2 kB / 445 MB, free: 1.301 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002529/0.3291, allocations: 73.86 kB / 445 MB, free: 1.277 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.782e-05/0.3292, allocations: 5.719 kB / 445 MB, free: 1.273 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003989/0.3296, allocations: 153.5 kB / 445.2 MB, free: 1.195 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 1.753e-06/0.3296, allocations: 0 / 445.2 MB, free: 1.195 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.0009343/0.3305, allocations: 270.9 kB / 445.4 MB, free: 1.105 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.641e-05/0.3306, allocations: 58.61 kB / 445.5 MB, free: 1.039 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001943/0.3308, allocations: 201.3 kB / 445.7 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.119e-05/0.3308, allocations: 31.86 kB / 445.7 MB, free: 0.875 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.906e-05/0.3309, allocations: 146.5 kB / 445.9 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.455e-05/0.3309, allocations: 49.12 kB / 445.9 MB, free: 0.707 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.694e-05/0.331, allocations: 40.53 kB / 446 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.887e-05/0.3311, allocations: 334.3 kB / 446.3 MB, free: 364 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002901/0.3314, allocations: 78.78 kB / 446.4 MB, free: 344 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002934/0.3317, allocations: 110.4 kB / 446.5 MB, free: 288 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005215/0.3322, allocations: 203.2 kB / 446.7 MB, free: 176 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.3322, allocations: 0 / 446.7 MB, free: 176 kB / 318.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0006803/0.3329, allocations: 277.2 kB / 446.9 MB, free: 44 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.767e-05/0.333, allocations: 34.41 kB / 447 MB, free: 12 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.333, allocations: 1.125 kB / 447 MB, free: 12 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.799e-05/0.333, allocations: 6.219 kB / 447 MB, free: 8 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007283/0.3337, allocations: 67.69 kB / 447.1 MB, free: 8 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.157e-06/0.3338, allocations: 2.406 kB / 447.1 MB, free: 8 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002413/0.334, allocations: 32.84 kB / 447.1 MB, free: 0 / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.197e-05/0.3341, allocations: 9.094 kB / 447.1 MB, free: 15.99 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 ($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 0.0001404/0.3342, allocations: 135.7 kB / 447.2 MB, free: 15.86 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.66e-05/0.3343, allocations: 20.95 kB / 447.2 MB, free: 15.85 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.851e-05/0.3343, allocations: 20.03 kB / 447.3 MB, free: 15.84 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.917e-06/0.3343, allocations: 2.156 kB / 447.3 MB, free: 15.84 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/0.3344, allocations: 0 / 447.3 MB, free: 15.84 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.3344, allocations: 1.828 kB / 447.3 MB, free: 15.84 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003203/0.3347, allocations: 272 kB / 447.5 MB, free: 15.6 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.3347, allocations: 4.5 kB / 447.5 MB, free: 15.6 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007934/0.3355, allocations: 72.19 kB / 447.6 MB, free: 15.59 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.074e-06/0.3355, allocations: 0 / 447.6 MB, free: 15.59 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.476e-05/0.3356, allocations: 11.2 kB / 447.6 MB, free: 15.59 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.537e-06/0.3356, allocations: 1.078 kB / 447.6 MB, free: 15.59 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.3356, allocations: 1.25 kB / 447.6 MB, free: 15.59 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009458/0.3365, allocations: 318.5 kB / 447.9 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.74e-05/0.3366, allocations: 97.06 kB / 448 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.356e-05/0.3366, allocations: 6.188 kB / 448 MB, free: 15.31 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001945/0.3368, allocations: 29.03 kB / 448.1 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.224e-05/0.3369, allocations: 19.47 kB / 448.1 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.246e-05/0.337, allocations: 3.938 kB / 448.1 MB, free: 15.29 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001287/0.3371, allocations: 147.5 kB / 448.2 MB, free: 15.18 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3371, allocations: 0.9688 kB / 448.2 MB, free: 15.18 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002748/0.3374, allocations: 34.78 kB / 448.3 MB, free: 15.17 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.001266/0.3387, allocations: 0.859 MB / 449.1 MB, free: 14.44 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006875/0.3394, allocations: 237 kB / 449.4 MB, free: 14.3 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.3394, allocations: 0 / 449.4 MB, free: 14.3 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002962/0.3397, allocations: 89.28 kB / 449.4 MB, free: 14.26 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002999/0.34, allocations: 31.38 kB / 449.5 MB, free: 14.24 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003578/0.3436, allocations: 2.227 MB / 451.7 MB, free: 12.5 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002872/0.3439, allocations: 0.7312 MB / 452.4 MB, free: 11.78 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001244/0.344, allocations: 24.36 kB / 452.5 MB, free: 11.77 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001152/0.3441, allocations: 65.58 kB / 452.5 MB, free: 11.71 MB / 334.1 MB Notification: Performance of SimCode: time 8.62e-07/0.3442, allocations: 0 / 452.5 MB, free: 11.71 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03226/0.3764, allocations: 4.124 MB / 456.6 MB, free: 9.59 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.04/8.416, allocations: 4.844 kB / 456.6 MB, free: 9.586 MB / 334.1 MB (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 & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO_res.csv --start-time 0 --stop-time 15 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.006 IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingFO.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO.pipe 2>&1)