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.001074/0.001075, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.0009011/0.0009011, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.62/1.62, allocations: 205.4 MB / 222.1 MB, free: 5.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.05406/0.05406, allocations: 10.74 MB / 281.1 MB, free: 10.45 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.0005528/0.0005526, allocations: 16 kB / 341.7 MB, free: 23.78 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1068, allocations: 50.01 MB / 391.7 MB, free: 5.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestPD_tracking): time 0.002964/0.1099, allocations: 1.98 MB / 393.7 MB, free: 3.707 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002236/0.1121, allocations: 1.326 MB / 395 MB, free: 2.371 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000198/0.1123, allocations: 15.88 kB / 395 MB, free: 2.355 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006947/0.1131, allocations: 175.4 kB / 395.2 MB, free: 2.184 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003204/0.1134, allocations: 135.6 kB / 395.3 MB, free: 2.051 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008687/0.1143, allocations: 323.3 kB / 395.6 MB, free: 1.734 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004667/0.1147, allocations: 364.3 kB / 396 MB, free: 1.375 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001772/0.1149, allocations: 61.25 kB / 396 MB, free: 1.309 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002632/0.1152, allocations: 195.2 kB / 396.2 MB, free: 1.117 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002812/0.1155, allocations: 207.1 kB / 396.4 MB, free: 0.9141 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.696e-05/0.1155, allocations: 16 kB / 396.5 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002184/0.1158, allocations: 103.9 kB / 396.6 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001458/0.1159, allocations: 127.5 kB / 396.7 MB, free: 0.6719 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000108/0.116, allocations: 97.45 kB / 396.8 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004308/0.1165, allocations: 395.4 kB / 397.2 MB, free: 188 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.1165, allocations: 0 / 397.2 MB, free: 188 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.1165, allocations: 0 / 397.2 MB, free: 188 kB / 286.1 MB Notification: Performance of Transformations before backend: time 8.677e-06/0.1165, allocations: 0 / 397.2 MB, free: 188 kB / 286.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.001379/0.1179, allocations: 0.8027 MB / 398 MB, free: 15.32 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.91e-05/0.118, allocations: 8.031 kB / 398 MB, free: 15.31 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.876e-05/0.118, allocations: 70.53 kB / 398 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001004/0.1182, allocations: 63.25 kB / 398.1 MB, free: 15.17 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006465/0.1188, allocations: 429.3 kB / 398.5 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.099e-05/0.1189, allocations: 24.66 kB / 398.5 MB, free: 14.69 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.271e-05/0.1189, allocations: 36 kB / 398.6 MB, free: 14.65 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006637/0.1196, allocations: 428.3 kB / 399 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.239e-05/0.1196, allocations: 8 kB / 399 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.745e-05/0.1197, allocations: 19.95 kB / 399 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.078e-05/0.1197, allocations: 8 kB / 399 MB, free: 14.17 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000533/0.1202, allocations: 310.3 kB / 399.3 MB, free: 13.87 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002295/0.1225, allocations: 1.571 MB / 400.9 MB, free: 12.22 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004287/0.123, allocations: 235.2 kB / 401.1 MB, free: 11.98 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.921e-05/0.123, allocations: 12.22 kB / 401.2 MB, free: 11.97 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004091/0.1234, allocations: 251.1 kB / 401.4 MB, free: 11.71 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 1.873e-06/0.1235, allocations: 0 / 401.4 MB, free: 11.71 MB / 302.1 MB Notification: Performance of matching and sorting (n=33): time 0.001028/0.1245, allocations: 0.6198 MB / 402 MB, free: 11.06 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.314e-05/0.1246, allocations: 118.8 kB / 402.1 MB, free: 10.92 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005791/0.1252, allocations: 0.5213 MB / 402.7 MB, free: 10.39 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.481e-05/0.1252, allocations: 33.7 kB / 402.7 MB, free: 10.35 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000225/0.1254, allocations: 271.9 kB / 403 MB, free: 10.08 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001012/0.1256, allocations: 114.4 kB / 403.1 MB, free: 9.969 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.902e-05/0.1256, allocations: 8 kB / 403.1 MB, free: 9.961 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001615/0.1257, allocations: 366.7 kB / 403.4 MB, free: 9.594 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002642/0.126, allocations: 152.9 kB / 403.6 MB, free: 9.445 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003637/0.1264, allocations: 282.2 kB / 403.9 MB, free: 9.109 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003348/0.1267, allocations: 218.9 kB / 404.1 MB, free: 8.883 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.1268, allocations: 0 / 404.1 MB, free: 8.883 MB / 302.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0009145/0.1277, allocations: 0.61 MB / 404.7 MB, free: 8.262 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.03e-05/0.1277, allocations: 45.69 kB / 404.7 MB, free: 8.211 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.035e-05/0.1278, allocations: 4.531 kB / 404.7 MB, free: 8.207 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.358e-05/0.1278, allocations: 16 kB / 404.7 MB, free: 8.191 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004477/0.1282, allocations: 107.8 kB / 404.8 MB, free: 8.086 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.655e-05/0.1283, allocations: 11.94 kB / 404.9 MB, free: 8.074 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000236/0.1285, allocations: 63.38 kB / 404.9 MB, free: 8.012 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.438e-05/0.1285, allocations: 24 kB / 404.9 MB, free: 7.988 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.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [4] process.Y[4]:VARIABLE(fixed = true protected = true ) type: Real [4] process.U[2]:VARIABLE(fixed = true protected = true ) type: Real [3] process.U[3]:VARIABLE(fixed = true protected = true ) type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition2,$PRE.TSsignal.combiTimeTable.nextTimeEvent,$whenCondition1,R_track.ts,TSsignal.combiTimeTable.nextTimeEvent,$PRE.TSsignal.combiTimeTable.nextTimeEventScaled,TSsignal.combiTimeTable.nextTimeEventScaled,TrackRef.a,TrackRef.b,TrackRef.last,$PRE.TrackRef.nextEvent,TrackRef.nextEvent,TrackRef.nextEventScaled,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003308/0.1289, allocations: 261.2 kB / 405.2 MB, free: 7.715 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.134e-05/0.129, allocations: 51.34 kB / 405.3 MB, free: 7.664 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008426/0.1298, allocations: 500 kB / 405.7 MB, free: 7.16 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.981e-06/0.1298, allocations: 4 kB / 405.7 MB, free: 7.156 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.1298, allocations: 0 / 405.7 MB, free: 7.156 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.664e-06/0.1298, allocations: 3.953 kB / 405.7 MB, free: 7.152 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000484/0.1303, allocations: 457.1 kB / 406.2 MB, free: 6.656 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.1303, allocations: 0 / 406.2 MB, free: 6.656 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003758/0.1307, allocations: 71.89 kB / 406.3 MB, free: 6.586 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.659e-06/0.1307, allocations: 7.938 kB / 406.3 MB, free: 6.578 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.502e-05/0.1308, allocations: 12 kB / 406.3 MB, free: 6.566 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.19e-06/0.1308, allocations: 7.984 kB / 406.3 MB, free: 6.559 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.1308, allocations: 0 / 406.3 MB, free: 6.559 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001013/0.1318, allocations: 0.6634 MB / 407 MB, free: 5.867 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001232/0.132, allocations: 132.4 kB / 407.1 MB, free: 5.719 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.342e-05/0.132, allocations: 19.98 kB / 407.1 MB, free: 5.699 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001709/0.1322, allocations: 19.98 kB / 407.1 MB, free: 5.68 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.522e-05/0.1323, allocations: 15.97 kB / 407.1 MB, free: 5.664 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.213e-05/0.1323, allocations: 12 kB / 407.1 MB, free: 5.652 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000399/0.1327, allocations: 366.8 kB / 407.5 MB, free: 5.297 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1328, allocations: 0 / 407.5 MB, free: 5.297 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004487/0.1332, allocations: 119.8 kB / 407.6 MB, free: 5.18 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002243/0.1355, allocations: 1.566 MB / 409.2 MB, free: 3.684 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007634/0.1362, allocations: 495.9 kB / 409.7 MB, free: 3.188 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/0.1363, allocations: 0 / 409.7 MB, free: 3.188 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000326/0.1366, allocations: 260.6 kB / 409.9 MB, free: 2.922 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003741/0.137, allocations: 66.52 kB / 410 MB, free: 2.855 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005461/0.1424, allocations: 5.799 MB / 415.8 MB, free: 12.93 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005358/0.143, allocations: 0.8859 MB / 416.7 MB, free: 12.01 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002764/0.1433, allocations: 96.09 kB / 416.8 MB, free: 11.92 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002246/0.1435, allocations: 179.4 kB / 416.9 MB, free: 11.74 MB / 318.1 MB Notification: Performance of SimCode: time 6.41e-07/0.1435, allocations: 0 / 416.9 MB, free: 11.74 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02273/0.1663, allocations: 9.729 MB / 426.7 MB, free: 2.066 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002182/0.1665, allocations: 242.8 kB / 426.9 MB, free: 1.773 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.101/2.267, allocations: 7.938 kB / 426.9 MB, free: 1.766 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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPD_tracking_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPD_tracking.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.pipe 2>&1) Environment - environmentSimulation: