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.001302/0.001307, 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.001469/0.001469, allocations: 195.3 kB / 16.54 MB, free: 6.672 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.522/1.522, allocations: 205.1 MB / 222.4 MB, free: 4.617 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05912/0.05912, allocations: 10.75 MB / 280.5 MB, free: 10.51 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.002622/0.002623, allocations: 71.83 kB / 340.6 MB, free: 23.23 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1144/0.117, allocations: 49.01 MB / 389.7 MB, free: 6.145 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestPD_tracking): time 0.005002/0.1221, allocations: 2.381 MB / 392 MB, free: 3.746 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003033/0.1252, allocations: 1.435 MB / 393.5 MB, free: 2.301 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004574/0.1256, allocations: 15.88 kB / 393.5 MB, free: 2.285 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009059/0.1266, allocations: 215 kB / 393.7 MB, free: 2.074 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.0006371/0.1273, allocations: 155.3 kB / 393.9 MB, free: 1.922 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001314/0.1286, allocations: 407.1 kB / 394.3 MB, free: 1.523 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009172/0.1295, allocations: 0.6014 MB / 394.9 MB, free: 0.918 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002495/0.1298, allocations: 81.34 kB / 394.9 MB, free: 0.832 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004577/0.1302, allocations: 223.2 kB / 395.2 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004559/0.1307, allocations: 254.9 kB / 395.4 MB, free: 372 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001031/0.1308, allocations: 32 kB / 395.4 MB, free: 340 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003264/0.1312, allocations: 143.9 kB / 395.6 MB, free: 196 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001883/0.1314, allocations: 143.5 kB / 395.7 MB, free: 52 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002813/0.1316, allocations: 210.8 kB / 395.9 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007636/0.1324, allocations: 0.5371 MB / 396.5 MB, free: 15.3 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.73e-06/0.1324, allocations: 4 kB / 396.5 MB, free: 15.3 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1324, allocations: 0 / 396.5 MB, free: 15.3 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.867e-05/0.1325, allocations: 0 / 396.5 MB, free: 15.3 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.001869/0.1343, allocations: 0.8961 MB / 397.4 MB, free: 14.34 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.414e-05/0.1344, allocations: 15.89 kB / 397.4 MB, free: 14.33 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000102/0.1345, allocations: 70.72 kB / 397.4 MB, free: 14.25 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001273/0.1347, allocations: 60.28 kB / 397.5 MB, free: 14.19 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005969/0.1353, allocations: 430.4 kB / 397.9 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.331e-05/0.1353, allocations: 29.03 kB / 397.9 MB, free: 13.7 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.654e-05/0.1354, allocations: 39.84 kB / 398 MB, free: 13.66 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006977/0.1361, allocations: 432.3 kB / 398.4 MB, free: 13.21 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.313e-05/0.1361, allocations: 12 kB / 398.4 MB, free: 13.2 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.579e-05/0.1362, allocations: 12 kB / 398.4 MB, free: 13.19 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.235e-05/0.1362, allocations: 8 kB / 398.4 MB, free: 13.18 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005581/0.1367, allocations: 302.4 kB / 398.7 MB, free: 12.89 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00239/0.1391, allocations: 1.575 MB / 400.3 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004278/0.1396, allocations: 240.1 kB / 400.5 MB, free: 10.99 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002519/0.1398, allocations: 157 kB / 400.7 MB, free: 10.84 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.583e-05/0.1399, allocations: 8.234 kB / 400.7 MB, free: 10.83 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003958/0.1403, allocations: 239.2 kB / 400.9 MB, free: 10.58 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 2.234e-06/0.1403, allocations: 0 / 400.9 MB, free: 10.58 MB / 302.1 MB Notification: Performance of matching and sorting (n=33): time 0.001021/0.1413, allocations: 0.548 MB / 401.5 MB, free: 10.02 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.319e-05/0.1414, allocations: 110.8 kB / 401.6 MB, free: 9.887 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005697/0.142, allocations: 0.5292 MB / 402.1 MB, free: 9.348 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.124e-05/0.142, allocations: 29.7 kB / 402.2 MB, free: 9.312 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001908/0.1422, allocations: 271.9 kB / 402.4 MB, free: 9.043 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.442e-05/0.1423, allocations: 114.5 kB / 402.5 MB, free: 8.93 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001296/0.1425, allocations: 98.02 kB / 402.6 MB, free: 8.828 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002545/0.1427, allocations: 362.8 kB / 403 MB, free: 8.465 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002618/0.143, allocations: 144.9 kB / 403.1 MB, free: 8.32 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000351/0.1434, allocations: 282.2 kB / 403.4 MB, free: 7.984 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001895/0.1453, allocations: 0.8983 MB / 404.3 MB, free: 7.004 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.419e-06/0.1453, allocations: 4 kB / 404.3 MB, free: 7 MB / 302.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.00095/0.1462, allocations: 0.6127 MB / 404.9 MB, free: 6.375 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.235e-05/0.1463, allocations: 37.64 kB / 404.9 MB, free: 6.332 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.277e-05/0.1463, allocations: 11.92 kB / 405 MB, free: 6.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.915e-05/0.1463, allocations: 8 kB / 405 MB, free: 6.312 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004203/0.1468, allocations: 99.89 kB / 405.1 MB, free: 6.215 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.664e-05/0.1468, allocations: 20.42 kB / 405.1 MB, free: 6.195 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002519/0.1471, allocations: 63.42 kB / 405.1 MB, free: 6.133 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.911e-05/0.1471, allocations: 20 kB / 405.2 MB, free: 6.113 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.0003288/0.1475, allocations: 265.1 kB / 405.4 MB, free: 5.84 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.418e-05/0.1476, allocations: 55.34 kB / 405.5 MB, free: 5.785 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008966/0.1485, allocations: 488.3 kB / 406 MB, free: 5.293 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.835e-06/0.1485, allocations: 7.984 kB / 406 MB, free: 5.285 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.46e-05/0.1485, allocations: 3.984 kB / 406 MB, free: 5.281 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.584e-06/0.1485, allocations: 4 kB / 406 MB, free: 5.277 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00055/0.1491, allocations: 453 kB / 406.4 MB, free: 4.785 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/0.1491, allocations: 0 / 406.4 MB, free: 4.785 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004005/0.1495, allocations: 71.89 kB / 406.5 MB, free: 4.715 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.28e-06/0.1495, allocations: 0 / 406.5 MB, free: 4.715 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.756e-05/0.1496, allocations: 19.92 kB / 406.5 MB, free: 4.695 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.046e-06/0.1496, allocations: 0 / 406.5 MB, free: 4.695 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.1496, allocations: 0 / 406.5 MB, free: 4.695 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001156/0.1507, allocations: 0.6711 MB / 407.2 MB, free: 3.996 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001397/0.1509, allocations: 128.3 kB / 407.3 MB, free: 3.852 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.758e-05/0.151, allocations: 19.92 kB / 407.3 MB, free: 3.832 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001907/0.1512, allocations: 15.98 kB / 407.3 MB, free: 3.816 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.154e-05/0.1513, allocations: 23.97 kB / 407.4 MB, free: 3.793 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.533e-05/0.1513, allocations: 8 kB / 407.4 MB, free: 3.785 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005039/0.1518, allocations: 370.8 kB / 407.7 MB, free: 3.426 MB / 302.1 MB Notification: Performance of sort global known variables: time 5.61e-07/0.1519, allocations: 4 kB / 407.7 MB, free: 3.422 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004918/0.1524, allocations: 115.9 kB / 407.8 MB, free: 3.309 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.002977/0.1553, allocations: 1.55 MB / 409.4 MB, free: 1.836 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001254/0.1566, allocations: 0.5183 MB / 409.9 MB, free: 1.305 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.469e-06/0.1566, allocations: 0 / 409.9 MB, free: 1.305 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004021/0.1571, allocations: 252.3 kB / 410.2 MB, free: 1.047 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005899/0.1577, allocations: 78.09 kB / 410.2 MB, free: 0.9688 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006594/0.1643, allocations: 4.783 MB / 415 MB, free: 11.99 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005328/0.1648, allocations: 0.8742 MB / 415.9 MB, free: 11.09 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003395/0.1652, allocations: 100 kB / 416 MB, free: 10.99 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002582/0.1655, allocations: 179.4 kB / 416.2 MB, free: 10.82 MB / 318.1 MB Notification: Performance of SimCode: time 1.152e-06/0.1655, allocations: 0 / 416.2 MB, free: 10.82 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0309/0.1964, allocations: 10.26 MB / 426.4 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.698/7.894, allocations: 15.19 kB / 426.4 MB, free: 0.5586 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/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)