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.0007462/0.0007462, allocations: 86.72 kB / 15.06 MB, free: 1.09 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.0007923/0.0007924, allocations: 168.7 kB / 15.95 MB, free: 204 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.196/1.196, allocations: 205.4 MB / 222.1 MB, free: 5.637 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05346/0.05346, allocations: 10.74 MB / 281.1 MB, free: 10.54 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.000446/0.000446, allocations: 12 kB / 341.7 MB, free: 23.73 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07521/0.07566, allocations: 50.01 MB / 391.7 MB, free: 5.645 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestPD_tracking): time 0.002337/0.07802, allocations: 1.98 MB / 393.7 MB, free: 3.652 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001825/0.07986, allocations: 1.342 MB / 395.1 MB, free: 2.301 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001279/0.08, allocations: 11.88 kB / 395.1 MB, free: 2.289 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005245/0.08054, allocations: 187.4 kB / 395.3 MB, free: 2.105 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002712/0.08082, allocations: 143.5 kB / 395.4 MB, free: 1.965 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006567/0.08148, allocations: 319.3 kB / 395.7 MB, free: 1.652 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004869/0.08198, allocations: 0.5077 MB / 396.2 MB, free: 1.141 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001327/0.08212, allocations: 73.22 kB / 396.3 MB, free: 1.062 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002243/0.08235, allocations: 203.1 kB / 396.5 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002629/0.08262, allocations: 211.1 kB / 396.7 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.899e-05/0.08267, allocations: 12 kB / 396.7 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001935/0.08287, allocations: 123.9 kB / 396.8 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000128/0.08301, allocations: 127.5 kB / 397 MB, free: 408 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.233e-05/0.08311, allocations: 89.45 kB / 397 MB, free: 312 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003715/0.08349, allocations: 399.4 kB / 397.4 MB, free: 15.91 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.0835, allocations: 3.938 kB / 397.4 MB, free: 15.91 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.08351, allocations: 4 kB / 397.4 MB, free: 15.91 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.242e-06/0.08352, allocations: 3.938 kB / 397.4 MB, free: 15.9 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.001087/0.08461, allocations: 0.8023 MB / 398.2 MB, free: 15.04 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.037e-05/0.08465, allocations: 11.97 kB / 398.3 MB, free: 15.03 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.749e-05/0.08473, allocations: 70.53 kB / 398.3 MB, free: 14.95 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.822e-05/0.08482, allocations: 59.25 kB / 398.4 MB, free: 14.89 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005038/0.08533, allocations: 425.3 kB / 398.8 MB, free: 14.44 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.826e-05/0.08537, allocations: 24.66 kB / 398.8 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.654e-05/0.08543, allocations: 36 kB / 398.9 MB, free: 14.38 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006195/0.08606, allocations: 436.3 kB / 399.3 MB, free: 13.93 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.05e-05/0.08609, allocations: 4 kB / 399.3 MB, free: 13.92 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.211e-05/0.08613, allocations: 15.95 kB / 399.3 MB, free: 13.91 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.727e-06/0.08614, allocations: 8 kB / 399.3 MB, free: 13.9 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005134/0.08666, allocations: 310.4 kB / 399.6 MB, free: 13.6 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001983/0.08865, allocations: 1.567 MB / 401.2 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003861/0.08905, allocations: 239.1 kB / 401.4 MB, free: 11.71 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002247/0.08929, allocations: 149 kB / 401.6 MB, free: 11.56 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.201e-05/0.08933, allocations: 4.234 kB / 401.6 MB, free: 11.56 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003569/0.08969, allocations: 255.1 kB / 401.8 MB, free: 11.29 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 1.703e-06/0.08971, allocations: 0 / 401.8 MB, free: 11.29 MB / 302.1 MB Notification: Performance of matching and sorting (n=33): time 0.000901/0.09061, allocations: 0.5482 MB / 402.4 MB, free: 10.73 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.262e-05/0.09068, allocations: 114.8 kB / 402.5 MB, free: 10.6 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000536/0.09123, allocations: 0.5214 MB / 403 MB, free: 10.07 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.866e-05/0.09127, allocations: 33.7 kB / 403 MB, free: 10.03 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001834/0.09145, allocations: 271.9 kB / 403.3 MB, free: 9.758 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.073e-05/0.09154, allocations: 110.5 kB / 403.4 MB, free: 9.648 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.869e-05/0.09157, allocations: 8 kB / 403.4 MB, free: 9.641 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001455/0.09172, allocations: 370.7 kB / 403.8 MB, free: 9.27 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002408/0.09196, allocations: 144.9 kB / 403.9 MB, free: 9.129 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003256/0.0923, allocations: 290.1 kB / 404.2 MB, free: 8.785 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003071/0.09262, allocations: 218.9 kB / 404.4 MB, free: 8.559 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.478e-06/0.09263, allocations: 4 kB / 404.4 MB, free: 8.555 MB / 302.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0008475/0.09348, allocations: 0.6139 MB / 405 MB, free: 7.93 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.5e-05/0.09353, allocations: 37.7 kB / 405.1 MB, free: 7.887 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.535e-06/0.09354, allocations: 4 kB / 405.1 MB, free: 7.883 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.54e-05/0.09356, allocations: 11.98 kB / 405.1 MB, free: 7.871 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003986/0.09397, allocations: 112.4 kB / 405.2 MB, free: 7.762 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.076e-05/0.09399, allocations: 7.984 kB / 405.2 MB, free: 7.754 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002133/0.09421, allocations: 67.38 kB / 405.3 MB, free: 7.688 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.098e-05/0.09425, allocations: 20 kB / 405.3 MB, free: 7.668 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.0002921/0.09455, allocations: 265.2 kB / 405.5 MB, free: 7.391 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.146e-05/0.09462, allocations: 55.34 kB / 405.6 MB, free: 7.336 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007721/0.09539, allocations: 495.9 kB / 406.1 MB, free: 6.836 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.09541, allocations: 4 kB / 406.1 MB, free: 6.832 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.09542, allocations: 3.984 kB / 406.1 MB, free: 6.828 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.172e-06/0.09543, allocations: 3.953 kB / 406.1 MB, free: 6.824 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004182/0.09586, allocations: 461 kB / 406.5 MB, free: 6.324 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.09587, allocations: 0 / 406.5 MB, free: 6.324 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003626/0.09623, allocations: 59.95 kB / 406.6 MB, free: 6.266 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.09625, allocations: 4 kB / 406.6 MB, free: 6.262 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.484e-05/0.09629, allocations: 23.98 kB / 406.6 MB, free: 6.238 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.0963, allocations: 0 / 406.6 MB, free: 6.238 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.0963, allocations: 0 / 406.6 MB, free: 6.238 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009237/0.09723, allocations: 0.6634 MB / 407.3 MB, free: 5.547 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.561e-05/0.09733, allocations: 132.4 kB / 407.4 MB, free: 5.398 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.479e-05/0.0974, allocations: 20 kB / 407.4 MB, free: 5.379 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001545/0.09756, allocations: 19.98 kB / 407.5 MB, free: 5.359 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.656e-05/0.09764, allocations: 19.97 kB / 407.5 MB, free: 5.34 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.071e-05/0.09768, allocations: 15.98 kB / 407.5 MB, free: 5.324 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003532/0.09804, allocations: 366.8 kB / 407.9 MB, free: 4.969 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.09804, allocations: 0 / 407.9 MB, free: 4.969 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003714/0.09842, allocations: 111.9 kB / 408 MB, free: 4.859 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.001983/0.1004, allocations: 1.567 MB / 409.5 MB, free: 3.375 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006688/0.1011, allocations: 0.4911 MB / 410 MB, free: 2.871 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.1011, allocations: 0 / 410 MB, free: 2.871 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002988/0.1014, allocations: 261.5 kB / 410.3 MB, free: 2.605 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003693/0.1018, allocations: 73.88 kB / 410.3 MB, free: 2.531 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004021/0.1058, allocations: 3.286 MB / 413.6 MB, free: 15.14 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000385/0.1062, allocations: 0.8741 MB / 414.5 MB, free: 14.24 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002427/0.1065, allocations: 100.1 kB / 414.6 MB, free: 14.14 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002246/0.1067, allocations: 179.4 kB / 414.8 MB, free: 13.97 MB / 318.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1067, allocations: 0 / 414.8 MB, free: 13.97 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02003/0.1267, allocations: 9.743 MB / 424.5 MB, free: 4.281 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002251/0.127, allocations: 252.6 kB / 424.8 MB, free: 3.945 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.831/1.958, allocations: 0 / 424.8 MB, free: 3.945 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/linux/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) Environment - environmentSimulation: