Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_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.TestPD_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPD_tracking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestPD_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPD_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.006042/0.006042, allocations: 97.66 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.001582/0.001582, allocations: 202.5 kB / 16.68 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.612/1.612, allocations: 205.1 MB / 222.6 MB, free: 4.539 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06436/0.06436, allocations: 10.74 MB / 280.7 MB, free: 10.44 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.002078/0.002078, allocations: 74.64 kB / 390.3 MB, free: 5.531 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2887/0.2907, allocations: 49.01 MB / 439.4 MB, free: 5.348 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestPD_tracking): time 0.004158/0.2949, allocations: 2.39 MB / 441.8 MB, free: 3.656 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002378/0.2973, allocations: 1.446 MB / 443.2 MB, free: 2.664 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002293/0.2975, allocations: 18.06 kB / 443.2 MB, free: 2.652 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007601/0.2983, allocations: 211 kB / 443.4 MB, free: 2.578 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.0004795/0.2987, allocations: 167.3 kB / 443.6 MB, free: 2.5 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001073/0.2998, allocations: 396 kB / 444 MB, free: 2.305 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006486/0.3005, allocations: 0.5944 MB / 444.6 MB, free: 2.051 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001532/0.3006, allocations: 60.67 kB / 444.6 MB, free: 2.016 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002518/0.3009, allocations: 227.5 kB / 444.8 MB, free: 1.922 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003041/0.3012, allocations: 242.6 kB / 445.1 MB, free: 1.824 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.582e-05/0.3012, allocations: 32.56 kB / 445.1 MB, free: 1.824 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002663/0.3015, allocations: 155.8 kB / 445.3 MB, free: 1.785 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001484/0.3017, allocations: 148.7 kB / 445.4 MB, free: 1.715 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001613/0.3018, allocations: 211 kB / 445.6 MB, free: 1.566 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006838/0.3025, allocations: 0.5565 MB / 446.2 MB, free: 1.332 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.3025, allocations: 0 / 446.2 MB, free: 1.332 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3025, allocations: 4 kB / 446.2 MB, free: 1.328 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.558e-05/0.3025, allocations: 0 / 446.2 MB, free: 1.328 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.001294/0.3038, allocations: 0.9136 MB / 447.1 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.815e-05/0.3039, allocations: 13.14 kB / 447.1 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.048e-05/0.3039, allocations: 70.8 kB / 447.2 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000103/0.304, allocations: 61.3 kB / 447.2 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005286/0.3046, allocations: 461.8 kB / 447.7 MB, free: 132 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.074e-05/0.3046, allocations: 26.56 kB / 447.7 MB, free: 120 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.804e-05/0.3047, allocations: 38.78 kB / 447.7 MB, free: 104 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007358/0.3054, allocations: 438.6 kB / 448.2 MB, free: 15.82 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.47e-05/0.3054, allocations: 6.328 kB / 448.2 MB, free: 15.81 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.024e-05/0.3055, allocations: 11.5 kB / 448.2 MB, free: 15.8 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.028e-05/0.3055, allocations: 8.219 kB / 448.2 MB, free: 15.8 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006088/0.3061, allocations: 305 kB / 448.5 MB, free: 15.66 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002564/0.3086, allocations: 1.555 MB / 450.1 MB, free: 14.43 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005005/0.3091, allocations: 233.2 kB / 450.3 MB, free: 14.3 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002659/0.3094, allocations: 137.8 kB / 450.4 MB, free: 14.23 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.869e-05/0.3094, allocations: 7.609 kB / 450.4 MB, free: 14.23 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004543/0.3099, allocations: 240.7 kB / 450.7 MB, free: 14.06 MB / 334.1 MB Notification: Performance of pre-optimization done (n=33): time 2.644e-06/0.3099, allocations: 0 / 450.7 MB, free: 14.06 MB / 334.1 MB Notification: Performance of matching and sorting (n=33): time 0.001149/0.3111, allocations: 0.5552 MB / 451.2 MB, free: 13.77 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.028e-05/0.3111, allocations: 112.5 kB / 451.3 MB, free: 13.64 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006638/0.3118, allocations: 0.5226 MB / 451.8 MB, free: 13.33 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.525e-05/0.3118, allocations: 32.36 kB / 451.9 MB, free: 13.3 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002355/0.3121, allocations: 271.2 kB / 452.1 MB, free: 13.06 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001115/0.3122, allocations: 126.8 kB / 452.3 MB, free: 12.95 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001527/0.3123, allocations: 94.38 kB / 452.4 MB, free: 12.89 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002079/0.3125, allocations: 365.8 kB / 452.7 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002852/0.3128, allocations: 146.2 kB / 452.9 MB, free: 12.47 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004211/0.3133, allocations: 291.1 kB / 453.1 MB, free: 12.22 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002143/0.3154, allocations: 0.8991 MB / 454 MB, free: 11.59 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/0.3154, allocations: 1.062 kB / 454 MB, free: 11.59 MB / 334.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001118/0.3165, allocations: 0.6137 MB / 454.7 MB, free: 11.28 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.799e-05/0.3166, allocations: 38.8 kB / 454.7 MB, free: 11.24 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.339e-05/0.3166, allocations: 8.219 kB / 454.7 MB, free: 11.24 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.517e-05/0.3166, allocations: 11.05 kB / 454.7 MB, free: 11.23 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004482/0.3171, allocations: 109.4 kB / 454.8 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.047e-05/0.3171, allocations: 14.95 kB / 454.8 MB, free: 11.2 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003083/0.3174, allocations: 63.27 kB / 454.9 MB, free: 11.16 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.382e-05/0.3174, allocations: 21.44 kB / 454.9 MB, free: 11.15 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.0005032/0.3179, allocations: 254.6 kB / 455.2 MB, free: 10.94 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.755e-05/0.318, allocations: 68.58 kB / 455.2 MB, free: 10.9 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009659/0.319, allocations: 495.1 kB / 455.7 MB, free: 10.63 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.102e-06/0.319, allocations: 4.156 kB / 455.7 MB, free: 10.63 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.319, allocations: 0 / 455.7 MB, free: 10.63 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.245e-06/0.319, allocations: 3.984 kB / 455.7 MB, free: 10.62 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006075/0.3196, allocations: 451.7 kB / 456.2 MB, free: 10.25 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.3196, allocations: 0 / 456.2 MB, free: 10.25 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004022/0.32, allocations: 70.61 kB / 456.2 MB, free: 10.23 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.288e-06/0.32, allocations: 1 kB / 456.2 MB, free: 10.23 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.818e-05/0.3201, allocations: 22.89 kB / 456.3 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.385e-06/0.3201, allocations: 1.281 kB / 456.3 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.3201, allocations: 1.219 kB / 456.3 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001207/0.3213, allocations: 0.6626 MB / 456.9 MB, free: 9.859 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001368/0.3214, allocations: 128.3 kB / 457.1 MB, free: 9.73 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.352e-05/0.3215, allocations: 25.89 kB / 457.1 MB, free: 9.711 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002082/0.3217, allocations: 16.97 kB / 457.1 MB, free: 9.703 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.461e-05/0.3218, allocations: 22.06 kB / 457.1 MB, free: 9.691 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.164e-05/0.3219, allocations: 12.84 kB / 457.1 MB, free: 9.688 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005029/0.3224, allocations: 370.7 kB / 457.5 MB, free: 9.477 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3224, allocations: 0 / 457.5 MB, free: 9.477 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005747/0.3229, allocations: 115.9 kB / 457.6 MB, free: 9.449 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.00328/0.3262, allocations: 1.556 MB / 459.2 MB, free: 8.348 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000972/0.3272, allocations: 452 kB / 459.6 MB, free: 8.117 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/0.3272, allocations: 0 / 459.6 MB, free: 8.117 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003611/0.3276, allocations: 220.8 kB / 459.8 MB, free: 7.984 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005474/0.3281, allocations: 90.08 kB / 459.9 MB, free: 7.934 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006928/0.335, allocations: 4.705 MB / 464.6 MB, free: 3.25 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005958/0.3356, allocations: 0.8781 MB / 465.5 MB, free: 2.344 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003564/0.336, allocations: 100.1 kB / 465.6 MB, free: 2.246 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002912/0.3363, allocations: 179.4 kB / 465.8 MB, free: 2.07 MB / 334.1 MB Notification: Performance of SimCode: time 1.983e-06/0.3363, allocations: 0 / 465.8 MB, free: 2.07 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04049/0.3768, allocations: 10.44 MB / 476.2 MB, free: 7.656 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.094/9.471, allocations: 15.73 kB / 476.2 MB, free: 7.641 MB / 350.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.sim & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_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_TestPD_tracking.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.pipe 2>&1)