Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_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.TestD_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestD_tracking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestD_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestD_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.008304/0.008304, allocations: 101.7 kB / 15.73 MB, free: 6.062 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.001424/0.001424, allocations: 194.5 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.593/1.593, allocations: 205.1 MB / 222.6 MB, free: 4.516 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06345/0.06345, allocations: 10.75 MB / 280.7 MB, free: 10.39 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.002212/0.002212, allocations: 71.88 kB / 390.4 MB, free: 5.504 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3218/0.324, allocations: 49.02 MB / 439.4 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestD_tracking): time 0.00379/0.3278, allocations: 2.361 MB / 441.7 MB, free: 3.402 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002354/0.3301, allocations: 1.44 MB / 443.2 MB, free: 2.414 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002899/0.3304, allocations: 14.75 kB / 443.2 MB, free: 2.406 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008154/0.3312, allocations: 214.6 kB / 443.4 MB, free: 2.328 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.0004566/0.3317, allocations: 162.9 kB / 443.6 MB, free: 2.254 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001359/0.333, allocations: 397.7 kB / 443.9 MB, free: 2.055 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008752/0.3339, allocations: 0.588 MB / 444.5 MB, free: 1.805 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001854/0.3341, allocations: 64.03 kB / 444.6 MB, free: 1.766 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004044/0.3345, allocations: 227.1 kB / 444.8 MB, free: 1.672 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004534/0.3349, allocations: 237.9 kB / 445 MB, free: 1.578 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.764e-05/0.335, allocations: 32.25 kB / 445.1 MB, free: 1.578 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004328/0.3355, allocations: 160.1 kB / 445.2 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000248/0.3357, allocations: 148.9 kB / 445.4 MB, free: 1.465 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002791/0.336, allocations: 210.3 kB / 445.6 MB, free: 1.316 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009494/0.3369, allocations: 0.5558 MB / 446.1 MB, free: 1.082 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.3369, allocations: 0 / 446.1 MB, free: 1.082 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3369, allocations: 0 / 446.1 MB, free: 1.082 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.002e-05/0.337, allocations: 0 / 446.1 MB, free: 1.082 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: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.001771/0.3387, allocations: 0.8998 MB / 447 MB, free: 376 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.548e-05/0.3388, allocations: 14 kB / 447.1 MB, free: 372 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.36e-05/0.3389, allocations: 70.33 kB / 447.1 MB, free: 312 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001257/0.339, allocations: 65.11 kB / 447.2 MB, free: 276 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007257/0.3397, allocations: 461.6 kB / 447.6 MB, free: 15.93 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.091e-05/0.3398, allocations: 24.31 kB / 447.7 MB, free: 15.92 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.207e-05/0.3398, allocations: 43.58 kB / 447.7 MB, free: 15.9 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009495/0.3408, allocations: 434.5 kB / 448.1 MB, free: 15.62 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.582e-05/0.3408, allocations: 6.641 kB / 448.1 MB, free: 15.62 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.304e-05/0.3409, allocations: 10.56 kB / 448.1 MB, free: 15.61 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.555e-05/0.3409, allocations: 7.969 kB / 448.2 MB, free: 15.61 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007151/0.3416, allocations: 320.4 kB / 448.5 MB, free: 15.46 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002712/0.3443, allocations: 1.553 MB / 450 MB, free: 14.21 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004802/0.3448, allocations: 229.8 kB / 450.2 MB, free: 14.1 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002421/0.345, allocations: 140.8 kB / 450.4 MB, free: 14.02 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.645e-05/0.3451, allocations: 2.984 kB / 450.4 MB, free: 14.02 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005393/0.3456, allocations: 245.4 kB / 450.6 MB, free: 13.85 MB / 334.1 MB Notification: Performance of pre-optimization done (n=33): time 5.791e-06/0.3456, allocations: 4 kB / 450.6 MB, free: 13.85 MB / 334.1 MB Notification: Performance of matching and sorting (n=33): time 0.001325/0.3469, allocations: 0.5471 MB / 451.2 MB, free: 13.57 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001195/0.3471, allocations: 111.3 kB / 451.3 MB, free: 13.44 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007889/0.3479, allocations: 0.5213 MB / 451.8 MB, free: 13.13 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.175e-05/0.3479, allocations: 32.45 kB / 451.8 MB, free: 13.09 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002456/0.3481, allocations: 269.3 kB / 452.1 MB, free: 12.86 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00012/0.3483, allocations: 123.5 kB / 452.2 MB, free: 12.75 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000155/0.3484, allocations: 95.33 kB / 452.3 MB, free: 12.69 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000203/0.3486, allocations: 372.5 kB / 452.7 MB, free: 12.33 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002925/0.3489, allocations: 138.7 kB / 452.8 MB, free: 12.27 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004452/0.3494, allocations: 286.1 kB / 453.1 MB, free: 12.02 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00204/0.3514, allocations: 0.9059 MB / 454 MB, free: 11.39 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.878e-06/0.3514, allocations: 1.156 kB / 454 MB, free: 11.39 MB / 334.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.00108/0.3525, allocations: 0.6181 MB / 454.6 MB, free: 11.07 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.507e-05/0.3525, allocations: 42.98 kB / 454.7 MB, free: 11.04 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.109e-05/0.3525, allocations: 3.438 kB / 454.7 MB, free: 11.04 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.486e-05/0.3526, allocations: 6.844 kB / 454.7 MB, free: 11.04 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004553/0.353, allocations: 107.5 kB / 454.8 MB, free: 11.01 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.001e-05/0.3531, allocations: 14.39 kB / 454.8 MB, free: 11 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000305/0.3534, allocations: 58.77 kB / 454.8 MB, free: 10.96 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.283e-05/0.3534, allocations: 21.62 kB / 454.9 MB, free: 10.96 MB / 334.1 MB Warning: Assuming fixed start value for the following 10 variables: processTrack.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real processTrack.U[3]:VARIABLE(fixed = true protected = true ) type: Real [3] processTrack.U[2]:VARIABLE(fixed = true protected = true ) type: Real [3] processTrack.Y[4]:VARIABLE(fixed = true protected = true ) type: Real [4] processTrack.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [4] process.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real process.U[3]:VARIABLE(fixed = true protected = true ) type: Real [3] process.U[2]:VARIABLE(fixed = true protected = true ) type: Real [3] process.Y[4]:VARIABLE(fixed = true protected = true ) type: Real [4] process.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [4] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * 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 (59): * Single equations (assignments): 58 * 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.0004488/0.3538, allocations: 266.4 kB / 455.1 MB, free: 10.74 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.658e-05/0.3539, allocations: 52.33 kB / 455.2 MB, free: 10.71 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00093/0.3549, allocations: 499.1 kB / 455.7 MB, free: 10.44 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.3549, allocations: 3.375 kB / 455.7 MB, free: 10.44 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.219e-06/0.3549, allocations: 1.25 kB / 455.7 MB, free: 10.44 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.711e-06/0.3549, allocations: 0 / 455.7 MB, free: 10.44 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005618/0.3555, allocations: 451 kB / 456.1 MB, free: 10.07 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.494e-06/0.3555, allocations: 0 / 456.1 MB, free: 10.07 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000397/0.3559, allocations: 71.23 kB / 456.2 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.499e-06/0.3559, allocations: 1.375 kB / 456.2 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.458e-05/0.3559, allocations: 14.27 kB / 456.2 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.3559, allocations: 1.375 kB / 456.2 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/0.3559, allocations: 5.406 kB / 456.2 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001153/0.3571, allocations: 0.6815 MB / 456.9 MB, free: 9.66 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001251/0.3572, allocations: 131.9 kB / 457 MB, free: 9.527 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.029e-05/0.3573, allocations: 10.28 kB / 457 MB, free: 9.523 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000173/0.3574, allocations: 16.67 kB / 457 MB, free: 9.516 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.577e-05/0.3575, allocations: 22.72 kB / 457.1 MB, free: 9.504 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.352e-05/0.3576, allocations: 16.86 kB / 457.1 MB, free: 9.496 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005229/0.3581, allocations: 359.9 kB / 457.4 MB, free: 9.293 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3581, allocations: 0 / 457.4 MB, free: 9.293 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006117/0.3587, allocations: 128.8 kB / 457.6 MB, free: 9.254 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 12 (R.Fin,R_track.Fin,process.Y[3],process.Y[4],process.U[2],process.U[3],process.w,processTrack.Y[3],processTrack.Y[4],processTrack.U[2],processTrack.U[3],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 (30): * Single equations (assignments): 27 * 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.003173/0.3619, allocations: 1.557 MB / 459.1 MB, free: 8.156 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000967/0.3629, allocations: 447.6 kB / 459.5 MB, free: 7.93 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.3629, allocations: 0 / 459.5 MB, free: 7.93 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003822/0.3632, allocations: 225.5 kB / 459.8 MB, free: 7.793 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005489/0.3638, allocations: 77.14 kB / 459.8 MB, free: 7.754 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007049/0.3708, allocations: 4.684 MB / 464.5 MB, free: 3.191 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005352/0.3714, allocations: 0.8742 MB / 465.4 MB, free: 2.289 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002793/0.3716, allocations: 99.33 kB / 465.5 MB, free: 2.191 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002588/0.3719, allocations: 171.4 kB / 465.7 MB, free: 2.023 MB / 334.1 MB Notification: Performance of SimCode: time 7.51e-07/0.3719, allocations: 4 kB / 465.7 MB, free: 2.02 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03832/0.4102, allocations: 10.39 MB / 476.1 MB, free: 7.66 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.147/9.558, allocations: 19.86 kB / 476.1 MB, free: 7.641 MB / 350.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.sim & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking_res.csv --start-time 0 --stop-time 120 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.048 IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestD_tracking.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.pipe 2>&1)