Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.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.Examples.TestI_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestI_tracking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestI_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestI_tracking",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.007099/0.007099, allocations: 96.73 kB / 15.73 MB, free: 6.047 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.00179/0.00179, allocations: 194.8 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.602/1.602, 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.06391/0.06391, 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.00208/0.00208, allocations: 71.91 kB / 390.3 MB, free: 5.516 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3236/0.3257, allocations: 49.02 MB / 439.4 MB, free: 4.902 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestI_tracking): time 0.005871/0.3315, allocations: 2.356 MB / 441.7 MB, free: 3.238 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003906/0.3354, allocations: 1.426 MB / 443.1 MB, free: 2.262 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003631/0.3358, allocations: 18.69 kB / 443.2 MB, free: 2.25 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001167/0.337, allocations: 209.5 kB / 443.4 MB, free: 2.176 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0005902/0.3376, allocations: 163.4 kB / 443.5 MB, free: 2.102 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001473/0.339, allocations: 394 kB / 443.9 MB, free: 1.906 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009921/0.34, allocations: 0.5659 MB / 444.5 MB, free: 1.664 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002402/0.3403, allocations: 67.67 kB / 444.5 MB, free: 1.621 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004673/0.3407, allocations: 217.9 kB / 444.8 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005116/0.3412, allocations: 230.8 kB / 445 MB, free: 1.438 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.459e-05/0.3413, allocations: 30.53 kB / 445 MB, free: 1.438 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004791/0.3418, allocations: 150.1 kB / 445.2 MB, free: 1.402 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002422/0.3421, allocations: 133.9 kB / 445.3 MB, free: 1.34 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002809/0.3423, allocations: 201.8 kB / 445.5 MB, free: 1.195 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001005/0.3434, allocations: 0.5225 MB / 446 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.583e-06/0.3434, allocations: 0.5156 kB / 446 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.3434, allocations: 4 kB / 446 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.673e-05/0.3434, allocations: 0 / 446 MB, free: 0.9688 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001839/0.3452, allocations: 0.866 MB / 446.9 MB, free: 284 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.731e-05/0.3453, allocations: 12.7 kB / 446.9 MB, free: 280 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.141e-05/0.3454, allocations: 73.78 kB / 447 MB, free: 216 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001428/0.3455, allocations: 58.62 kB / 447 MB, free: 184 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008797/0.3464, allocations: 426.5 kB / 447.4 MB, free: 15.87 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001173/0.3465, allocations: 88.38 kB / 447.5 MB, free: 15.79 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001035/0.3466, allocations: 32.91 kB / 447.6 MB, free: 15.77 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001015/0.3476, allocations: 395.3 kB / 447.9 MB, free: 15.54 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.484e-05/0.3476, allocations: 1.25 kB / 447.9 MB, free: 15.54 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.845e-05/0.3477, allocations: 11.81 kB / 448 MB, free: 15.54 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.495e-05/0.3477, allocations: 11.53 kB / 448 MB, free: 15.53 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007717/0.3485, allocations: 270.2 kB / 448.2 MB, free: 15.41 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003273/0.3517, allocations: 1.443 MB / 449.7 MB, free: 14.22 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007693/0.3525, allocations: 188.2 kB / 449.9 MB, free: 14.12 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003541/0.3529, allocations: 119.9 kB / 450 MB, free: 14.05 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.162e-05/0.3529, allocations: 2.5 kB / 450 MB, free: 14.05 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005806/0.3535, allocations: 236 kB / 450.2 MB, free: 13.88 MB / 334.1 MB Notification: Performance of pre-optimization done (n=27): time 3.366e-06/0.3535, allocations: 0 / 450.2 MB, free: 13.88 MB / 334.1 MB Notification: Performance of matching and sorting (n=27): time 0.001415/0.3549, allocations: 490 kB / 450.7 MB, free: 13.64 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001099/0.355, allocations: 114.2 kB / 450.8 MB, free: 13.5 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009122/0.3559, allocations: 492 kB / 451.3 MB, free: 13.21 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.564e-05/0.356, allocations: 31.17 kB / 451.3 MB, free: 13.18 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003033/0.3563, allocations: 252.9 kB / 451.6 MB, free: 12.96 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001187/0.3564, allocations: 98.52 kB / 451.7 MB, free: 12.87 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000197/0.3566, allocations: 79.92 kB / 451.7 MB, free: 12.82 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002591/0.3569, allocations: 359.5 kB / 452.1 MB, free: 12.47 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000362/0.3572, allocations: 112.7 kB / 452.2 MB, free: 12.42 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005141/0.3577, allocations: 242.1 kB / 452.4 MB, free: 12.21 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002415/0.3602, allocations: 0.735 MB / 453.2 MB, free: 11.7 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/0.3602, allocations: 5.188 kB / 453.2 MB, free: 11.7 MB / 334.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.001322/0.3615, allocations: 0.5118 MB / 453.7 MB, free: 11.43 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.237e-05/0.3615, allocations: 38.11 kB / 453.7 MB, free: 11.39 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.058e-05/0.3616, allocations: 3.469 kB / 453.7 MB, free: 11.39 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.663e-05/0.3616, allocations: 13.78 kB / 453.7 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000802/0.3624, allocations: 94.84 kB / 453.8 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.668e-05/0.3624, allocations: 13.53 kB / 453.8 MB, free: 11.35 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003385/0.3627, allocations: 44.38 kB / 453.9 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.617e-05/0.3628, allocations: 17.19 kB / 453.9 MB, free: 11.32 MB / 334.1 MB Warning: Assuming fixed start value for the following 6 variables: processTrack.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real processTrack.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] processTrack.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] process.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real process.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] process.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.TSsignal.combiTimeTable.nextTimeEvent,$whenCondition2,TrackRef.nextEventScaled,TrackRef.nextEvent,$PRE.TrackRef.nextEvent,TrackRef.last,TrackRef.b,TrackRef.a,TSsignal.combiTimeTable.nextTimeEventScaled,$PRE.TSsignal.combiTimeTable.nextTimeEventScaled,TSsignal.combiTimeTable.nextTimeEvent,R_track.ts,$whenCondition1,R.TS_in,R_track.ATreq_in,R.ATreq_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 44 * 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.0004818/0.3633, allocations: 239.3 kB / 454.1 MB, free: 11.12 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000245/0.3635, allocations: 45.91 kB / 454.2 MB, free: 11.09 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001238/0.3647, allocations: 450 kB / 454.6 MB, free: 10.85 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.023e-06/0.3648, allocations: 6.375 kB / 454.6 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.3648, allocations: 1.281 kB / 454.6 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.077e-06/0.3648, allocations: 3.984 kB / 454.6 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000743/0.3655, allocations: 428.1 kB / 455.1 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.3655, allocations: 1.031 kB / 455.1 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009221/0.3664, allocations: 61.48 kB / 455.1 MB, free: 10.46 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.13e-06/0.3664, allocations: 1.281 kB / 455.1 MB, free: 10.46 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.51e-05/0.3665, allocations: 21.28 kB / 455.1 MB, free: 10.45 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.348e-06/0.3665, allocations: 1.406 kB / 455.1 MB, free: 10.45 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.3665, allocations: 4 kB / 455.1 MB, free: 10.45 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00156/0.3681, allocations: 0.601 MB / 455.7 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001611/0.3682, allocations: 129.6 kB / 455.9 MB, free: 9.98 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.839e-05/0.3683, allocations: 9.094 kB / 455.9 MB, free: 9.977 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000244/0.3686, allocations: 15.77 kB / 455.9 MB, free: 9.969 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001187/0.3687, allocations: 20.69 kB / 455.9 MB, free: 9.957 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.297e-05/0.3687, allocations: 12.97 kB / 455.9 MB, free: 9.953 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005784/0.3693, allocations: 341.1 kB / 456.3 MB, free: 9.754 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3693, allocations: 0 / 456.3 MB, free: 9.754 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006952/0.37, allocations: 108.2 kB / 456.4 MB, free: 9.727 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (R.Iout,R_track.Iout,process.Y[3],process.U[2],process.w,processTrack.Y[3],processTrack.U[2],processTrack.w) * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,R_track.ts,TSsignal.combiTimeTable.nextTimeEvent,TSsignal.combiTimeTable.nextTimeEventScaled,TrackRef.a,TrackRef.b,TrackRef.last,TrackRef.nextEvent,TrackRef.nextEventScaled) * Number of discrete states: 8 (TrackRef.nextEvent,TrackRef.last,TrackRef.nextEventScaled,TrackRef.b,TrackRef.a,$whenCondition1,TSsignal.combiTimeTable.nextTimeEventScaled,TSsignal.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * 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.003889/0.3739, allocations: 1.492 MB / 457.9 MB, free: 8.664 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001052/0.3749, allocations: 374.1 kB / 458.2 MB, free: 8.469 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.375, allocations: 0.8125 kB / 458.2 MB, free: 8.469 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004411/0.3754, allocations: 199.8 kB / 458.4 MB, free: 8.344 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006616/0.3761, allocations: 73.52 kB / 458.5 MB, free: 8.305 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007485/0.3835, allocations: 4.163 MB / 462.7 MB, free: 4.969 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000697/0.3842, allocations: 0.8574 MB / 463.5 MB, free: 4.086 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003547/0.3846, allocations: 79.16 kB / 463.6 MB, free: 4.012 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003316/0.3849, allocations: 159.4 kB / 463.7 MB, free: 3.855 MB / 334.1 MB Notification: Performance of SimCode: time 8.52e-07/0.3849, allocations: 0 / 463.7 MB, free: 3.855 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04597/0.4309, allocations: 9.484 MB / 473.2 MB, free: 10.4 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.047/9.478, allocations: 0 / 473.2 MB, free: 10.4 MB / 350.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.sim & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking_res.csv --start-time 0 --stop-time 200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.08 IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestI_tracking.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.pipe 2>&1)