Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_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.TestI_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestI_tracking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestI_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestI_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.01017/0.01017, allocations: 102 kB / 15.73 MB, free: 6.039 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.002429/0.002429, allocations: 194.9 kB / 16.68 MB, free: 5.961 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.657/1.657, allocations: 205.1 MB / 222.5 MB, free: 4.391 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05838/0.05838, allocations: 10.75 MB / 280.7 MB, free: 10.27 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.00218/0.00218, allocations: 71.84 kB / 390.3 MB, free: 5.504 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3433/0.3454, allocations: 49.02 MB / 439.4 MB, free: 4.949 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestI_tracking): time 0.003803/0.3493, allocations: 2.355 MB / 441.7 MB, free: 3.285 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002274/0.3516, allocations: 1.42 MB / 443.1 MB, free: 2.309 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002327/0.3519, allocations: 14.75 kB / 443.1 MB, free: 2.301 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000738/0.3526, allocations: 212.8 kB / 443.4 MB, free: 2.223 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.000379/0.353, allocations: 157.9 kB / 443.5 MB, free: 2.152 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001033/0.3541, allocations: 393.6 kB / 443.9 MB, free: 1.957 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000595/0.3547, allocations: 0.5747 MB / 444.5 MB, free: 1.711 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001749/0.3549, allocations: 95.08 kB / 444.6 MB, free: 1.66 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002492/0.3551, allocations: 216.6 kB / 444.8 MB, free: 1.57 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002923/0.3554, allocations: 232.5 kB / 445 MB, free: 1.477 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.682e-05/0.3555, allocations: 33.84 kB / 445 MB, free: 1.473 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002652/0.3557, allocations: 145.2 kB / 445.2 MB, free: 1.441 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001472/0.3559, allocations: 138.5 kB / 445.3 MB, free: 1.375 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001637/0.3561, allocations: 198.1 kB / 445.5 MB, free: 1.234 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006551/0.3567, allocations: 0.5196 MB / 446 MB, free: 1.008 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.753e-06/0.3568, allocations: 0 / 446 MB, free: 1.008 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.417e-06/0.3568, allocations: 1.75 kB / 446 MB, free: 1.008 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.06e-05/0.3568, allocations: 0 / 446 MB, free: 1.008 MB / 318.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.001286/0.3581, allocations: 0.8429 MB / 446.9 MB, free: 348 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.113e-05/0.3581, allocations: 13.64 kB / 446.9 MB, free: 344 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.482e-05/0.3582, allocations: 67.84 kB / 446.9 MB, free: 284 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.75e-05/0.3583, allocations: 55.45 kB / 447 MB, free: 256 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006115/0.3589, allocations: 438.6 kB / 447.4 MB, free: 15.92 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.462e-05/0.359, allocations: 79.08 kB / 447.5 MB, free: 15.85 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.729e-05/0.3591, allocations: 37.45 kB / 447.5 MB, free: 15.83 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006679/0.3597, allocations: 391.7 kB / 447.9 MB, free: 15.64 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.257e-05/0.3598, allocations: 6.375 kB / 447.9 MB, free: 15.63 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.803e-05/0.3598, allocations: 10.72 kB / 447.9 MB, free: 15.62 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.317e-06/0.3598, allocations: 8.188 kB / 448 MB, free: 15.62 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005149/0.3604, allocations: 269.4 kB / 448.2 MB, free: 15.5 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002221/0.3626, allocations: 1.454 MB / 449.7 MB, free: 14.3 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004775/0.3631, allocations: 195.3 kB / 449.9 MB, free: 14.2 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002106/0.3633, allocations: 125.9 kB / 450 MB, free: 14.14 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.429e-05/0.3634, allocations: 3.625 kB / 450 MB, free: 14.14 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004175/0.3638, allocations: 230.9 kB / 450.2 MB, free: 13.96 MB / 334.1 MB Notification: Performance of pre-optimization done (n=27): time 2.064e-06/0.3638, allocations: 0 / 450.2 MB, free: 13.96 MB / 334.1 MB Notification: Performance of matching and sorting (n=27): time 0.0009844/0.3648, allocations: 483 kB / 450.7 MB, free: 13.73 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.168e-05/0.3649, allocations: 116.5 kB / 450.8 MB, free: 13.59 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005916/0.3655, allocations: 490.3 kB / 451.3 MB, free: 13.3 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.301e-05/0.3655, allocations: 28.27 kB / 451.3 MB, free: 13.27 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002062/0.3657, allocations: 255.9 kB / 451.6 MB, free: 13.05 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.096e-05/0.3658, allocations: 90.8 kB / 451.6 MB, free: 12.97 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001187/0.3659, allocations: 79.83 kB / 451.7 MB, free: 12.91 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000171/0.3661, allocations: 359.3 kB / 452.1 MB, free: 12.57 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002347/0.3664, allocations: 121.8 kB / 452.2 MB, free: 12.51 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003148/0.3667, allocations: 240.6 kB / 452.4 MB, free: 12.3 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001648/0.3683, allocations: 0.7353 MB / 453.2 MB, free: 11.79 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.3684, allocations: 1.062 kB / 453.2 MB, free: 11.79 MB / 334.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0009603/0.3693, allocations: 0.511 MB / 453.7 MB, free: 11.52 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.093e-05/0.3694, allocations: 43.16 kB / 453.7 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.053e-05/0.3694, allocations: 3.312 kB / 453.7 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.642e-05/0.3694, allocations: 9.469 kB / 453.7 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005671/0.37, allocations: 91.88 kB / 453.8 MB, free: 11.46 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.502e-05/0.37, allocations: 12.06 kB / 453.8 MB, free: 11.45 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002509/0.3703, allocations: 52.3 kB / 453.9 MB, free: 11.41 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.557e-05/0.3703, allocations: 14.19 kB / 453.9 MB, free: 11.41 MB / 334.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] processTrack.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] process.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real process.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] process.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 ($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 (45): * Single equations (assignments): 44 * 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.0003918/0.3707, allocations: 234.5 kB / 454.1 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.416e-05/0.3708, allocations: 50.34 kB / 454.2 MB, free: 11.19 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009385/0.3718, allocations: 456.6 kB / 454.6 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.566e-06/0.3718, allocations: 2.219 kB / 454.6 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.536e-06/0.3718, allocations: 1.156 kB / 454.6 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.711e-06/0.3718, allocations: 0 / 454.6 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006997/0.3725, allocations: 420.1 kB / 455 MB, free: 10.58 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.3726, allocations: 5.062 kB / 455 MB, free: 10.57 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006083/0.3732, allocations: 65.45 kB / 455.1 MB, free: 10.56 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.063e-06/0.3732, allocations: 1.156 kB / 455.1 MB, free: 10.56 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.199e-05/0.3732, allocations: 13.03 kB / 455.1 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.46e-06/0.3732, allocations: 1.406 kB / 455.1 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.516e-06/0.3733, allocations: 3.938 kB / 455.1 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001171/0.3744, allocations: 0.6027 MB / 455.7 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001237/0.3746, allocations: 126.8 kB / 455.8 MB, free: 10.08 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.354e-05/0.3746, allocations: 13.81 kB / 455.9 MB, free: 10.07 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001622/0.3748, allocations: 15.88 kB / 455.9 MB, free: 10.07 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.217e-05/0.3749, allocations: 19.5 kB / 455.9 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.451e-05/0.3749, allocations: 12.94 kB / 455.9 MB, free: 10.05 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004515/0.3754, allocations: 341.7 kB / 456.2 MB, free: 9.852 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.3754, allocations: 3.938 kB / 456.2 MB, free: 9.848 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005752/0.376, allocations: 103.1 kB / 456.3 MB, free: 9.824 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (R.Iout,R_track.Iout,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 (24): * Single equations (assignments): 21 * 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.002474/0.3785, allocations: 1.483 MB / 457.8 MB, free: 8.77 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008619/0.3794, allocations: 424 kB / 458.2 MB, free: 8.543 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.528e-06/0.3794, allocations: 0 / 458.2 MB, free: 8.543 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004131/0.3798, allocations: 231.5 kB / 458.5 MB, free: 8.398 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005626/0.3804, allocations: 69.19 kB / 458.5 MB, free: 8.363 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007258/0.3877, allocations: 4.145 MB / 462.7 MB, free: 4.953 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00047/0.3882, allocations: 0.8497 MB / 463.5 MB, free: 4.078 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002697/0.3884, allocations: 71.22 kB / 463.6 MB, free: 4.012 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002303/0.3887, allocations: 159.4 kB / 463.8 MB, free: 3.855 MB / 334.1 MB Notification: Performance of SimCode: time 1.433e-06/0.3887, allocations: 4 kB / 463.8 MB, free: 3.852 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03136/0.4201, allocations: 9.631 MB / 473.4 MB, free: 10.25 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.532/8.952, allocations: 7.953 kB / 473.4 MB, free: 10.24 MB / 350.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestI_tracking_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestI_tracking.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.pipe 2>&1)