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.007806/0.007806, allocations: 100 kB / 15.73 MB, free: 6.047 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.001467/0.001467, allocations: 185.3 kB / 16.67 MB, free: 5.977 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.533/1.533, allocations: 205.1 MB / 222.6 MB, free: 4.527 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05944/0.05944, allocations: 10.73 MB / 280.6 MB, free: 10.41 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.00143/0.00143, allocations: 74.7 kB / 390.3 MB, free: 5.535 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2993/0.3007, allocations: 49.03 MB / 439.4 MB, free: 5.09 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestD_tracking): time 0.004026/0.3048, allocations: 2.354 MB / 441.7 MB, free: 3.43 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002277/0.3071, allocations: 1.438 MB / 443.2 MB, free: 2.438 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002028/0.3073, allocations: 14.75 kB / 443.2 MB, free: 2.43 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006499/0.308, allocations: 213 kB / 443.4 MB, free: 2.352 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.0003639/0.3084, allocations: 166.7 kB / 443.5 MB, free: 2.273 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009469/0.3093, allocations: 389.7 kB / 443.9 MB, free: 2.082 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006206/0.31, allocations: 0.5949 MB / 444.5 MB, free: 1.832 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001899/0.3102, allocations: 93.44 kB / 444.6 MB, free: 1.781 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002581/0.3104, allocations: 221.9 kB / 444.8 MB, free: 1.691 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002918/0.3107, allocations: 246.8 kB / 445.1 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.534e-05/0.3108, allocations: 35.92 kB / 445.1 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002966/0.3111, allocations: 144.6 kB / 445.2 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001695/0.3113, allocations: 152.6 kB / 445.4 MB, free: 1.484 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001755/0.3115, allocations: 215.1 kB / 445.6 MB, free: 1.332 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006837/0.3122, allocations: 0.5485 MB / 446.2 MB, free: 1.098 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.3122, allocations: 0 / 446.2 MB, free: 1.098 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.3122, allocations: 0 / 446.2 MB, free: 1.098 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.025e-05/0.3122, allocations: 1.125 kB / 446.2 MB, free: 1.098 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: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.001372/0.3136, allocations: 0.8799 MB / 447 MB, free: 412 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.206e-05/0.3136, allocations: 14.64 kB / 447 MB, free: 408 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.101e-05/0.3137, allocations: 70.12 kB / 447.1 MB, free: 348 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001144/0.3139, allocations: 60.05 kB / 447.2 MB, free: 316 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006331/0.3145, allocations: 460.7 kB / 447.6 MB, free: 15.97 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.467e-05/0.3145, allocations: 26.75 kB / 447.6 MB, free: 15.96 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.147e-05/0.3146, allocations: 34.78 kB / 447.7 MB, free: 15.95 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000757/0.3154, allocations: 437.6 kB / 448.1 MB, free: 15.66 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.558e-05/0.3154, allocations: 6.344 kB / 448.1 MB, free: 15.66 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.056e-05/0.3155, allocations: 11.44 kB / 448.1 MB, free: 15.65 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.253e-05/0.3155, allocations: 8.125 kB / 448.1 MB, free: 15.65 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005785/0.3161, allocations: 316.2 kB / 448.4 MB, free: 15.5 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002268/0.3183, allocations: 1.544 MB / 450 MB, free: 14.27 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004037/0.3188, allocations: 236.8 kB / 450.2 MB, free: 14.15 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002725/0.319, allocations: 151.6 kB / 450.4 MB, free: 14.07 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.056e-05/0.3191, allocations: 3.422 kB / 450.4 MB, free: 14.07 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004086/0.3195, allocations: 250 kB / 450.6 MB, free: 13.89 MB / 334.1 MB Notification: Performance of pre-optimization done (n=33): time 1.743e-06/0.3195, allocations: 4 kB / 450.6 MB, free: 13.89 MB / 334.1 MB Notification: Performance of matching and sorting (n=33): time 0.001013/0.3205, allocations: 0.5497 MB / 451.2 MB, free: 13.61 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.676e-05/0.3206, allocations: 112.3 kB / 451.3 MB, free: 13.48 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006353/0.3213, allocations: 0.5161 MB / 451.8 MB, free: 13.17 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.537e-05/0.3213, allocations: 31.83 kB / 451.8 MB, free: 13.14 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002271/0.3216, allocations: 274.3 kB / 452.1 MB, free: 12.89 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001029/0.3217, allocations: 109.4 kB / 452.2 MB, free: 12.8 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001711/0.3218, allocations: 99.94 kB / 452.3 MB, free: 12.74 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001973/0.322, allocations: 368.9 kB / 452.7 MB, free: 12.38 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002805/0.3223, allocations: 138.1 kB / 452.8 MB, free: 12.32 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003944/0.3227, allocations: 290.7 kB / 453.1 MB, free: 12.07 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001918/0.3247, allocations: 0.9023 MB / 454 MB, free: 11.44 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.478e-06/0.3247, allocations: 1.125 kB / 454 MB, free: 11.44 MB / 334.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0009978/0.3257, allocations: 0.6101 MB / 454.6 MB, free: 11.13 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.56e-05/0.3258, allocations: 38.36 kB / 454.6 MB, free: 11.09 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.335e-05/0.3258, allocations: 7.812 kB / 454.6 MB, free: 11.09 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.106e-05/0.3258, allocations: 7.406 kB / 454.6 MB, free: 11.09 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004575/0.3263, allocations: 110.8 kB / 454.8 MB, free: 11.06 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.413e-05/0.3263, allocations: 6.938 kB / 454.8 MB, free: 11.06 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002509/0.3265, allocations: 67.12 kB / 454.8 MB, free: 11.02 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.95e-05/0.3266, allocations: 17.06 kB / 454.8 MB, free: 11.02 MB / 334.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.0003828/0.327, allocations: 270.5 kB / 455.1 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.474e-05/0.3271, allocations: 55.5 kB / 455.2 MB, free: 10.76 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008904/0.328, allocations: 494.5 kB / 455.6 MB, free: 10.49 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.913e-06/0.328, allocations: 3.156 kB / 455.6 MB, free: 10.49 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.328, allocations: 0 / 455.6 MB, free: 10.49 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.906e-06/0.328, allocations: 9.203 kB / 455.7 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004643/0.3285, allocations: 454.4 kB / 456.1 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.3285, allocations: 0 / 456.1 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003909/0.3289, allocations: 70.58 kB / 456.2 MB, free: 10.09 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.3289, allocations: 2.062 kB / 456.2 MB, free: 10.09 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.982e-05/0.329, allocations: 18.23 kB / 456.2 MB, free: 10.07 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.329, allocations: 2.406 kB / 456.2 MB, free: 10.07 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.329, allocations: 0 / 456.2 MB, free: 10.07 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001038/0.33, allocations: 0.6656 MB / 456.9 MB, free: 9.715 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.695e-05/0.3301, allocations: 127.4 kB / 457 MB, free: 9.586 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.242e-05/0.3302, allocations: 18.89 kB / 457 MB, free: 9.574 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001604/0.3304, allocations: 16.39 kB / 457 MB, free: 9.566 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.846e-05/0.3305, allocations: 21.88 kB / 457 MB, free: 9.555 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.325e-05/0.3305, allocations: 12.91 kB / 457 MB, free: 9.551 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004469/0.3309, allocations: 364.9 kB / 457.4 MB, free: 9.344 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.527e-06/0.331, allocations: 0 / 457.4 MB, free: 9.344 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005179/0.3315, allocations: 123.2 kB / 457.5 MB, free: 9.309 MB / 334.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.002359/0.3339, allocations: 1.556 MB / 459.1 MB, free: 8.203 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008084/0.3347, allocations: 490.5 kB / 459.6 MB, free: 7.953 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.3347, allocations: 0 / 459.6 MB, free: 7.953 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003624/0.3351, allocations: 258.9 kB / 459.8 MB, free: 7.797 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004492/0.3355, allocations: 84.48 kB / 459.9 MB, free: 7.75 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005476/0.341, allocations: 4.655 MB / 464.5 MB, free: 3.148 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004238/0.3414, allocations: 0.8742 MB / 465.4 MB, free: 2.246 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002634/0.3417, allocations: 103.3 kB / 465.5 MB, free: 2.145 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002304/0.342, allocations: 175.4 kB / 465.7 MB, free: 1.973 MB / 334.1 MB Notification: Performance of SimCode: time 2.61e-07/0.342, allocations: 0 / 465.7 MB, free: 1.973 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02981/0.3718, allocations: 10.55 MB / 476.2 MB, free: 7.453 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.639/9.011, allocations: 11.75 kB / 476.3 MB, free: 7.441 MB / 350.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)