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.006047/0.006047, allocations: 100.7 kB / 15.73 MB, free: 6.469 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.001641/0.001641, allocations: 193.2 kB / 16.67 MB, free: 6.379 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.555/1.555, allocations: 205.1 MB / 222.5 MB, free: 4.551 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.07974/0.07974, allocations: 10.75 MB / 280.6 MB, free: 10.43 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.001733/0.001733, allocations: 74.7 kB / 390.3 MB, free: 5.539 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2924/0.2941, allocations: 49.01 MB / 439.4 MB, free: 5.102 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestPD_tracking): time 0.003761/0.2979, allocations: 2.378 MB / 441.7 MB, free: 3.422 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002165/0.3001, allocations: 1.444 MB / 443.2 MB, free: 2.426 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001954/0.3003, allocations: 14.75 kB / 443.2 MB, free: 2.418 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006322/0.301, allocations: 204.7 kB / 443.4 MB, free: 2.348 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.00039/0.3014, allocations: 174 kB / 443.6 MB, free: 2.262 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009188/0.3023, allocations: 400.8 kB / 444 MB, free: 2.062 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006289/0.303, allocations: 0.6007 MB / 444.6 MB, free: 1.809 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000167/0.3031, allocations: 90.27 kB / 444.6 MB, free: 1.762 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002638/0.3034, allocations: 223 kB / 444.9 MB, free: 1.672 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002855/0.3037, allocations: 243.1 kB / 445.1 MB, free: 1.574 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.979e-05/0.3038, allocations: 31.75 kB / 445.1 MB, free: 1.574 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002768/0.3041, allocations: 156.9 kB / 445.3 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001613/0.3042, allocations: 145.2 kB / 445.4 MB, free: 1.469 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001657/0.3044, allocations: 210.8 kB / 445.6 MB, free: 1.32 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006315/0.305, allocations: 0.5538 MB / 446.2 MB, free: 1.082 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.305, allocations: 0 / 446.2 MB, free: 1.082 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3051, allocations: 0 / 446.2 MB, free: 1.082 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.738e-06/0.3051, allocations: 0 / 446.2 MB, free: 1.082 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.001368/0.3064, allocations: 0.8866 MB / 447.1 MB, free: 392 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.035e-05/0.3065, allocations: 13.45 kB / 447.1 MB, free: 388 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.483e-05/0.3066, allocations: 70.67 kB / 447.2 MB, free: 328 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001019/0.3067, allocations: 61.11 kB / 447.2 MB, free: 296 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006008/0.3073, allocations: 467.8 kB / 447.7 MB, free: 15.95 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.091e-05/0.3073, allocations: 23.12 kB / 447.7 MB, free: 15.94 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.004e-05/0.3074, allocations: 42.75 kB / 447.7 MB, free: 15.92 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007153/0.3081, allocations: 434.1 kB / 448.2 MB, free: 15.64 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.763e-05/0.3082, allocations: 6.297 kB / 448.2 MB, free: 15.64 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.278e-05/0.3082, allocations: 20.62 kB / 448.2 MB, free: 15.62 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.127e-05/0.3082, allocations: 7.656 kB / 448.2 MB, free: 15.62 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000594/0.3088, allocations: 304.7 kB / 448.5 MB, free: 15.48 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002392/0.3112, allocations: 1.554 MB / 450 MB, free: 14.24 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004379/0.3117, allocations: 234.4 kB / 450.3 MB, free: 14.12 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002444/0.3119, allocations: 152.5 kB / 450.4 MB, free: 14.04 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.432e-05/0.312, allocations: 7.859 kB / 450.4 MB, free: 14.04 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004163/0.3124, allocations: 243.8 kB / 450.7 MB, free: 13.87 MB / 334.1 MB Notification: Performance of pre-optimization done (n=33): time 2.645e-06/0.3124, allocations: 1.969 kB / 450.7 MB, free: 13.87 MB / 334.1 MB Notification: Performance of matching and sorting (n=33): time 0.001026/0.3135, allocations: 0.5488 MB / 451.2 MB, free: 13.59 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.149e-05/0.3135, allocations: 108.3 kB / 451.3 MB, free: 13.46 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005798/0.3141, allocations: 0.5228 MB / 451.8 MB, free: 13.15 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.613e-05/0.3142, allocations: 32.86 kB / 451.9 MB, free: 13.11 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001982/0.3144, allocations: 265.9 kB / 452.1 MB, free: 12.88 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001044/0.3145, allocations: 121.1 kB / 452.3 MB, free: 12.77 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001358/0.3146, allocations: 91.75 kB / 452.3 MB, free: 12.72 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001469/0.3148, allocations: 370.1 kB / 452.7 MB, free: 12.36 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002565/0.315, allocations: 145.1 kB / 452.8 MB, free: 12.3 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003866/0.3154, allocations: 295.2 kB / 453.1 MB, free: 12.04 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001967/0.3174, allocations: 0.8952 MB / 454 MB, free: 11.42 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.449e-06/0.3174, allocations: 5.281 kB / 454 MB, free: 11.41 MB / 334.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001011/0.3185, allocations: 0.6139 MB / 454.6 MB, free: 11.1 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.301e-05/0.3185, allocations: 43.03 kB / 454.7 MB, free: 11.06 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.355e-05/0.3185, allocations: 12.31 kB / 454.7 MB, free: 11.05 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.328e-05/0.3186, allocations: 6.75 kB / 454.7 MB, free: 11.05 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004564/0.319, allocations: 109.4 kB / 454.8 MB, free: 11.02 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.513e-05/0.3191, allocations: 7.438 kB / 454.8 MB, free: 11.02 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002672/0.3193, allocations: 54.92 kB / 454.9 MB, free: 10.99 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.909e-05/0.3194, allocations: 20.91 kB / 454.9 MB, free: 10.98 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.0003805/0.3198, allocations: 262.9 kB / 455.2 MB, free: 10.77 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.319e-05/0.3199, allocations: 52.34 kB / 455.2 MB, free: 10.74 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009383/0.3208, allocations: 0.4908 MB / 455.7 MB, free: 10.46 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.001e-06/0.3208, allocations: 2.656 kB / 455.7 MB, free: 10.46 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.407e-06/0.3208, allocations: 1.375 kB / 455.7 MB, free: 10.46 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.131e-06/0.3209, allocations: 3.938 kB / 455.7 MB, free: 10.46 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000542/0.3214, allocations: 451.3 kB / 456.1 MB, free: 10.09 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.3214, allocations: 0 / 456.1 MB, free: 10.09 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003936/0.3218, allocations: 61.73 kB / 456.2 MB, free: 10.07 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/0.3218, allocations: 5.438 kB / 456.2 MB, free: 10.07 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.584e-05/0.3219, allocations: 27.02 kB / 456.2 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.4e-06/0.3219, allocations: 2.594 kB / 456.2 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.3219, allocations: 3.938 kB / 456.2 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001131/0.323, allocations: 0.6614 MB / 456.9 MB, free: 9.691 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001034/0.3232, allocations: 130.9 kB / 457 MB, free: 9.559 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.273e-05/0.3233, allocations: 15.47 kB / 457 MB, free: 9.551 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001769/0.3234, allocations: 20.8 kB / 457.1 MB, free: 9.539 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.584e-05/0.3235, allocations: 22.06 kB / 457.1 MB, free: 9.527 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.422e-05/0.3236, allocations: 16.3 kB / 457.1 MB, free: 9.52 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004581/0.324, allocations: 366.2 kB / 457.5 MB, free: 9.312 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.324, allocations: 0 / 457.5 MB, free: 9.312 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004823/0.3245, allocations: 115.9 kB / 457.6 MB, free: 9.285 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.002519/0.327, allocations: 1.56 MB / 459.1 MB, free: 8.184 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009291/0.328, allocations: 495.4 kB / 459.6 MB, free: 7.93 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.328, allocations: 0 / 459.6 MB, free: 7.93 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003971/0.3284, allocations: 262.3 kB / 459.9 MB, free: 7.77 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005006/0.3289, allocations: 76.95 kB / 460 MB, free: 7.73 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00663/0.3356, allocations: 4.674 MB / 464.6 MB, free: 3.102 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004764/0.3361, allocations: 0.8781 MB / 465.5 MB, free: 2.195 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000302/0.3364, allocations: 92.11 kB / 465.6 MB, free: 2.105 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003056/0.3367, allocations: 179.4 kB / 465.8 MB, free: 1.93 MB / 334.1 MB Notification: Performance of SimCode: time 7.22e-07/0.3367, allocations: 4 kB / 465.8 MB, free: 1.926 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03347/0.3702, allocations: 10.6 MB / 476.4 MB, free: 7.348 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.909/9.279, allocations: 18.97 kB / 476.4 MB, free: 7.332 MB / 350.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/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)