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.0009227/0.0009227, 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.00562/0.00562, allocations: 169 kB / 16.26 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.539/1.539, allocations: 205.4 MB / 222.5 MB, free: 5.559 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05334/0.05334, 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.0005301/0.0005301, allocations: 16 kB / 342.3 MB, free: 23.38 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09723/0.09777, allocations: 50 MB / 392.3 MB, free: 5.309 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestPD_tracking): time 0.002738/0.1006, allocations: 2.061 MB / 394.4 MB, free: 3.234 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00218/0.1028, allocations: 1.412 MB / 395.8 MB, free: 1.812 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001575/0.1029, allocations: 15.81 kB / 395.8 MB, free: 1.797 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006668/0.1036, allocations: 195.4 kB / 396 MB, free: 1.605 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003066/0.1039, allocations: 147.5 kB / 396.2 MB, free: 1.461 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007675/0.1047, allocations: 351.4 kB / 396.5 MB, free: 1.117 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006203/0.1053, allocations: 0.5623 MB / 397.1 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002038/0.1055, allocations: 81.36 kB / 397.2 MB, free: 476 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002581/0.1058, allocations: 203 kB / 397.3 MB, free: 272 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000314/0.1061, allocations: 227 kB / 397.6 MB, free: 44 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.614e-05/0.1062, allocations: 15.94 kB / 397.6 MB, free: 28 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002377/0.1064, allocations: 123.9 kB / 397.7 MB, free: 15.91 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001481/0.1066, allocations: 139.4 kB / 397.8 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002055/0.1068, allocations: 216.3 kB / 398.1 MB, free: 15.55 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006342/0.1075, allocations: 0.5137 MB / 398.6 MB, free: 15.04 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.1075, allocations: 0 / 398.6 MB, free: 15.04 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.1075, allocations: 0 / 398.6 MB, free: 15.04 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.374e-06/0.1075, allocations: 0 / 398.6 MB, free: 15.04 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.001383/0.1089, allocations: 0.799 MB / 399.4 MB, free: 14.18 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.775e-05/0.1089, allocations: 11.97 kB / 399.4 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.966e-05/0.109, allocations: 70.72 kB / 399.4 MB, free: 14.09 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001016/0.1091, allocations: 60.19 kB / 399.5 MB, free: 14.03 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005957/0.1097, allocations: 438.4 kB / 399.9 MB, free: 13.56 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.673e-05/0.1098, allocations: 21.03 kB / 400 MB, free: 13.54 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.952e-05/0.1099, allocations: 43.94 kB / 400 MB, free: 13.5 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000685/0.1106, allocations: 432.3 kB / 400.4 MB, free: 13.05 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.58e-05/0.1106, allocations: 11.89 kB / 400.4 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.99e-05/0.1106, allocations: 16 kB / 400.4 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.017e-05/0.1107, allocations: 8 kB / 400.5 MB, free: 13.01 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005464/0.1112, allocations: 310.4 kB / 400.8 MB, free: 12.71 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002237/0.1135, allocations: 1.567 MB / 402.3 MB, free: 11.07 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004523/0.1139, allocations: 242.9 kB / 402.6 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002421/0.1142, allocations: 149.1 kB / 402.7 MB, free: 10.67 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.812e-05/0.1142, allocations: 8.172 kB / 402.7 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004139/0.1146, allocations: 255.1 kB / 403 MB, free: 10.4 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 1.603e-06/0.1147, allocations: 0 / 403 MB, free: 10.4 MB / 302.1 MB Notification: Performance of matching and sorting (n=33): time 0.0009559/0.1156, allocations: 0.5482 MB / 403.5 MB, free: 9.84 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.544e-05/0.1157, allocations: 110.8 kB / 403.6 MB, free: 9.707 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005569/0.1163, allocations: 0.533 MB / 404.2 MB, free: 9.164 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.414e-05/0.1163, allocations: 29.7 kB / 404.2 MB, free: 9.129 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002028/0.1165, allocations: 268 kB / 404.4 MB, free: 8.863 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001001/0.1166, allocations: 122.3 kB / 404.6 MB, free: 8.742 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.75e-05/0.1167, allocations: 53.69 kB / 404.6 MB, free: 8.684 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001604/0.1169, allocations: 362.8 kB / 405 MB, free: 8.32 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002514/0.1171, allocations: 144.9 kB / 405.1 MB, free: 8.18 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003615/0.1175, allocations: 290.2 kB / 405.4 MB, free: 7.836 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001854/0.1194, allocations: 0.9099 MB / 406.3 MB, free: 6.84 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.317e-06/0.1194, allocations: 0 / 406.3 MB, free: 6.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0009394/0.1203, allocations: 0.6166 MB / 406.9 MB, free: 6.211 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.018e-05/0.1204, allocations: 41.69 kB / 407 MB, free: 6.164 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.013e-05/0.1204, allocations: 7.938 kB / 407 MB, free: 6.156 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.695e-05/0.1204, allocations: 4 kB / 407 MB, free: 6.152 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004046/0.1208, allocations: 108.3 kB / 407.1 MB, free: 6.047 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.019e-05/0.1208, allocations: 23.86 kB / 407.1 MB, free: 6.023 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000224/0.1211, allocations: 59.42 kB / 407.2 MB, free: 5.965 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.42e-05/0.1211, allocations: 24 kB / 407.2 MB, free: 5.941 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.0003052/0.1214, allocations: 257.3 kB / 407.4 MB, free: 5.672 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.873e-05/0.1215, allocations: 51.34 kB / 407.5 MB, free: 5.621 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008131/0.1223, allocations: 0.4886 MB / 408 MB, free: 5.117 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.156e-05/0.1224, allocations: 15.97 kB / 408 MB, free: 5.102 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.1224, allocations: 3.938 kB / 408 MB, free: 5.098 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.628e-06/0.1224, allocations: 0 / 408 MB, free: 5.098 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004079/0.1228, allocations: 449 kB / 408.4 MB, free: 4.609 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.1228, allocations: 0 / 408.4 MB, free: 4.609 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003593/0.1232, allocations: 71.89 kB / 408.5 MB, free: 4.539 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.801e-06/0.1232, allocations: 4 kB / 408.5 MB, free: 4.535 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.378e-05/0.1232, allocations: 15.92 kB / 408.5 MB, free: 4.52 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.1232, allocations: 8 kB / 408.5 MB, free: 4.512 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.1232, allocations: 0 / 408.5 MB, free: 4.512 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009746/0.1242, allocations: 0.6673 MB / 409.2 MB, free: 3.816 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001355/0.1244, allocations: 136.3 kB / 409.3 MB, free: 3.664 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.29e-05/0.1244, allocations: 15.88 kB / 409.3 MB, free: 3.648 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001644/0.1246, allocations: 23.98 kB / 409.4 MB, free: 3.625 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.329e-05/0.1247, allocations: 23.97 kB / 409.4 MB, free: 3.602 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.955e-05/0.1247, allocations: 19.92 kB / 409.4 MB, free: 3.582 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003718/0.1251, allocations: 366.8 kB / 409.8 MB, free: 3.227 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1251, allocations: 0 / 409.8 MB, free: 3.227 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000387/0.1255, allocations: 115.8 kB / 409.9 MB, free: 3.113 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.00219/0.1277, allocations: 1.555 MB / 411.4 MB, free: 1.637 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007208/0.1284, allocations: 0.4948 MB / 411.9 MB, free: 1.129 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.1284, allocations: 0 / 411.9 MB, free: 1.129 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003245/0.1288, allocations: 253.6 kB / 412.2 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004085/0.1292, allocations: 81.8 kB / 412.3 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005704/0.1349, allocations: 4.939 MB / 417.2 MB, free: 11.65 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000442/0.1354, allocations: 0.8781 MB / 418.1 MB, free: 10.74 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002421/0.1356, allocations: 96.09 kB / 418.2 MB, free: 10.65 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002166/0.1358, allocations: 179.4 kB / 418.3 MB, free: 10.47 MB / 318.1 MB Notification: Performance of SimCode: time 4.2e-07/0.1358, allocations: 0 / 418.3 MB, free: 10.47 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1809/0.3167, allocations: 9.627 MB / 428 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002263/0.317, allocations: 282.9 kB / 428.3 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.377/2.694, allocations: 0 / 428.3 MB, free: 0.5273 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)