Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_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.TestP_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestP_tracking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestP_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestP_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.0008221/0.0008222, 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.0008367/0.0008367, 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.268/1.268, allocations: 205.4 MB / 222.1 MB, free: 5.645 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05436/0.05436, allocations: 10.76 MB / 281.1 MB, free: 10.53 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.0004736/0.0004739, allocations: 16 kB / 341.7 MB, free: 23.73 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07126/0.07174, allocations: 49.99 MB / 391.7 MB, free: 5.66 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestP_tracking): time 0.00265/0.07444, allocations: 1.957 MB / 393.7 MB, free: 3.691 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002082/0.07655, allocations: 1.241 MB / 394.9 MB, free: 2.441 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002547/0.07684, allocations: 11.88 kB / 394.9 MB, free: 2.43 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006631/0.07752, allocations: 191.4 kB / 395.1 MB, free: 2.242 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003488/0.07788, allocations: 131.5 kB / 395.3 MB, free: 2.113 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000815/0.0787, allocations: 287.4 kB / 395.5 MB, free: 1.832 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005581/0.07927, allocations: 471 kB / 396 MB, free: 1.371 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001611/0.07944, allocations: 61.25 kB / 396.1 MB, free: 1.305 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002742/0.07973, allocations: 183.2 kB / 396.2 MB, free: 1.125 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002836/0.08002, allocations: 199.1 kB / 396.4 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.563e-05/0.08008, allocations: 12 kB / 396.4 MB, free: 0.918 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002246/0.08031, allocations: 111.9 kB / 396.6 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001249/0.08045, allocations: 115.6 kB / 396.7 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.788e-05/0.08055, allocations: 89.45 kB / 396.8 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000359/0.08092, allocations: 359.5 kB / 397.1 MB, free: 256 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.309e-06/0.08093, allocations: 0 / 397.1 MB, free: 256 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.08094, allocations: 0 / 397.1 MB, free: 256 kB / 286.1 MB Notification: Performance of Transformations before backend: time 1.004e-05/0.08096, allocations: 0 / 397.1 MB, free: 256 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001137/0.0821, allocations: 0.7632 MB / 397.9 MB, free: 15.43 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.645e-05/0.08214, allocations: 8.031 kB / 397.9 MB, free: 15.42 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.126e-05/0.08223, allocations: 74.47 kB / 397.9 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.352e-05/0.08232, allocations: 51.34 kB / 398 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005077/0.08284, allocations: 385.5 kB / 398.4 MB, free: 14.87 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.93e-05/0.08288, allocations: 24.5 kB / 398.4 MB, free: 14.85 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.928e-05/0.08294, allocations: 35.98 kB / 398.4 MB, free: 14.81 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000605/0.08355, allocations: 375.7 kB / 398.8 MB, free: 14.43 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.122e-05/0.08359, allocations: 7.891 kB / 398.8 MB, free: 14.42 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.155e-05/0.08362, allocations: 15.95 kB / 398.8 MB, free: 14.4 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.252e-05/0.08364, allocations: 12 kB / 398.8 MB, free: 14.39 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000448/0.0841, allocations: 266 kB / 399.1 MB, free: 14.13 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0018/0.08591, allocations: 1.395 MB / 400.5 MB, free: 12.66 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004708/0.08639, allocations: 206.9 kB / 400.7 MB, free: 12.45 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001947/0.0866, allocations: 128.9 kB / 400.8 MB, free: 12.32 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.762e-05/0.08665, allocations: 8.141 kB / 400.8 MB, free: 12.31 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003324/0.08699, allocations: 217.8 kB / 401 MB, free: 12.08 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 2.284e-06/0.08701, allocations: 4 kB / 401 MB, free: 12.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.0008062/0.08782, allocations: 481.1 kB / 401.5 MB, free: 11.59 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.694e-05/0.08789, allocations: 106.8 kB / 401.6 MB, free: 11.46 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005121/0.08841, allocations: 489.8 kB / 402.1 MB, free: 10.98 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.597e-05/0.08844, allocations: 29.7 kB / 402.1 MB, free: 10.94 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000161/0.08861, allocations: 252.1 kB / 402.4 MB, free: 10.69 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.057e-05/0.08869, allocations: 86.8 kB / 402.5 MB, free: 10.61 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.798e-05/0.08871, allocations: 12 kB / 402.5 MB, free: 10.59 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001187/0.08884, allocations: 358.8 kB / 402.8 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002038/0.08905, allocations: 108.4 kB / 402.9 MB, free: 10.13 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002593/0.08932, allocations: 236.2 kB / 403.2 MB, free: 9.848 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002964/0.08963, allocations: 173.4 kB / 403.3 MB, free: 9.672 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.08965, allocations: 0 / 403.3 MB, free: 9.672 MB / 302.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0007591/0.09041, allocations: 0.4944 MB / 403.8 MB, free: 9.164 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.353e-05/0.09047, allocations: 40.66 kB / 403.9 MB, free: 9.121 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.075e-05/0.09049, allocations: 7.938 kB / 403.9 MB, free: 9.113 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.504e-05/0.09052, allocations: 12.34 kB / 403.9 MB, free: 9.102 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003043/0.09083, allocations: 83.89 kB / 404 MB, free: 9.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.158e-05/0.09085, allocations: 7.984 kB / 404 MB, free: 9.012 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002071/0.09106, allocations: 47.58 kB / 404 MB, free: 8.965 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.852e-05/0.0911, allocations: 16 kB / 404 MB, free: 8.949 MB / 302.1 MB Warning: Assuming fixed start value for the following 6 variables: processTrack.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real processTrack.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] process.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] process.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] process.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real processTrack.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (44): * Single equations (assignments): 43 * 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.0002783/0.09139, allocations: 240.5 kB / 404.3 MB, free: 8.695 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.169e-05/0.09146, allocations: 47.39 kB / 404.3 MB, free: 8.648 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006911/0.09215, allocations: 432.3 kB / 404.7 MB, free: 8.215 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.588e-06/0.09217, allocations: 4 kB / 404.7 MB, free: 8.211 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.09218, allocations: 4 kB / 404.7 MB, free: 8.207 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.09219, allocations: 3.984 kB / 404.7 MB, free: 8.203 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003958/0.09259, allocations: 417.2 kB / 405.2 MB, free: 7.746 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.09261, allocations: 7.938 kB / 405.2 MB, free: 7.738 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002468/0.09286, allocations: 47.91 kB / 405.2 MB, free: 7.691 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.617e-06/0.09288, allocations: 0 / 405.2 MB, free: 7.691 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.968e-05/0.09292, allocations: 19.94 kB / 405.2 MB, free: 7.672 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.09293, allocations: 0 / 405.2 MB, free: 7.672 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.09294, allocations: 0 / 405.2 MB, free: 7.672 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00088/0.09382, allocations: 0.5889 MB / 405.8 MB, free: 7.059 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.993e-05/0.09392, allocations: 120.5 kB / 405.9 MB, free: 6.922 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.423e-05/0.094, allocations: 20.05 kB / 406 MB, free: 6.902 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001405/0.09414, allocations: 20.06 kB / 406 MB, free: 6.883 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.627e-05/0.09422, allocations: 23.92 kB / 406 MB, free: 6.859 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.963e-05/0.09425, allocations: 15.98 kB / 406 MB, free: 6.844 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003391/0.0946, allocations: 335.1 kB / 406.3 MB, free: 6.52 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.392e-06/0.09461, allocations: 0 / 406.3 MB, free: 6.52 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003799/0.09499, allocations: 107.8 kB / 406.4 MB, free: 6.414 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (process.Y[3],process.U[2],process.w,processTrack.Y[3],processTrack.U[2],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 (25): * Single equations (assignments): 22 * 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.001947/0.09695, allocations: 1.46 MB / 407.9 MB, free: 5.027 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000647/0.09761, allocations: 411.7 kB / 408.3 MB, free: 4.613 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.09763, allocations: 0 / 408.3 MB, free: 4.613 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000278/0.09792, allocations: 227.2 kB / 408.5 MB, free: 4.379 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004153/0.09834, allocations: 73.67 kB / 408.6 MB, free: 4.309 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003718/0.1021, allocations: 2.779 MB / 411.4 MB, free: 1.422 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003632/0.1025, allocations: 0.8461 MB / 412.2 MB, free: 0.5508 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002142/0.1027, allocations: 79.2 kB / 412.3 MB, free: 484 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001905/0.1029, allocations: 159.4 kB / 412.5 MB, free: 324 kB / 302.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1029, allocations: 0 / 412.5 MB, free: 324 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02089/0.1238, allocations: 8.676 MB / 421.1 MB, free: 7.703 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002408/0.1241, allocations: 251.5 kB / 421.4 MB, free: 7.367 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.861/1.985, allocations: 4 kB / 421.4 MB, free: 7.363 MB / 318.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestP_tracking_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestP_tracking.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.pipe 2>&1) Environment - environmentSimulation: