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.009327/0.009327, allocations: 100.3 kB / 15.73 MB, free: 6.031 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.001239/0.001239, allocations: 194.5 kB / 16.67 MB, free: 5.969 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.601/1.601, allocations: 205.1 MB / 222.5 MB, free: 4.5 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05953/0.05953, allocations: 10.75 MB / 280.7 MB, free: 10.42 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.001633/0.001633, allocations: 70.72 kB / 390.3 MB, free: 5.539 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3709/0.3726, allocations: 49.02 MB / 439.4 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestP_tracking): time 0.006601/0.3792, allocations: 2.347 MB / 441.7 MB, free: 3.422 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004288/0.3835, allocations: 1.318 MB / 443 MB, free: 2.516 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006955/0.3843, allocations: 14.75 kB / 443 MB, free: 2.508 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001239/0.3856, allocations: 213 kB / 443.2 MB, free: 2.43 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.0008981/0.3865, allocations: 174.2 kB / 443.4 MB, free: 2.344 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001762/0.3883, allocations: 342.9 kB / 443.8 MB, free: 2.176 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001387/0.3897, allocations: 0.5397 MB / 444.3 MB, free: 1.945 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003548/0.3901, allocations: 86.44 kB / 444.4 MB, free: 1.902 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006638/0.3908, allocations: 212.1 kB / 444.6 MB, free: 1.809 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006838/0.3915, allocations: 218.9 kB / 444.8 MB, free: 1.719 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001561/0.3916, allocations: 31.91 kB / 444.8 MB, free: 1.715 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005641/0.3922, allocations: 148.8 kB / 445 MB, free: 1.68 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002901/0.3925, allocations: 130 kB / 445.1 MB, free: 1.617 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003611/0.3929, allocations: 193.2 kB / 445.3 MB, free: 1.48 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001267/0.3942, allocations: 0.4983 MB / 445.8 MB, free: 1.266 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.972e-06/0.3942, allocations: 5.375 kB / 445.8 MB, free: 1.262 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.3942, allocations: 0 / 445.8 MB, free: 1.262 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.689e-05/0.3943, allocations: 0 / 445.8 MB, free: 1.262 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.002874/0.3972, allocations: 0.8304 MB / 446.6 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.137e-05/0.3973, allocations: 13.48 kB / 446.6 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001676/0.3974, allocations: 72.36 kB / 446.7 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002653/0.3977, allocations: 54.67 kB / 446.8 MB, free: 0.5 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001132/0.3989, allocations: 428.5 kB / 447.2 MB, free: 188 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.4e-05/0.3989, allocations: 21.38 kB / 447.2 MB, free: 180 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001055/0.3991, allocations: 35.86 kB / 447.2 MB, free: 164 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001258/0.4003, allocations: 381.6 kB / 447.6 MB, free: 15.97 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.869e-05/0.4004, allocations: 6.188 kB / 447.6 MB, free: 15.97 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.258e-05/0.4005, allocations: 11.45 kB / 447.6 MB, free: 15.96 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.713e-05/0.4005, allocations: 8.125 kB / 447.6 MB, free: 15.96 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00095/0.4015, allocations: 256.6 kB / 447.9 MB, free: 15.86 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003629/0.4051, allocations: 1.382 MB / 449.3 MB, free: 14.71 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008941/0.406, allocations: 207.2 kB / 449.5 MB, free: 14.61 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003955/0.4064, allocations: 126.7 kB / 449.6 MB, free: 14.54 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.214e-05/0.4065, allocations: 11.92 kB / 449.6 MB, free: 14.53 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006438/0.4072, allocations: 214.3 kB / 449.8 MB, free: 14.38 MB / 334.1 MB Notification: Performance of pre-optimization done (n=28): time 3.456e-06/0.4072, allocations: 0 / 449.8 MB, free: 14.38 MB / 334.1 MB Notification: Performance of matching and sorting (n=28): time 0.001756/0.409, allocations: 485.5 kB / 450.3 MB, free: 14.13 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001268/0.4091, allocations: 107.6 kB / 450.4 MB, free: 14.01 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001203/0.4103, allocations: 490.5 kB / 450.9 MB, free: 13.72 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.335e-05/0.4104, allocations: 36.44 kB / 450.9 MB, free: 13.68 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003596/0.4108, allocations: 246.3 kB / 451.1 MB, free: 13.46 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001669/0.411, allocations: 92.55 kB / 451.2 MB, free: 13.38 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002285/0.4112, allocations: 77.22 kB / 451.3 MB, free: 13.33 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000268/0.4115, allocations: 360.5 kB / 451.7 MB, free: 12.98 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004254/0.4119, allocations: 106.2 kB / 451.8 MB, free: 12.94 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005948/0.4126, allocations: 232.5 kB / 452 MB, free: 12.74 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002945/0.4155, allocations: 0.7096 MB / 452.7 MB, free: 12.24 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.344e-05/0.4156, allocations: 5.188 kB / 452.7 MB, free: 12.24 MB / 334.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001671/0.4172, allocations: 0.4935 MB / 453.2 MB, free: 11.98 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.79e-05/0.4174, allocations: 42.22 kB / 453.2 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.097e-05/0.4174, allocations: 7.656 kB / 453.3 MB, free: 11.93 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.639e-05/0.4174, allocations: 4.625 kB / 453.3 MB, free: 11.93 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00054/0.418, allocations: 75.2 kB / 453.3 MB, free: 11.92 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.266e-05/0.418, allocations: 4.562 kB / 453.3 MB, free: 11.92 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004572/0.4185, allocations: 52.95 kB / 453.4 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.663e-05/0.4186, allocations: 16.88 kB / 453.4 MB, free: 11.88 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 (44): * Single equations (assignments): 43 * 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.0006068/0.4192, allocations: 251.4 kB / 453.6 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001786/0.4194, allocations: 50.03 kB / 453.7 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001416/0.4209, allocations: 426.1 kB / 454.1 MB, free: 11.41 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.428e-06/0.4209, allocations: 3.375 kB / 454.1 MB, free: 11.41 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.835e-06/0.4209, allocations: 4 kB / 454.1 MB, free: 11.41 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.247e-05/0.4209, allocations: 1.062 kB / 454.1 MB, free: 11.41 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008983/0.4218, allocations: 416.3 kB / 454.5 MB, free: 11.05 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.4219, allocations: 0 / 454.5 MB, free: 11.05 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005161/0.4224, allocations: 56.53 kB / 454.6 MB, free: 11.03 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.626e-06/0.4224, allocations: 1.062 kB / 454.6 MB, free: 11.03 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.556e-05/0.4225, allocations: 13.42 kB / 454.6 MB, free: 11.02 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.73e-06/0.4225, allocations: 1.094 kB / 454.6 MB, free: 11.02 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.4225, allocations: 1.031 kB / 454.6 MB, free: 11.02 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001872/0.4244, allocations: 0.5874 MB / 455.2 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002039/0.4246, allocations: 129.1 kB / 455.3 MB, free: 10.57 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000128/0.4248, allocations: 9.719 kB / 455.3 MB, free: 10.56 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000275/0.4251, allocations: 16.05 kB / 455.3 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001054/0.4252, allocations: 20.59 kB / 455.4 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.086e-05/0.4253, allocations: 8.688 kB / 455.4 MB, free: 10.54 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006571/0.4259, allocations: 341 kB / 455.7 MB, free: 10.34 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.4259, allocations: 4 kB / 455.7 MB, free: 10.34 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008223/0.4268, allocations: 106.8 kB / 455.8 MB, free: 10.31 MB / 334.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 (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.003876/0.4307, allocations: 1.464 MB / 457.3 MB, free: 9.266 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001308/0.432, allocations: 410 kB / 457.7 MB, free: 9.047 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.851e-06/0.432, allocations: 1.156 kB / 457.7 MB, free: 9.047 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005775/0.4326, allocations: 221.7 kB / 457.9 MB, free: 8.91 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008507/0.4335, allocations: 85.08 kB / 458 MB, free: 8.863 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01106/0.4446, allocations: 4.061 MB / 462 MB, free: 5.719 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001096/0.4457, allocations: 0.8536 MB / 462.9 MB, free: 4.84 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0004624/0.4462, allocations: 75.22 kB / 463 MB, free: 4.77 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000409/0.4467, allocations: 163.3 kB / 463.1 MB, free: 4.609 MB / 334.1 MB Notification: Performance of SimCode: time 2.985e-06/0.4467, allocations: 0 / 463.1 MB, free: 4.609 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04009/0.4868, allocations: 9.48 MB / 472.6 MB, free: 11.15 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.586/9.073, allocations: 11.81 kB / 472.6 MB, free: 11.14 MB / 350.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/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)