Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_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.TestD_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestD_tracking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestD_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestD_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.001007/0.001007, allocations: 99.86 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.001164/0.001164, allocations: 177.3 kB / 15.95 MB, free: 216 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.648/1.648, allocations: 205.4 MB / 222.1 MB, free: 5.652 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05638/0.05638, allocations: 10.73 MB / 281.1 MB, free: 10.57 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.0005354/0.0005355, allocations: 18.91 kB / 341.7 MB, free: 23.79 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.1063, allocations: 50 MB / 391.7 MB, free: 5.719 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestD_tracking): time 0.002889/0.1092, allocations: 1.972 MB / 393.7 MB, free: 3.734 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002238/0.1115, allocations: 1.319 MB / 395 MB, free: 2.406 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000169/0.1117, allocations: 11.88 kB / 395 MB, free: 2.395 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006556/0.1123, allocations: 179.4 kB / 395.2 MB, free: 2.219 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000284/0.1126, allocations: 139.7 kB / 395.3 MB, free: 2.082 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007257/0.1134, allocations: 319.2 kB / 395.6 MB, free: 1.77 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004406/0.1138, allocations: 356.4 kB / 396 MB, free: 1.418 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000176/0.114, allocations: 73.22 kB / 396 MB, free: 1.34 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002448/0.1143, allocations: 191.2 kB / 396.2 MB, free: 1.152 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002715/0.1145, allocations: 207.2 kB / 396.4 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.815e-05/0.1146, allocations: 12 kB / 396.4 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001961/0.1148, allocations: 103.9 kB / 396.5 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001451/0.115, allocations: 119.6 kB / 396.7 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001073/0.1151, allocations: 105.4 kB / 396.8 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000431/0.1155, allocations: 391.4 kB / 397.1 MB, free: 232 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.1155, allocations: 4 kB / 397.1 MB, free: 228 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1155, allocations: 0 / 397.1 MB, free: 228 kB / 286.1 MB Notification: Performance of Transformations before backend: time 7.865e-06/0.1156, allocations: 0 / 397.1 MB, free: 228 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.001324/0.1169, allocations: 0.8027 MB / 397.9 MB, free: 15.36 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.529e-05/0.1169, allocations: 12.02 kB / 398 MB, free: 15.35 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.05e-05/0.117, allocations: 70.53 kB / 398 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.119e-05/0.1171, allocations: 59.25 kB / 398.1 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006042/0.1177, allocations: 409.5 kB / 398.5 MB, free: 14.77 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.235e-05/0.1178, allocations: 28.66 kB / 398.5 MB, free: 14.74 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.194e-05/0.1179, allocations: 39.91 kB / 398.6 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006496/0.1185, allocations: 432.3 kB / 399 MB, free: 14.25 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.091e-05/0.1185, allocations: 4 kB / 399 MB, free: 14.25 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.708e-05/0.1186, allocations: 15.95 kB / 399 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.127e-05/0.1186, allocations: 8 kB / 399 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005497/0.1192, allocations: 322.3 kB / 399.3 MB, free: 13.91 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00228/0.1214, allocations: 1.563 MB / 400.9 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004317/0.1219, allocations: 243.2 kB / 401.1 MB, free: 12.03 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.472e-05/0.1219, allocations: 4.234 kB / 401.1 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004153/0.1224, allocations: 247.2 kB / 401.4 MB, free: 11.77 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 1.863e-06/0.1224, allocations: 3.938 kB / 401.4 MB, free: 11.76 MB / 302.1 MB Notification: Performance of matching and sorting (n=33): time 0.001079/0.1235, allocations: 0.6198 MB / 402 MB, free: 11.11 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.491e-05/0.1236, allocations: 110.8 kB / 402.1 MB, free: 10.98 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000554/0.1241, allocations: 0.5212 MB / 402.6 MB, free: 10.45 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.205e-05/0.1242, allocations: 33.7 kB / 402.6 MB, free: 10.41 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002785/0.1244, allocations: 264 kB / 402.9 MB, free: 10.15 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.89e-05/0.1245, allocations: 118.4 kB / 403 MB, free: 10.03 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.967e-05/0.1246, allocations: 12 kB / 403 MB, free: 10.02 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001481/0.1247, allocations: 370.7 kB / 403.4 MB, free: 9.648 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002564/0.125, allocations: 140.9 kB / 403.5 MB, free: 9.512 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003252/0.1253, allocations: 282.2 kB / 403.8 MB, free: 9.176 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003281/0.1257, allocations: 231.2 kB / 404 MB, free: 8.938 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.49e-06/0.1257, allocations: 4 kB / 404 MB, free: 8.934 MB / 302.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0009089/0.1266, allocations: 0.6181 MB / 404.7 MB, free: 8.305 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.306e-05/0.1266, allocations: 33.7 kB / 404.7 MB, free: 8.266 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.919e-06/0.1267, allocations: 4 kB / 404.7 MB, free: 8.262 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.977e-05/0.1267, allocations: 8 kB / 404.7 MB, free: 8.254 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004378/0.1271, allocations: 111.8 kB / 404.8 MB, free: 8.145 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.302e-05/0.1272, allocations: 7.938 kB / 404.8 MB, free: 8.137 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000237/0.1274, allocations: 67.45 kB / 404.9 MB, free: 8.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.668e-05/0.1274, allocations: 24.12 kB / 404.9 MB, free: 8.047 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.0003415/0.1278, allocations: 265.1 kB / 405.2 MB, free: 7.77 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.498e-05/0.1279, allocations: 55.44 kB / 405.2 MB, free: 7.715 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008508/0.1287, allocations: 491.8 kB / 405.7 MB, free: 7.219 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.334e-06/0.1288, allocations: 4 kB / 405.7 MB, free: 7.215 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.71e-06/0.1288, allocations: 0 / 405.7 MB, free: 7.215 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.358e-06/0.1288, allocations: 11.94 kB / 405.7 MB, free: 7.203 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004885/0.1293, allocations: 445.2 kB / 406.2 MB, free: 6.719 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.1293, allocations: 0 / 406.2 MB, free: 6.719 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003891/0.1297, allocations: 71.89 kB / 406.2 MB, free: 6.648 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.531e-06/0.1297, allocations: 7.938 kB / 406.2 MB, free: 6.641 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.726e-05/0.1297, allocations: 11.98 kB / 406.2 MB, free: 6.629 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.1298, allocations: 4 kB / 406.2 MB, free: 6.625 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.1298, allocations: 0 / 406.2 MB, free: 6.625 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001053/0.1308, allocations: 0.6674 MB / 406.9 MB, free: 5.93 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001167/0.1309, allocations: 132.4 kB / 407 MB, free: 5.781 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.828e-05/0.131, allocations: 12 kB / 407.1 MB, free: 5.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001601/0.1312, allocations: 19.98 kB / 407.1 MB, free: 5.75 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.942e-05/0.1313, allocations: 23.97 kB / 407.1 MB, free: 5.727 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.385e-05/0.1313, allocations: 15.98 kB / 407.1 MB, free: 5.711 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003925/0.1317, allocations: 362.8 kB / 407.5 MB, free: 5.359 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1317, allocations: 0 / 407.5 MB, free: 5.359 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004351/0.1322, allocations: 119.7 kB / 407.6 MB, free: 5.242 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.002296/0.1345, allocations: 1.567 MB / 409.2 MB, free: 3.742 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000762/0.1353, allocations: 499.6 kB / 409.6 MB, free: 3.242 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.594e-06/0.1353, allocations: 0 / 409.6 MB, free: 3.242 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003253/0.1356, allocations: 248.5 kB / 409.9 MB, free: 2.988 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003742/0.136, allocations: 78.5 kB / 410 MB, free: 2.91 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005305/0.1413, allocations: 5.776 MB / 415.7 MB, free: 13.01 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004602/0.1418, allocations: 0.882 MB / 416.6 MB, free: 12.1 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002624/0.1421, allocations: 95.39 kB / 416.7 MB, free: 12.01 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002367/0.1423, allocations: 175.4 kB / 416.9 MB, free: 11.84 MB / 318.1 MB Notification: Performance of SimCode: time 9.92e-07/0.1423, allocations: 0 / 416.9 MB, free: 11.84 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02352/0.1658, allocations: 9.663 MB / 426.5 MB, free: 2.227 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002135/0.1661, allocations: 245.7 kB / 426.8 MB, free: 1.945 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.051/2.218, allocations: 0 / 426.8 MB, free: 1.945 MB / 318.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestD_tracking_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestD_tracking.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.pipe 2>&1) Environment - environmentSimulation: