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.001099/0.001099, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001153/0.001153, allocations: 195.1 kB / 16.25 MB, free: 6.625 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.561/1.561, allocations: 205.1 MB / 222.1 MB, free: 4.723 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05806/0.05806, allocations: 10.74 MB / 280.2 MB, free: 10.63 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.00175/0.00175, allocations: 59.91 kB / 340.1 MB, free: 23.55 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08163/0.08339, allocations: 49 MB / 389.1 MB, free: 6.488 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestD_tracking): time 0.004228/0.08766, allocations: 2.419 MB / 391.6 MB, free: 4.051 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002181/0.08987, allocations: 1.415 MB / 393 MB, free: 2.625 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002247/0.09012, allocations: 11.88 kB / 393 MB, free: 2.613 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007573/0.09095, allocations: 199.4 kB / 393.2 MB, free: 2.418 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003805/0.09134, allocations: 139.5 kB / 393.3 MB, free: 2.281 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009195/0.09227, allocations: 367.4 kB / 393.7 MB, free: 1.922 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000585/0.09287, allocations: 0.6014 MB / 394.3 MB, free: 1.316 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000241/0.09312, allocations: 81.33 kB / 394.4 MB, free: 1.23 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002592/0.09339, allocations: 227.1 kB / 394.6 MB, free: 1.008 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002809/0.09367, allocations: 250.9 kB / 394.8 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.623e-05/0.09374, allocations: 32 kB / 394.9 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000223/0.09397, allocations: 143.9 kB / 395 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001427/0.09412, allocations: 151.6 kB / 395.1 MB, free: 452 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000167/0.0943, allocations: 218.5 kB / 395.4 MB, free: 232 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005174/0.09482, allocations: 0.5334 MB / 395.9 MB, free: 15.69 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.09483, allocations: 0 / 395.9 MB, free: 15.69 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.09484, allocations: 4 kB / 395.9 MB, free: 15.69 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.244e-06/0.09486, allocations: 0 / 395.9 MB, free: 15.69 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.001345/0.09621, allocations: 0.8845 MB / 396.8 MB, free: 14.74 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.472e-05/0.09626, allocations: 11.89 kB / 396.8 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.194e-05/0.09635, allocations: 70.72 kB / 396.9 MB, free: 14.65 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001131/0.09647, allocations: 64.12 kB / 396.9 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005767/0.09705, allocations: 434.3 kB / 397.4 MB, free: 14.12 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.437e-05/0.0971, allocations: 25.03 kB / 397.4 MB, free: 14.1 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.618e-05/0.09717, allocations: 39.94 kB / 397.4 MB, free: 14.06 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007431/0.09792, allocations: 436.3 kB / 397.8 MB, free: 13.61 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.474e-05/0.09797, allocations: 7.906 kB / 397.8 MB, free: 13.6 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.043e-05/0.09804, allocations: 12 kB / 397.9 MB, free: 13.59 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.261e-05/0.09806, allocations: 8 kB / 397.9 MB, free: 13.58 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007781/0.09884, allocations: 314.3 kB / 398.2 MB, free: 13.28 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002311/0.1012, allocations: 1.556 MB / 399.7 MB, free: 11.64 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004378/0.1016, allocations: 239 kB / 400 MB, free: 11.4 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002344/0.1019, allocations: 141.3 kB / 400.1 MB, free: 11.26 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.923e-05/0.1019, allocations: 8.266 kB / 400.1 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004328/0.1024, allocations: 251.2 kB / 400.4 MB, free: 10.99 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 2.444e-06/0.1024, allocations: 0 / 400.4 MB, free: 10.99 MB / 302.1 MB Notification: Performance of matching and sorting (n=33): time 0.001015/0.1034, allocations: 0.552 MB / 400.9 MB, free: 10.43 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001676/0.1036, allocations: 110.8 kB / 401 MB, free: 10.3 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005288/0.1041, allocations: 0.5136 MB / 401.5 MB, free: 9.773 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.33e-05/0.1041, allocations: 37.64 kB / 401.6 MB, free: 9.73 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002395/0.1044, allocations: 271.9 kB / 401.8 MB, free: 9.461 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.429e-05/0.1045, allocations: 110.5 kB / 401.9 MB, free: 9.352 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001254/0.1046, allocations: 94.03 kB / 402 MB, free: 9.254 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001559/0.1048, allocations: 370.8 kB / 402.4 MB, free: 8.883 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002473/0.105, allocations: 140.9 kB / 402.5 MB, free: 8.742 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003266/0.1054, allocations: 286.2 kB / 402.8 MB, free: 8.406 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001851/0.1072, allocations: 0.9022 MB / 403.7 MB, free: 7.422 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.079e-06/0.1073, allocations: 4 kB / 403.7 MB, free: 7.418 MB / 302.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0009659/0.1082, allocations: 0.6088 MB / 404.3 MB, free: 6.797 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.85e-05/0.1083, allocations: 41.64 kB / 404.4 MB, free: 6.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.4e-05/0.1083, allocations: 7.938 kB / 404.4 MB, free: 6.742 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.098e-05/0.1083, allocations: 8 kB / 404.4 MB, free: 6.734 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004472/0.1088, allocations: 112.3 kB / 404.5 MB, free: 6.625 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.66e-05/0.1088, allocations: 15.92 kB / 404.5 MB, free: 6.609 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002503/0.1091, allocations: 59.42 kB / 404.6 MB, free: 6.551 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.723e-05/0.1091, allocations: 20 kB / 404.6 MB, free: 6.531 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.0004009/0.1095, allocations: 269.2 kB / 404.8 MB, free: 6.25 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.935e-05/0.1096, allocations: 51.34 kB / 404.9 MB, free: 6.199 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008736/0.1105, allocations: 487.9 kB / 405.4 MB, free: 5.707 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.1105, allocations: 4 kB / 405.4 MB, free: 5.703 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.1105, allocations: 7.984 kB / 405.4 MB, free: 5.695 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.1106, allocations: 0 / 405.4 MB, free: 5.695 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004589/0.111, allocations: 453 kB / 405.8 MB, free: 5.203 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.111, allocations: 0 / 405.8 MB, free: 5.203 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003919/0.1114, allocations: 71.89 kB / 405.9 MB, free: 5.133 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.1114, allocations: 0 / 405.9 MB, free: 5.133 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.952e-05/0.1115, allocations: 19.92 kB / 405.9 MB, free: 5.113 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/0.1115, allocations: 0 / 405.9 MB, free: 5.113 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.1115, allocations: 0 / 405.9 MB, free: 5.113 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009973/0.1125, allocations: 0.6712 MB / 406.6 MB, free: 4.414 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001098/0.1126, allocations: 132.4 kB / 406.7 MB, free: 4.266 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.55e-05/0.1127, allocations: 19.92 kB / 406.7 MB, free: 4.246 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001636/0.1129, allocations: 19.92 kB / 406.8 MB, free: 4.227 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.696e-05/0.113, allocations: 23.97 kB / 406.8 MB, free: 4.203 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.402e-05/0.113, allocations: 15.98 kB / 406.8 MB, free: 4.188 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004326/0.1135, allocations: 366.8 kB / 407.2 MB, free: 3.832 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1135, allocations: 0 / 407.2 MB, free: 3.832 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004383/0.1139, allocations: 115.8 kB / 407.3 MB, free: 3.719 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.002278/0.1162, allocations: 1.55 MB / 408.8 MB, free: 2.25 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001118/0.1173, allocations: 0.5153 MB / 409.3 MB, free: 1.723 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.1173, allocations: 0 / 409.3 MB, free: 1.723 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004884/0.1178, allocations: 256.5 kB / 409.6 MB, free: 1.461 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000672/0.1185, allocations: 85.8 kB / 409.7 MB, free: 1.375 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006305/0.1248, allocations: 4.873 MB / 414.5 MB, free: 12.3 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000416/0.1253, allocations: 0.8742 MB / 415.4 MB, free: 11.4 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002702/0.1256, allocations: 99.38 kB / 415.5 MB, free: 11.3 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002319/0.1258, allocations: 175.4 kB / 415.7 MB, free: 11.13 MB / 318.1 MB Notification: Performance of SimCode: time 6.21e-07/0.1258, allocations: 0 / 415.7 MB, free: 11.13 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02474/0.1506, allocations: 10.04 MB / 425.7 MB, free: 1.137 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002193/0.1508, allocations: 278.5 kB / 426 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.019/2.17, allocations: 4 kB / 426 MB, free: 0.7656 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/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)