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.00556/0.00556, allocations: 103.6 kB / 15.74 MB, free: 6.039 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.001193/0.001193, allocations: 201 kB / 16.68 MB, free: 5.965 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.393/1.393, allocations: 205.1 MB / 222.5 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06058/0.06058, allocations: 10.74 MB / 280.6 MB, free: 1.289 MB / 222.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.001856/0.001856, allocations: 71.56 kB / 390.3 MB, free: 46.26 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07717/0.07904, allocations: 49.03 MB / 439.4 MB, free: 4.32 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestD_tracking): time 0.003331/0.08241, allocations: 2.352 MB / 441.7 MB, free: 1.953 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001894/0.08434, allocations: 1.439 MB / 443.1 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003135/0.08468, allocations: 19.81 kB / 443.2 MB, free: 496 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000684/0.0854, allocations: 207.1 kB / 443.4 MB, free: 288 kB / 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.0004232/0.08584, allocations: 167.2 kB / 443.5 MB, free: 120 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001001/0.08685, allocations: 397.3 kB / 443.9 MB, free: 15.73 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008828/0.08775, allocations: 0.6016 MB / 444.5 MB, free: 15.13 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000195/0.08796, allocations: 85.22 kB / 444.6 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003859/0.08835, allocations: 235.2 kB / 444.8 MB, free: 14.82 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000412/0.08877, allocations: 235 kB / 445.1 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001128/0.0889, allocations: 32 kB / 445.1 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003095/0.08922, allocations: 163.8 kB / 445.3 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001681/0.08939, allocations: 135.6 kB / 445.4 MB, free: 14.26 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00023/0.08963, allocations: 218.6 kB / 445.6 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007901/0.09043, allocations: 0.5485 MB / 446.1 MB, free: 13.5 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.676e-06/0.09044, allocations: 0 / 446.1 MB, free: 13.5 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.09045, allocations: 0 / 446.1 MB, free: 13.5 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.346e-05/0.09047, allocations: 0 / 446.1 MB, free: 13.5 MB / 334.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.001485/0.09196, allocations: 0.9033 MB / 447.1 MB, free: 12.53 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.921e-05/0.09201, allocations: 11.89 kB / 447.1 MB, free: 12.52 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.725e-05/0.09209, allocations: 78.64 kB / 447.1 MB, free: 12.43 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001045/0.0922, allocations: 64.52 kB / 447.2 MB, free: 12.37 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006354/0.09285, allocations: 458.8 kB / 447.7 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.831e-05/0.09289, allocations: 21.03 kB / 447.7 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.433e-05/0.09296, allocations: 47.83 kB / 447.7 MB, free: 11.81 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006423/0.0936, allocations: 440.3 kB / 448.1 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.986e-05/0.09364, allocations: 0 / 448.1 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.336e-05/0.09368, allocations: 12 kB / 448.2 MB, free: 11.35 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.001e-05/0.09369, allocations: 8 kB / 448.2 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005273/0.09422, allocations: 314.4 kB / 448.5 MB, free: 11.03 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002297/0.09653, allocations: 1.552 MB / 450 MB, free: 9.395 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004367/0.09698, allocations: 235 kB / 450.3 MB, free: 9.156 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002459/0.09724, allocations: 153 kB / 450.4 MB, free: 9.004 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.696e-05/0.09729, allocations: 8.266 kB / 450.4 MB, free: 8.996 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004075/0.0977, allocations: 251.1 kB / 450.7 MB, free: 8.734 MB / 334.1 MB Notification: Performance of pre-optimization done (n=33): time 2.285e-06/0.09772, allocations: 0 / 450.7 MB, free: 8.734 MB / 334.1 MB Notification: Performance of matching and sorting (n=33): time 0.0009414/0.09866, allocations: 0.5484 MB / 451.2 MB, free: 8.176 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.114e-05/0.09875, allocations: 106.8 kB / 451.3 MB, free: 8.047 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005337/0.09929, allocations: 0.5214 MB / 451.8 MB, free: 7.512 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.849e-05/0.09932, allocations: 33.64 kB / 451.9 MB, free: 7.473 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001807/0.09951, allocations: 276.3 kB / 452.1 MB, free: 7.199 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001013/0.09962, allocations: 119 kB / 452.3 MB, free: 7.082 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001233/0.09975, allocations: 102.1 kB / 452.4 MB, free: 6.977 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001521/0.09991, allocations: 366.8 kB / 452.7 MB, free: 6.609 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002472/0.1002, allocations: 140.9 kB / 452.8 MB, free: 6.473 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003344/0.1005, allocations: 293.5 kB / 453.1 MB, free: 6.125 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001785/0.1023, allocations: 0.8984 MB / 454 MB, free: 5.145 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.1023, allocations: 0 / 454 MB, free: 5.145 MB / 334.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.000891/0.1032, allocations: 0.6169 MB / 454.7 MB, free: 4.516 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.698e-05/0.1033, allocations: 43.72 kB / 454.7 MB, free: 4.469 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.158e-05/0.1033, allocations: 11.92 kB / 454.7 MB, free: 4.457 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.018e-05/0.1033, allocations: 4 kB / 454.7 MB, free: 4.453 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004449/0.1038, allocations: 111.8 kB / 454.8 MB, free: 4.344 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.632e-05/0.1038, allocations: 12.44 kB / 454.8 MB, free: 4.332 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002208/0.104, allocations: 63.61 kB / 454.9 MB, free: 4.27 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.4e-05/0.1041, allocations: 20 kB / 454.9 MB, free: 4.25 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.0002969/0.1044, allocations: 261.2 kB / 455.2 MB, free: 3.98 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.454e-05/0.1045, allocations: 51.67 kB / 455.2 MB, free: 3.93 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007912/0.1053, allocations: 495.9 kB / 455.7 MB, free: 3.434 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.571e-06/0.1053, allocations: 4 kB / 455.7 MB, free: 3.43 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.1053, allocations: 4 kB / 455.7 MB, free: 3.426 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.1053, allocations: 7.984 kB / 455.7 MB, free: 3.418 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004554/0.1058, allocations: 449.2 kB / 456.2 MB, free: 2.93 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.265e-06/0.1058, allocations: 4 kB / 456.2 MB, free: 2.926 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000387/0.1062, allocations: 63.89 kB / 456.2 MB, free: 2.863 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.399e-06/0.1062, allocations: 4 kB / 456.2 MB, free: 2.859 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.472e-05/0.1062, allocations: 19.92 kB / 456.2 MB, free: 2.84 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.819e-06/0.1062, allocations: 4 kB / 456.2 MB, free: 2.836 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1062, allocations: 0 / 456.2 MB, free: 2.836 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00103/0.1073, allocations: 0.6637 MB / 456.9 MB, free: 2.148 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001139/0.1074, allocations: 128.7 kB / 457 MB, free: 2.004 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.9e-05/0.1075, allocations: 23.92 kB / 457.1 MB, free: 1.98 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000174/0.1077, allocations: 19.92 kB / 457.1 MB, free: 1.961 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.929e-05/0.1077, allocations: 19.97 kB / 457.1 MB, free: 1.941 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.947e-05/0.1078, allocations: 12 kB / 457.1 MB, free: 1.93 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003714/0.1082, allocations: 366.8 kB / 457.5 MB, free: 1.574 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1082, allocations: 4 kB / 457.5 MB, free: 1.57 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004005/0.1086, allocations: 111.8 kB / 457.6 MB, free: 1.461 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.002206/0.1108, allocations: 1.562 MB / 459.1 MB, free: 15.98 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007585/0.1116, allocations: 490.9 kB / 459.6 MB, free: 15.49 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.1116, allocations: 0 / 459.6 MB, free: 15.49 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003463/0.1119, allocations: 260.3 kB / 459.9 MB, free: 15.22 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004059/0.1123, allocations: 78.3 kB / 460 MB, free: 15.16 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005554/0.1179, allocations: 4.695 MB / 464.7 MB, free: 10.27 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004914/0.1184, allocations: 0.8703 MB / 465.5 MB, free: 9.371 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002706/0.1187, allocations: 99.38 kB / 465.6 MB, free: 9.273 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002645/0.119, allocations: 179.4 kB / 465.8 MB, free: 9.098 MB / 350.1 MB Notification: Performance of SimCode: time 7.21e-07/0.119, allocations: 0 / 465.8 MB, free: 9.098 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03278/0.1518, allocations: 10.36 MB / 476.1 MB, free: 14.77 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.792/8.944, allocations: 19.31 kB / 476.2 MB, free: 14.75 MB / 366.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)