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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009444/0.0009444, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001692/0.001692, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8986/0.8986, allocations: 177.1 MB / 202.8 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo): time 0.03489/0.03489, allocations: 8.605 MB / 267.8 MB, free: 5.121 MB / 250.7 MB " [Timeout remaining time 180] Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.086e-06/3.086e-06, allocations: 4 kB / 395.1 MB, free: 2.652 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.798e-05/2.107e-05, allocations: 2.281 kB / 395.1 MB, free: 2.648 MB / 362.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestPD_tracking): time 0.00295/0.002971, allocations: 2.343 MB / 397.4 MB, free: 292 kB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.002086/0.005058, allocations: 1.602 MB / 399 MB, free: 14.68 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001736/0.005231, allocations: 23.75 kB / 399 MB, free: 14.65 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006592/0.00589, allocations: 238.1 kB / 399.3 MB, free: 14.42 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003462/0.006237, allocations: 214.8 kB / 399.5 MB, free: 14.21 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000679/0.006916, allocations: 458.7 kB / 399.9 MB, free: 13.76 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004481/0.007364, allocations: 0.5943 MB / 400.5 MB, free: 13.16 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002788/0.007642, allocations: 61.22 kB / 400.6 MB, free: 13.1 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002397/0.007882, allocations: 295.3 kB / 400.9 MB, free: 12.81 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002152/0.008097, allocations: 219.4 kB / 401.1 MB, free: 12.59 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.13e-05/0.008139, allocations: 36 kB / 401.1 MB, free: 12.56 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001837/0.008322, allocations: 159.7 kB / 401.3 MB, free: 12.4 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001153/0.008438, allocations: 155.5 kB / 401.4 MB, free: 12.25 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001083/0.008546, allocations: 131.5 kB / 401.6 MB, free: 12.12 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005466/0.009092, allocations: 0.6034 MB / 402.2 MB, free: 11.52 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.055e-06/0.009095, allocations: 0 / 402.2 MB, free: 11.52 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.009098, allocations: 0 / 402.2 MB, free: 11.52 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.562e-06/0.009104, allocations: 0 / 402.2 MB, free: 11.52 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.001128/0.01023, allocations: 0.8593 MB / 403 MB, free: 10.61 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.654e-05/0.01028, allocations: 12.03 kB / 403 MB, free: 10.6 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.224e-05/0.01034, allocations: 70.72 kB / 403.1 MB, free: 10.52 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.915e-05/0.01043, allocations: 68.52 kB / 403.2 MB, free: 10.46 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004865/0.01092, allocations: 406 kB / 403.6 MB, free: 10.04 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.746e-05/0.01094, allocations: 29.38 kB / 403.6 MB, free: 10.01 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.919e-05/0.01099, allocations: 48.31 kB / 403.7 MB, free: 9.961 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000521/0.01151, allocations: 0.5013 MB / 404.2 MB, free: 9.414 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.792e-05/0.01153, allocations: 0 / 404.2 MB, free: 9.414 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.619e-05/0.01156, allocations: 16 kB / 404.2 MB, free: 9.398 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.097e-06/0.01157, allocations: 12 kB / 404.2 MB, free: 9.387 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003957/0.01196, allocations: 352 kB / 404.5 MB, free: 9.039 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001685/0.01365, allocations: 1.827 MB / 406.3 MB, free: 7.129 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003288/0.01398, allocations: 252.7 kB / 406.6 MB, free: 6.867 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001548/0.01413, allocations: 162.7 kB / 406.8 MB, free: 6.699 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.713e-05/0.01416, allocations: 8.219 kB / 406.8 MB, free: 6.691 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000286/0.01445, allocations: 281.7 kB / 407 MB, free: 6.395 MB / 378.7 MB Notification: Performance of pre-optimization done (n=33): time 2.014e-06/0.01445, allocations: 0 / 407 MB, free: 6.395 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.0006933/0.01514, allocations: 0.6293 MB / 407.7 MB, free: 5.742 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001829/0.01532, allocations: 81.11 kB / 407.7 MB, free: 5.645 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004373/0.01576, allocations: 0.569 MB / 408.3 MB, free: 5.062 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.385e-05/0.01578, allocations: 37.7 kB / 408.4 MB, free: 5.02 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001548/0.01594, allocations: 288.3 kB / 408.6 MB, free: 4.734 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.274e-05/0.016, allocations: 111.1 kB / 408.7 MB, free: 4.625 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.703e-05/0.0161, allocations: 106.1 kB / 408.8 MB, free: 4.512 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000111/0.01621, allocations: 370.8 kB / 409.2 MB, free: 4.141 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001832/0.01639, allocations: 182.7 kB / 409.4 MB, free: 3.957 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002545/0.01665, allocations: 372.9 kB / 409.8 MB, free: 3.504 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001309/0.01796, allocations: 0.9569 MB / 410.7 MB, free: 2.453 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.89e-06/0.01796, allocations: 0 / 410.7 MB, free: 2.453 MB / 378.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0007852/0.01875, allocations: 0.6924 MB / 411.4 MB, free: 1.742 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.904e-05/0.01881, allocations: 41.69 kB / 411.4 MB, free: 1.695 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.25e-05/0.01882, allocations: 4 kB / 411.4 MB, free: 1.691 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.337e-05/0.01884, allocations: 8.656 kB / 411.5 MB, free: 1.684 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000308/0.01915, allocations: 115.8 kB / 411.6 MB, free: 1.57 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.892e-05/0.01917, allocations: 11.94 kB / 411.6 MB, free: 1.559 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001905/0.01936, allocations: 63.61 kB / 411.6 MB, free: 1.496 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.645e-05/0.0194, allocations: 20 kB / 411.7 MB, free: 1.477 MB / 378.7 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: 22 * Number of states: 0 () * Number of discrete variables: 20 ($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.satLOW_in,R_track.satHIGH_in,R_track.ATreq_in,R.satLOW_in,R.satHIGH_in,R.ATreq_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 62 * 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.0003748/0.01977, allocations: 271.2 kB / 411.9 MB, free: 1.199 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.986e-05/0.01983, allocations: 59.61 kB / 412 MB, free: 1.141 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000683/0.02051, allocations: 0.5338 MB / 412.5 MB, free: 0.5859 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.491e-06/0.02052, allocations: 0 / 412.5 MB, free: 0.5859 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.428e-06/0.02053, allocations: 8 kB / 412.5 MB, free: 0.5781 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.066e-05/0.02054, allocations: 3.984 kB / 412.5 MB, free: 0.5742 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003381/0.02088, allocations: 396.3 kB / 412.9 MB, free: 148 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.02088, allocations: 0 / 412.9 MB, free: 148 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002298/0.02111, allocations: 75.89 kB / 413 MB, free: 72 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.462e-06/0.02112, allocations: 7.922 kB / 413 MB, free: 64 kB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.435e-05/0.02114, allocations: 15.98 kB / 413 MB, free: 48 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.617e-06/0.02114, allocations: 4 kB / 413 MB, free: 44 kB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.754e-06/0.02115, allocations: 0 / 413 MB, free: 44 kB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007593/0.0219, allocations: 0.7494 MB / 413.8 MB, free: 15.25 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.409e-05/0.02196, allocations: 63.44 kB / 413.8 MB, free: 15.19 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.3e-05/0.022, allocations: 11.98 kB / 413.8 MB, free: 15.18 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.381e-05/0.02209, allocations: 19.98 kB / 413.9 MB, free: 15.16 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.96e-05/0.02215, allocations: 23.95 kB / 413.9 MB, free: 15.14 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.293e-05/0.02217, allocations: 12 kB / 413.9 MB, free: 15.12 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.000279/0.02245, allocations: 386.8 kB / 414.3 MB, free: 14.75 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.02245, allocations: 0 / 414.3 MB, free: 14.75 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003006/0.02275, allocations: 115.8 kB / 414.4 MB, free: 14.64 MB / 394.7 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.nextTimeEvent,TSsignal.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 28 * 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.001799/0.02455, allocations: 1.688 MB / 416.1 MB, free: 13.08 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0005471/0.02509, allocations: 0.5195 MB / 416.6 MB, free: 12.54 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.0251, allocations: 4 kB / 416.6 MB, free: 12.54 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002128/0.02531, allocations: 257.7 kB / 416.8 MB, free: 12.27 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002872/0.0256, allocations: 75.38 kB / 416.9 MB, free: 12.2 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004402/0.03, allocations: 5.041 MB / 422 MB, free: 6.895 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001806/0.03018, allocations: 276.5 kB / 422.2 MB, free: 6.602 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0001998/0.03038, allocations: 108.3 kB / 422.3 MB, free: 6.496 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001866/0.03056, allocations: 192.4 kB / 422.5 MB, free: 6.309 MB / 394.7 MB Notification: Performance of SimCode: time 1.072e-06/0.03057, allocations: 0 / 422.5 MB, free: 6.309 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02721/0.05778, allocations: 11.66 MB / 434.2 MB, free: 10.73 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.321/7.379, allocations: 15.2 kB / 434.2 MB, free: 10.72 MB / 410.7 MB " [Timeout remaining time 653] (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 --stepSize=0.048 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPD_tracking.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.312682411633432] Failed to read output from testmodel.py, exit status != 0: 7.481486980803311 7.650902521 7.640027045 Calling exit ...