Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_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.TestP_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestP_tracking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestP_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestP_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.0008089/0.0008135, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.004576/0.004576, allocations: 170.6 kB / 16.27 MB, free: 6.652 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.261/1.261, allocations: 205.4 MB / 222.4 MB, free: 5.562 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05327/0.05327, allocations: 10.74 MB / 281.5 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.0007895/0.0007897, allocations: 16 kB / 342.4 MB, free: 23.37 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1119, allocations: 49.99 MB / 392.3 MB, free: 5.312 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestP_tracking): time 0.002532/0.1144, allocations: 2.033 MB / 394.4 MB, free: 3.266 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001876/0.1163, allocations: 1.31 MB / 395.7 MB, free: 1.945 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00013/0.1165, allocations: 15.81 kB / 395.7 MB, free: 1.93 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005538/0.117, allocations: 187.4 kB / 395.9 MB, free: 1.746 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002833/0.1173, allocations: 147.5 kB / 396 MB, free: 1.602 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006226/0.118, allocations: 307.5 kB / 396.3 MB, free: 1.301 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005022/0.1185, allocations: 0.5107 MB / 396.8 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001496/0.1186, allocations: 85.27 kB / 396.9 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001896/0.1188, allocations: 167.2 kB / 397.1 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002398/0.1191, allocations: 211 kB / 397.3 MB, free: 336 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.558e-05/0.1191, allocations: 12 kB / 397.3 MB, free: 324 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000172/0.1193, allocations: 123.9 kB / 397.4 MB, free: 200 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001724/0.1195, allocations: 111.6 kB / 397.5 MB, free: 88 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002465/0.1197, allocations: 204.4 kB / 397.7 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004665/0.1202, allocations: 478.1 kB / 398.2 MB, free: 15.41 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.1202, allocations: 0 / 398.2 MB, free: 15.41 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1202, allocations: 0 / 398.2 MB, free: 15.41 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.831e-06/0.1202, allocations: 0 / 398.2 MB, free: 15.41 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.001065/0.1213, allocations: 0.7523 MB / 399 MB, free: 14.6 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.214e-05/0.1213, allocations: 8.031 kB / 399 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.322e-05/0.1214, allocations: 70.66 kB / 399 MB, free: 14.51 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.96e-05/0.1215, allocations: 52.28 kB / 399.1 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004734/0.122, allocations: 410.4 kB / 399.5 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.452e-05/0.122, allocations: 24.94 kB / 399.5 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.834e-05/0.1221, allocations: 31.94 kB / 399.5 MB, free: 13.96 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000597/0.1227, allocations: 375.7 kB / 399.9 MB, free: 13.57 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.127e-05/0.1227, allocations: 11.84 kB / 399.9 MB, free: 13.56 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.16e-05/0.1228, allocations: 20 kB / 399.9 MB, free: 13.54 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.547e-06/0.1228, allocations: 8 kB / 399.9 MB, free: 13.54 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004496/0.1232, allocations: 262 kB / 400.2 MB, free: 13.28 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001721/0.125, allocations: 1.403 MB / 401.6 MB, free: 11.8 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004632/0.1254, allocations: 206.5 kB / 401.8 MB, free: 11.59 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002096/0.1257, allocations: 120.8 kB / 401.9 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.684e-05/0.1257, allocations: 7.984 kB / 401.9 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003304/0.126, allocations: 229.6 kB / 402.2 MB, free: 11.21 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 1.513e-06/0.1261, allocations: 0 / 402.2 MB, free: 11.21 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.0008182/0.1269, allocations: 481.2 kB / 402.6 MB, free: 10.73 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.699e-05/0.127, allocations: 110.8 kB / 402.7 MB, free: 10.6 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004812/0.1274, allocations: 493.8 kB / 403.2 MB, free: 10.11 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.886e-05/0.1275, allocations: 33.7 kB / 403.2 MB, free: 10.07 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001718/0.1277, allocations: 248.2 kB / 403.5 MB, free: 9.824 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.349e-05/0.1277, allocations: 90.73 kB / 403.6 MB, free: 9.734 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.816e-05/0.1278, allocations: 45.7 kB / 403.6 MB, free: 9.684 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000159/0.128, allocations: 358.8 kB / 404 MB, free: 9.324 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002152/0.1282, allocations: 116.3 kB / 404.1 MB, free: 9.211 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002815/0.1285, allocations: 228.3 kB / 404.3 MB, free: 8.938 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001382/0.1299, allocations: 0.7247 MB / 405 MB, free: 8.145 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.579e-06/0.1299, allocations: 4 kB / 405 MB, free: 8.141 MB / 302.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0007279/0.1306, allocations: 0.4985 MB / 405.5 MB, free: 7.629 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.721e-05/0.1307, allocations: 37.7 kB / 405.6 MB, free: 7.586 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.822e-06/0.1307, allocations: 4 kB / 405.6 MB, free: 7.582 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.122e-05/0.1307, allocations: 11.98 kB / 405.6 MB, free: 7.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002662/0.131, allocations: 71.91 kB / 405.7 MB, free: 7.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.214e-05/0.131, allocations: 11.92 kB / 405.7 MB, free: 7.488 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001944/0.1312, allocations: 55.98 kB / 405.7 MB, free: 7.434 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.51e-05/0.1312, allocations: 12 kB / 405.7 MB, free: 7.422 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 (44): * Single equations (assignments): 43 * 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.0002617/0.1315, allocations: 240.2 kB / 406 MB, free: 7.172 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.287e-05/0.1316, allocations: 47.38 kB / 406 MB, free: 7.125 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006937/0.1323, allocations: 448.1 kB / 406.5 MB, free: 6.676 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.1323, allocations: 4 kB / 406.5 MB, free: 6.672 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.1323, allocations: 0 / 406.5 MB, free: 6.672 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.674e-06/0.1323, allocations: 7.969 kB / 406.5 MB, free: 6.664 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003836/0.1327, allocations: 417.2 kB / 406.9 MB, free: 6.207 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.1327, allocations: 0 / 406.9 MB, free: 6.207 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002379/0.1329, allocations: 55.89 kB / 406.9 MB, free: 6.152 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.1329, allocations: 0 / 406.9 MB, free: 6.152 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.744e-05/0.133, allocations: 12 kB / 406.9 MB, free: 6.141 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.133, allocations: 0 / 406.9 MB, free: 6.141 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.133, allocations: 0 / 406.9 MB, free: 6.141 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008928/0.1339, allocations: 0.5924 MB / 407.5 MB, free: 5.523 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.519e-05/0.134, allocations: 132.5 kB / 407.7 MB, free: 5.375 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.001e-05/0.1341, allocations: 8 kB / 407.7 MB, free: 5.367 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001379/0.1342, allocations: 19.98 kB / 407.7 MB, free: 5.348 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.367e-05/0.1343, allocations: 23.91 kB / 407.7 MB, free: 5.324 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.395e-05/0.1343, allocations: 8 kB / 407.7 MB, free: 5.316 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003451/0.1347, allocations: 351.1 kB / 408.1 MB, free: 4.977 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1347, allocations: 0 / 408.1 MB, free: 4.977 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003372/0.135, allocations: 99.84 kB / 408.2 MB, free: 4.879 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (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 (25): * Single equations (assignments): 22 * 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.002008/0.137, allocations: 1.478 MB / 409.6 MB, free: 3.477 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005754/0.1376, allocations: 412 kB / 410 MB, free: 3.062 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.48e-06/0.1376, allocations: 4.062 kB / 410 MB, free: 3.059 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003299/0.138, allocations: 235.1 kB / 410.3 MB, free: 2.816 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003648/0.1383, allocations: 65.92 kB / 410.3 MB, free: 2.75 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004922/0.1433, allocations: 4.264 MB / 414.6 MB, free: 14.3 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004269/0.1437, allocations: 0.8497 MB / 415.5 MB, free: 13.43 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001831/0.1439, allocations: 79.2 kB / 415.5 MB, free: 13.35 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001949/0.1441, allocations: 155.4 kB / 415.7 MB, free: 13.2 MB / 318.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1441, allocations: 0 / 415.7 MB, free: 13.2 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3149/0.459, allocations: 8.566 MB / 424.2 MB, free: 4.691 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003645/0.4595, allocations: 265.8 kB / 424.5 MB, free: 4.336 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.221/2.681, allocations: 7.938 kB / 424.5 MB, free: 4.328 MB / 318.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestP_tracking_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestP_tracking.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.pipe 2>&1)