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.001946/0.001946, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.006602/0.006602, allocations: 197.4 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.595/3.595, allocations: 205.1 MB / 222.4 MB, free: 4.57 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.1488/0.1488, allocations: 10.76 MB / 280.5 MB, free: 10.49 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.002876/0.002876, allocations: 63.89 kB / 340.6 MB, free: 23.25 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2161/0.219, allocations: 49.02 MB / 389.7 MB, free: 6.16 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestPD_tracking): time 0.01292/0.232, allocations: 2.377 MB / 392 MB, free: 3.762 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004846/0.2369, allocations: 1.431 MB / 393.5 MB, free: 2.32 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004605/0.2416, allocations: 15.88 kB / 393.5 MB, free: 2.305 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00143/0.2431, allocations: 223 kB / 393.7 MB, free: 2.086 MB / 286.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.001026/0.2442, allocations: 159.2 kB / 393.9 MB, free: 1.93 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00239/0.2466, allocations: 399.1 kB / 394.2 MB, free: 1.539 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001519/0.2481, allocations: 0.6014 MB / 394.8 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003734/0.2485, allocations: 73.34 kB / 394.9 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006482/0.2492, allocations: 231.1 kB / 395.1 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007056/0.2499, allocations: 243 kB / 395.4 MB, free: 400 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001705/0.2501, allocations: 32 kB / 395.4 MB, free: 368 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006016/0.2507, allocations: 147.8 kB / 395.6 MB, free: 220 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002878/0.2511, allocations: 147.5 kB / 395.7 MB, free: 72 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005355/0.2516, allocations: 214.7 kB / 395.9 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001187/0.2528, allocations: 0.5332 MB / 396.4 MB, free: 15.32 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.487e-06/0.2528, allocations: 4 kB / 396.4 MB, free: 15.32 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.544e-06/0.2529, allocations: 0 / 396.4 MB, free: 15.32 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.703e-05/0.2529, allocations: 0 / 396.4 MB, free: 15.32 MB / 302.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.002925/0.2558, allocations: 0.8922 MB / 397.3 MB, free: 14.37 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.94e-05/0.2559, allocations: 15.89 kB / 397.4 MB, free: 14.35 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001579/0.2561, allocations: 70.72 kB / 397.4 MB, free: 14.27 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000221/0.2564, allocations: 60.28 kB / 397.5 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001227/0.2576, allocations: 434.4 kB / 397.9 MB, free: 13.75 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.849e-05/0.2577, allocations: 25.03 kB / 397.9 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000134/0.2578, allocations: 43.84 kB / 398 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001381/0.2592, allocations: 428.3 kB / 398.4 MB, free: 13.24 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.487e-05/0.2593, allocations: 8 kB / 398.4 MB, free: 13.23 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.086e-05/0.2594, allocations: 19.97 kB / 398.4 MB, free: 13.21 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.967e-05/0.2594, allocations: 8 kB / 398.4 MB, free: 13.2 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001214/0.2607, allocations: 310.3 kB / 398.7 MB, free: 12.9 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009004/0.2697, allocations: 1.567 MB / 400.3 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009585/0.2707, allocations: 244.1 kB / 400.5 MB, free: 11.01 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004809/0.2713, allocations: 149 kB / 400.7 MB, free: 10.86 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.416e-05/0.2714, allocations: 12.22 kB / 400.7 MB, free: 10.85 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007556/0.2721, allocations: 235.2 kB / 400.9 MB, free: 10.6 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 4.438e-06/0.2722, allocations: 0 / 400.9 MB, free: 10.6 MB / 302.1 MB Notification: Performance of matching and sorting (n=33): time 0.001953/0.2741, allocations: 0.548 MB / 401.5 MB, free: 10.04 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001293/0.2743, allocations: 114.8 kB / 401.6 MB, free: 9.906 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001186/0.2755, allocations: 0.5253 MB / 402.1 MB, free: 9.371 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.114e-05/0.2756, allocations: 29.7 kB / 402.1 MB, free: 9.336 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003719/0.276, allocations: 275.9 kB / 402.4 MB, free: 9.062 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001881/0.2762, allocations: 110.5 kB / 402.5 MB, free: 8.953 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002705/0.2765, allocations: 98.02 kB / 402.6 MB, free: 8.852 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002739/0.2768, allocations: 366.8 kB / 403 MB, free: 8.484 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005642/0.2773, allocations: 140.9 kB / 403.1 MB, free: 8.344 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007669/0.2781, allocations: 286.1 kB / 403.4 MB, free: 8.004 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007878/0.286, allocations: 0.9061 MB / 404.3 MB, free: 7.016 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.717e-05/0.2861, allocations: 4 kB / 404.3 MB, free: 7.012 MB / 302.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.002264/0.2884, allocations: 0.6088 MB / 404.9 MB, free: 6.391 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.575e-05/0.2885, allocations: 40.83 kB / 404.9 MB, free: 6.348 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.452e-05/0.2886, allocations: 7.938 kB / 405 MB, free: 6.34 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.73e-05/0.2886, allocations: 8 kB / 405 MB, free: 6.332 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000956/0.2896, allocations: 107.8 kB / 405.1 MB, free: 6.227 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.122e-05/0.2896, allocations: 8.469 kB / 405.1 MB, free: 6.219 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006344/0.2903, allocations: 59.42 kB / 405.1 MB, free: 6.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.896e-05/0.2904, allocations: 27.92 kB / 405.2 MB, free: 6.133 MB / 302.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.0006841/0.2911, allocations: 269.2 kB / 405.4 MB, free: 5.855 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000263/0.2914, allocations: 51.34 kB / 405.5 MB, free: 5.805 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001846/0.2932, allocations: 492.3 kB / 406 MB, free: 5.309 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.24e-05/0.2933, allocations: 4 kB / 406 MB, free: 5.305 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.085e-05/0.2933, allocations: 0 / 406 MB, free: 5.305 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.609e-05/0.2933, allocations: 11.98 kB / 406 MB, free: 5.293 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001007/0.2944, allocations: 449 kB / 406.4 MB, free: 4.805 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-05/0.2944, allocations: 0 / 406.4 MB, free: 4.805 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008397/0.2953, allocations: 71.89 kB / 406.5 MB, free: 4.734 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.102e-05/0.2953, allocations: 0 / 406.5 MB, free: 4.734 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.619e-05/0.2954, allocations: 19.92 kB / 406.5 MB, free: 4.715 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.78e-06/0.2954, allocations: 0 / 406.5 MB, free: 4.715 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.2954, allocations: 0 / 406.5 MB, free: 4.715 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002105/0.2975, allocations: 0.6711 MB / 407.2 MB, free: 4.016 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002641/0.2978, allocations: 132.3 kB / 407.3 MB, free: 3.867 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001464/0.298, allocations: 15.92 kB / 407.3 MB, free: 3.852 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000273/0.2983, allocations: 15.98 kB / 407.3 MB, free: 3.836 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001339/0.2984, allocations: 27.97 kB / 407.4 MB, free: 3.809 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.219e-05/0.2985, allocations: 12 kB / 407.4 MB, free: 3.797 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007629/0.2992, allocations: 366.8 kB / 407.7 MB, free: 3.441 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.527e-06/0.2993, allocations: 4.109 kB / 407.7 MB, free: 3.438 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008492/0.3001, allocations: 123.8 kB / 407.9 MB, free: 3.316 MB / 302.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.008598/0.3087, allocations: 1.539 MB / 409.4 MB, free: 1.848 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001805/0.3106, allocations: 0.5184 MB / 409.9 MB, free: 1.316 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.612e-06/0.3107, allocations: 0 / 409.9 MB, free: 1.316 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006398/0.3113, allocations: 252.3 kB / 410.2 MB, free: 1.059 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001034/0.3124, allocations: 86.09 kB / 410.2 MB, free: 0.9727 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01263/0.325, allocations: 4.783 MB / 415 MB, free: 12 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005074/0.3302, allocations: 0.8703 MB / 415.9 MB, free: 11.1 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.00078/0.331, allocations: 104 kB / 416 MB, free: 11 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004822/0.3315, allocations: 179.4 kB / 416.2 MB, free: 10.82 MB / 318.1 MB Notification: Performance of SimCode: time 1.203e-06/0.3316, allocations: 0 / 416.2 MB, free: 10.82 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1795/0.511, allocations: 10.25 MB / 426.4 MB, free: 0.582 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.48/19.99, allocations: 15.5 kB / 426.4 MB, free: 0.5703 MB / 318.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)