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.001058/0.001058, 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.0009967/0.0009966, allocations: 172.7 kB / 16.27 MB, free: 6.656 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.626/1.626, allocations: 205.4 MB / 222.4 MB, free: 5.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.05848/0.05848, allocations: 10.75 MB / 281.5 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.0008562/0.0008564, allocations: 15.98 kB / 342.3 MB, free: 23.39 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.158/0.1589, allocations: 50 MB / 392.3 MB, free: 5.32 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestI_tracking): time 0.004532/0.1635, allocations: 2.041 MB / 394.4 MB, free: 3.266 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003339/0.1669, allocations: 1.404 MB / 395.8 MB, free: 1.852 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000237/0.1672, allocations: 15.88 kB / 395.8 MB, free: 1.836 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009296/0.1681, allocations: 191.4 kB / 396 MB, free: 1.648 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003738/0.1685, allocations: 147.4 kB / 396.1 MB, free: 1.504 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008618/0.1693, allocations: 343.5 kB / 396.5 MB, free: 1.168 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006547/0.17, allocations: 0.5458 MB / 397 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002684/0.1703, allocations: 77.34 kB / 397.1 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003178/0.1706, allocations: 187.2 kB / 397.3 MB, free: 364 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003693/0.171, allocations: 215 kB / 397.5 MB, free: 148 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.716e-05/0.1711, allocations: 12 kB / 397.5 MB, free: 136 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002306/0.1713, allocations: 127.8 kB / 397.6 MB, free: 8 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001982/0.1715, allocations: 115.6 kB / 397.7 MB, free: 15.89 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001996/0.1717, allocations: 208.4 kB / 397.9 MB, free: 15.68 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005321/0.1722, allocations: 486.2 kB / 398.4 MB, free: 15.21 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.1723, allocations: 4 kB / 398.4 MB, free: 15.2 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1723, allocations: 0 / 398.4 MB, free: 15.2 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.157e-06/0.1723, allocations: 0 / 398.4 MB, free: 15.2 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.001425/0.1737, allocations: 0.7756 MB / 399.2 MB, free: 14.37 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.323e-05/0.1738, allocations: 8.031 kB / 399.2 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.133e-05/0.1739, allocations: 66.72 kB / 399.3 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.998e-05/0.174, allocations: 52.28 kB / 399.3 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006026/0.1746, allocations: 418.4 kB / 399.7 MB, free: 13.79 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001035/0.1747, allocations: 80.27 kB / 399.8 MB, free: 13.7 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001264/0.1748, allocations: 35.91 kB / 399.8 MB, free: 13.66 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007363/0.1756, allocations: 399.6 kB / 400.2 MB, free: 13.25 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.072e-05/0.1756, allocations: 0 / 400.2 MB, free: 13.25 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.762e-05/0.1757, allocations: 15.98 kB / 400.2 MB, free: 13.23 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.751e-05/0.1757, allocations: 8 kB / 400.2 MB, free: 13.22 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005258/0.1762, allocations: 278 kB / 400.5 MB, free: 12.95 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002388/0.1786, allocations: 1.453 MB / 402 MB, free: 11.42 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005481/0.1792, allocations: 210.5 kB / 402.2 MB, free: 11.2 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002312/0.1794, allocations: 128.8 kB / 402.3 MB, free: 11.07 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.942e-05/0.1795, allocations: 4 kB / 402.3 MB, free: 11.07 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003999/0.1799, allocations: 229.8 kB / 402.5 MB, free: 10.83 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 1.743e-06/0.1799, allocations: 0 / 402.5 MB, free: 10.83 MB / 302.1 MB Notification: Performance of matching and sorting (n=27): time 0.001024/0.1809, allocations: 485.2 kB / 403 MB, free: 10.34 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000111/0.1811, allocations: 114.8 kB / 403.1 MB, free: 10.21 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006383/0.1817, allocations: 0.4899 MB / 403.6 MB, free: 9.707 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.78e-05/0.1818, allocations: 33.7 kB / 403.6 MB, free: 9.668 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002331/0.182, allocations: 252.1 kB / 403.9 MB, free: 9.418 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.451e-05/0.1821, allocations: 82.81 kB / 404 MB, free: 9.336 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.554e-05/0.1822, allocations: 49.69 kB / 404 MB, free: 9.281 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002045/0.1824, allocations: 358.8 kB / 404.4 MB, free: 8.922 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002494/0.1827, allocations: 120.7 kB / 404.5 MB, free: 8.801 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003442/0.183, allocations: 244.8 kB / 404.7 MB, free: 8.512 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00169/0.1847, allocations: 0.7482 MB / 405.5 MB, free: 7.695 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.04e-06/0.1847, allocations: 4 kB / 405.5 MB, free: 7.691 MB / 302.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.000814/0.1855, allocations: 0.5098 MB / 406 MB, free: 7.168 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.363e-05/0.1856, allocations: 37.64 kB / 406 MB, free: 7.125 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.505e-05/0.1856, allocations: 7.984 kB / 406 MB, free: 7.117 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.532e-05/0.1857, allocations: 7.938 kB / 406 MB, free: 7.109 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006003/0.1863, allocations: 96.3 kB / 406.1 MB, free: 7.016 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.58e-05/0.1863, allocations: 4 kB / 406.1 MB, free: 7.012 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002236/0.1865, allocations: 47.58 kB / 406.2 MB, free: 6.965 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.519e-05/0.1866, allocations: 20 kB / 406.2 MB, free: 6.945 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.0003695/0.187, allocations: 244.2 kB / 406.4 MB, free: 6.691 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.029e-05/0.187, allocations: 51.42 kB / 406.5 MB, free: 6.641 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008723/0.1879, allocations: 444.3 kB / 406.9 MB, free: 6.195 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-05/0.1879, allocations: 11.98 kB / 406.9 MB, free: 6.184 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.005e-06/0.188, allocations: 3.938 kB / 406.9 MB, free: 6.18 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.142e-06/0.188, allocations: 0 / 406.9 MB, free: 6.18 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005334/0.1885, allocations: 429.1 kB / 407.4 MB, free: 5.711 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.1885, allocations: 0 / 407.4 MB, free: 5.711 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006133/0.1891, allocations: 67.89 kB / 407.4 MB, free: 5.645 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.1892, allocations: 0 / 407.4 MB, free: 5.645 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.006e-05/0.1892, allocations: 15.92 kB / 407.4 MB, free: 5.629 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.576e-06/0.1892, allocations: 4 kB / 407.4 MB, free: 5.625 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.1892, allocations: 4 kB / 407.4 MB, free: 5.621 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00104/0.1903, allocations: 0.5994 MB / 408 MB, free: 4.996 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000116/0.1904, allocations: 124.4 kB / 408.2 MB, free: 4.855 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.615e-05/0.1905, allocations: 15.98 kB / 408.2 MB, free: 4.84 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001677/0.1906, allocations: 19.98 kB / 408.2 MB, free: 4.82 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.948e-05/0.1908, allocations: 19.97 kB / 408.2 MB, free: 4.801 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.179e-05/0.1908, allocations: 12 kB / 408.2 MB, free: 4.789 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004046/0.1912, allocations: 339.1 kB / 408.6 MB, free: 4.461 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1912, allocations: 0 / 408.6 MB, free: 4.461 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004332/0.1917, allocations: 107.8 kB / 408.7 MB, free: 4.355 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.002592/0.1943, allocations: 1.507 MB / 410.2 MB, free: 2.926 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006964/0.195, allocations: 423.3 kB / 410.6 MB, free: 2.5 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.195, allocations: 0 / 410.6 MB, free: 2.5 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002965/0.1953, allocations: 231.1 kB / 410.8 MB, free: 2.262 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004121/0.1957, allocations: 71.7 kB / 410.9 MB, free: 2.191 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006259/0.202, allocations: 4.372 MB / 415.3 MB, free: 13.64 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005463/0.2025, allocations: 0.8536 MB / 416.1 MB, free: 12.76 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002271/0.2028, allocations: 71.23 kB / 416.2 MB, free: 12.69 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002371/0.203, allocations: 167.4 kB / 416.3 MB, free: 12.52 MB / 318.1 MB Notification: Performance of SimCode: time 6.51e-07/0.203, allocations: 0 / 416.3 MB, free: 12.52 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1948/0.3978, allocations: 8.683 MB / 425 MB, free: 3.895 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003257/0.3982, allocations: 265.8 kB / 425.3 MB, free: 3.539 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.089/2.487, allocations: 0 / 425.3 MB, free: 3.539 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestI_tracking_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestI_tracking.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.pipe 2>&1)