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.001979/0.00198, allocations: 108 kB / 15.6 MB, free: 132 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.002379/0.002379, allocations: 194 kB / 16.53 MB, free: 6.391 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.804/3.804, allocations: 205.1 MB / 222.4 MB, free: 4.566 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.1246/0.1246, allocations: 10.74 MB / 280.5 MB, free: 10.48 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.002364/0.002364, allocations: 67.89 kB / 340.6 MB, free: 23.21 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2131/0.2155, allocations: 49.02 MB / 389.7 MB, free: 6.129 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestI_tracking): time 0.008231/0.2238, allocations: 2.358 MB / 392 MB, free: 3.75 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0051/0.229, allocations: 1.419 MB / 393.4 MB, free: 2.32 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005611/0.2296, allocations: 15.88 kB / 393.5 MB, free: 2.305 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001508/0.2313, allocations: 219.1 kB / 393.7 MB, free: 2.09 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.001033/0.2324, allocations: 167.2 kB / 393.8 MB, free: 1.926 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001931/0.2343, allocations: 395 kB / 394.2 MB, free: 1.539 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001262/0.2356, allocations: 0.5694 MB / 394.8 MB, free: 0.9688 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003271/0.2359, allocations: 73.36 kB / 394.9 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004678/0.2364, allocations: 219.2 kB / 395.1 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001819/0.2383, allocations: 235 kB / 395.3 MB, free: 456 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001155/0.2384, allocations: 28 kB / 395.3 MB, free: 428 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005922/0.239, allocations: 147.9 kB / 395.5 MB, free: 280 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003231/0.2393, allocations: 131.6 kB / 395.6 MB, free: 148 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004092/0.2398, allocations: 206.7 kB / 395.8 MB, free: 15.94 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001164/0.241, allocations: 0.4983 MB / 396.3 MB, free: 15.44 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.694e-05/0.241, allocations: 4 kB / 396.3 MB, free: 15.44 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.238e-06/0.241, allocations: 0 / 396.3 MB, free: 15.44 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.443e-05/0.241, allocations: 0 / 396.3 MB, free: 15.44 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.002531/0.2436, allocations: 0.8455 MB / 397.1 MB, free: 14.53 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.735e-05/0.2437, allocations: 11.89 kB / 397.2 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001472/0.2438, allocations: 70.72 kB / 397.2 MB, free: 14.44 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001977/0.244, allocations: 56.28 kB / 397.3 MB, free: 14.39 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001021/0.2451, allocations: 418.3 kB / 397.7 MB, free: 13.94 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001747/0.2453, allocations: 76.28 kB / 397.8 MB, free: 13.85 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001162/0.2454, allocations: 35.91 kB / 397.8 MB, free: 13.82 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001172/0.2466, allocations: 399.6 kB / 398.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.007e-05/0.2466, allocations: 4 kB / 398.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.693e-05/0.2467, allocations: 15.98 kB / 398.2 MB, free: 13.38 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.497e-05/0.2467, allocations: 4 kB / 398.2 MB, free: 13.38 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00072/0.2474, allocations: 270 kB / 398.5 MB, free: 13.11 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003398/0.2509, allocations: 1.457 MB / 399.9 MB, free: 11.57 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007546/0.2517, allocations: 206.2 kB / 400.1 MB, free: 11.37 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003267/0.252, allocations: 124.9 kB / 400.3 MB, free: 11.24 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.846e-05/0.2521, allocations: 7.984 kB / 400.3 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006048/0.2527, allocations: 215 kB / 400.5 MB, free: 11.01 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 5.14e-06/0.2527, allocations: 3.938 kB / 400.5 MB, free: 11 MB / 302.1 MB Notification: Performance of matching and sorting (n=27): time 0.001488/0.2542, allocations: 0.4894 MB / 401 MB, free: 10.5 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001268/0.2543, allocations: 110.8 kB / 401.1 MB, free: 10.37 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009266/0.2553, allocations: 489.7 kB / 401.6 MB, free: 9.887 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.922e-05/0.2554, allocations: 33.7 kB / 401.6 MB, free: 9.848 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003425/0.2557, allocations: 252.1 kB / 401.8 MB, free: 9.598 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001287/0.2559, allocations: 90.8 kB / 401.9 MB, free: 9.508 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002107/0.2561, allocations: 74.02 kB / 402 MB, free: 9.43 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0003128/0.2564, allocations: 362.8 kB / 402.4 MB, free: 9.066 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003635/0.2568, allocations: 120.7 kB / 402.5 MB, free: 8.949 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000502/0.2573, allocations: 236.9 kB / 402.7 MB, free: 8.668 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002418/0.2597, allocations: 0.7326 MB / 403.4 MB, free: 7.867 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.016e-05/0.2598, allocations: 8 kB / 403.4 MB, free: 7.859 MB / 302.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.001519/0.2613, allocations: 0.5097 MB / 404 MB, free: 7.336 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.009e-05/0.2614, allocations: 33.7 kB / 404 MB, free: 7.297 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.721e-05/0.2614, allocations: 4.406 kB / 404 MB, free: 7.293 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.537e-05/0.2615, allocations: 11.94 kB / 404 MB, free: 7.281 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001035/0.2625, allocations: 99.81 kB / 404.1 MB, free: 7.184 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.483e-05/0.2626, allocations: 4 kB / 404.1 MB, free: 7.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005066/0.2631, allocations: 43.67 kB / 404.1 MB, free: 7.137 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.93e-05/0.2632, allocations: 16 kB / 404.2 MB, free: 7.121 MB / 302.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.0007108/0.2639, allocations: 252.2 kB / 404.4 MB, free: 6.859 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000143/0.2641, allocations: 47.38 kB / 404.5 MB, free: 6.812 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001515/0.2656, allocations: 431.8 kB / 404.9 MB, free: 6.379 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.54e-05/0.2656, allocations: 8 kB / 404.9 MB, free: 6.371 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.305e-06/0.2657, allocations: 3.938 kB / 404.9 MB, free: 6.367 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.131e-05/0.2657, allocations: 7.922 kB / 404.9 MB, free: 6.359 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009172/0.2666, allocations: 421.2 kB / 405.3 MB, free: 5.898 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.814e-06/0.2666, allocations: 0 / 405.3 MB, free: 5.898 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001143/0.2678, allocations: 71.89 kB / 405.4 MB, free: 5.828 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.308e-05/0.2678, allocations: 4 kB / 405.4 MB, free: 5.824 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.376e-05/0.2679, allocations: 19.91 kB / 405.4 MB, free: 5.805 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.766e-06/0.2679, allocations: 4 kB / 405.4 MB, free: 5.801 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.247e-06/0.2679, allocations: 4 kB / 405.4 MB, free: 5.797 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001823/0.2698, allocations: 0.5916 MB / 406 MB, free: 5.18 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001993/0.27, allocations: 124.4 kB / 406.1 MB, free: 5.039 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001072/0.2701, allocations: 8 kB / 406.1 MB, free: 5.031 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002804/0.2704, allocations: 15.98 kB / 406.1 MB, free: 5.016 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001309/0.2706, allocations: 23.97 kB / 406.2 MB, free: 4.992 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.646e-05/0.2706, allocations: 11.98 kB / 406.2 MB, free: 4.98 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007139/0.2714, allocations: 343.1 kB / 406.5 MB, free: 4.645 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.697e-06/0.2714, allocations: 0 / 406.5 MB, free: 4.645 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008742/0.2723, allocations: 107.8 kB / 406.6 MB, free: 4.539 MB / 302.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.003845/0.2761, allocations: 1.486 MB / 408.1 MB, free: 3.129 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001321/0.2775, allocations: 427.1 kB / 408.5 MB, free: 2.699 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-05/0.2775, allocations: 0.8125 kB / 408.5 MB, free: 2.699 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000549/0.2781, allocations: 235.1 kB / 408.8 MB, free: 2.457 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008094/0.2789, allocations: 82.8 kB / 408.8 MB, free: 2.375 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009868/0.2888, allocations: 4.215 MB / 413 MB, free: 13.98 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008749/0.2898, allocations: 0.8495 MB / 413.9 MB, free: 13.11 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005273/0.2903, allocations: 75.22 kB / 414 MB, free: 13.04 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003852/0.2907, allocations: 167.3 kB / 414.1 MB, free: 12.87 MB / 318.1 MB Notification: Performance of SimCode: time 1.543e-06/0.2907, allocations: 0 / 414.1 MB, free: 12.87 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1948/0.4856, allocations: 9.288 MB / 423.4 MB, free: 3.586 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.68/20.17, allocations: 15.3 kB / 423.4 MB, free: 3.574 MB / 318.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)