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.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.0009481/0.0009481, 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.0009134/0.0009134, allocations: 170.3 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.9364/0.9364, allocations: 177.2 MB / 202.8 MB, free: 5.746 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.035/0.035, allocations: 8.606 MB / 267.8 MB, free: 5.133 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.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.342e-06/1.342e-06, allocations: 0 / 395.1 MB, free: 2.668 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.156e-05/1.29e-05, allocations: 6.219 kB / 395.1 MB, free: 2.66 MB / 362.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestD_tracking): time 0.002854/0.002867, allocations: 2.333 MB / 397.4 MB, free: 320 kB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.002017/0.004884, allocations: 1.609 MB / 399 MB, free: 14.7 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001952/0.005079, allocations: 23.75 kB / 399 MB, free: 14.67 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005617/0.005641, allocations: 226.8 kB / 399.3 MB, free: 14.45 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003597/0.006, allocations: 214.9 kB / 399.5 MB, free: 14.24 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007749/0.006775, allocations: 450.1 kB / 399.9 MB, free: 13.8 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005298/0.007305, allocations: 0.5943 MB / 400.5 MB, free: 13.2 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001381/0.007443, allocations: 65.23 kB / 400.6 MB, free: 13.13 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002601/0.007703, allocations: 291.2 kB / 400.9 MB, free: 12.85 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002215/0.007925, allocations: 223.4 kB / 401.1 MB, free: 12.63 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.376e-05/0.007968, allocations: 36 kB / 401.1 MB, free: 12.59 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002116/0.00818, allocations: 151.8 kB / 401.3 MB, free: 12.45 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001104/0.008291, allocations: 151.4 kB / 401.4 MB, free: 12.3 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001072/0.008398, allocations: 135.5 kB / 401.5 MB, free: 12.16 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000527/0.008925, allocations: 0.5996 MB / 402.1 MB, free: 11.56 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.008928, allocations: 4 kB / 402.1 MB, free: 11.56 MB / 378.7 MB Notification: Performance of FrontEnd: time 9.92e-07/0.008929, allocations: 0 / 402.1 MB, free: 11.56 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.953e-06/0.008936, allocations: 4 kB / 402.1 MB, free: 11.55 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.001254/0.01019, allocations: 0.8515 MB / 403 MB, free: 10.66 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.712e-05/0.01023, allocations: 12.03 kB / 403 MB, free: 10.65 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.639e-05/0.01028, allocations: 74.72 kB / 403.1 MB, free: 10.57 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.451e-05/0.01037, allocations: 60.56 kB / 403.1 MB, free: 10.51 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004694/0.01084, allocations: 410 kB / 403.5 MB, free: 10.08 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.523e-05/0.01086, allocations: 25.38 kB / 403.6 MB, free: 10.06 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.585e-05/0.01091, allocations: 40.38 kB / 403.6 MB, free: 10.02 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005131/0.01142, allocations: 0.4974 MB / 404.1 MB, free: 9.477 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.418e-05/0.01145, allocations: 15.89 kB / 404.1 MB, free: 9.461 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.538e-05/0.01147, allocations: 12 kB / 404.1 MB, free: 9.449 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.919e-06/0.01148, allocations: 8 kB / 404.1 MB, free: 9.441 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004031/0.01188, allocations: 364 kB / 404.5 MB, free: 9.082 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00171/0.01359, allocations: 1.815 MB / 406.3 MB, free: 7.184 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003441/0.01394, allocations: 252.6 kB / 406.6 MB, free: 6.922 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001711/0.01411, allocations: 166.7 kB / 406.7 MB, free: 6.75 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.358e-05/0.01414, allocations: 4.234 kB / 406.7 MB, free: 6.746 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003192/0.01446, allocations: 285.7 kB / 407 MB, free: 6.445 MB / 378.7 MB Notification: Performance of pre-optimization done (n=33): time 1.503e-06/0.01446, allocations: 0 / 407 MB, free: 6.445 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.0007339/0.0152, allocations: 0.6215 MB / 407.6 MB, free: 5.801 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.967e-05/0.01525, allocations: 85.09 kB / 407.7 MB, free: 5.699 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004279/0.01568, allocations: 0.5573 MB / 408.3 MB, free: 5.129 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.211e-05/0.0157, allocations: 33.7 kB / 408.3 MB, free: 5.09 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001562/0.01585, allocations: 292.3 kB / 408.6 MB, free: 4.801 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.922e-05/0.01592, allocations: 123 kB / 408.7 MB, free: 4.68 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.802e-05/0.01602, allocations: 102.2 kB / 408.8 MB, free: 4.57 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001308/0.01615, allocations: 374.7 kB / 409.2 MB, free: 4.195 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001976/0.01635, allocations: 178.8 kB / 409.3 MB, free: 4.016 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000281/0.01663, allocations: 368.9 kB / 409.7 MB, free: 3.566 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001549/0.01818, allocations: 0.9569 MB / 410.7 MB, free: 2.516 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.01818, allocations: 0 / 410.7 MB, free: 2.516 MB / 378.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0006673/0.01885, allocations: 0.6885 MB / 411.4 MB, free: 1.809 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.151e-05/0.01888, allocations: 46.28 kB / 411.4 MB, free: 1.758 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/0.01889, allocations: 8 kB / 411.4 MB, free: 1.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.495e-05/0.0189, allocations: 8 kB / 411.4 MB, free: 1.742 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002458/0.01915, allocations: 115.8 kB / 411.5 MB, free: 1.629 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.01e-05/0.01916, allocations: 7.938 kB / 411.5 MB, free: 1.621 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001503/0.01931, allocations: 67.59 kB / 411.6 MB, free: 1.555 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.315e-05/0.01933, allocations: 20 kB / 411.6 MB, free: 1.535 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.0002532/0.01959, allocations: 275.2 kB / 411.9 MB, free: 1.254 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.964e-05/0.01964, allocations: 59.61 kB / 411.9 MB, free: 1.195 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005672/0.0202, allocations: 0.53 MB / 412.5 MB, free: 0.6445 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.02021, allocations: 0 / 412.5 MB, free: 0.6445 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.02021, allocations: 4 kB / 412.5 MB, free: 0.6406 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.022e-06/0.02022, allocations: 3.984 kB / 412.5 MB, free: 0.6367 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003032/0.02052, allocations: 396.3 kB / 412.9 MB, free: 212 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.02052, allocations: 0 / 412.9 MB, free: 212 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000218/0.02074, allocations: 79.77 kB / 412.9 MB, free: 132 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.02074, allocations: 0 / 412.9 MB, free: 132 kB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.388e-05/0.02077, allocations: 15.98 kB / 413 MB, free: 116 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.505e-06/0.02077, allocations: 4 kB / 413 MB, free: 112 kB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/0.02077, allocations: 4 kB / 413 MB, free: 108 kB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007196/0.02149, allocations: 0.7454 MB / 413.7 MB, free: 15.32 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.722e-05/0.02155, allocations: 67.53 kB / 413.8 MB, free: 15.26 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.244e-05/0.02159, allocations: 8 kB / 413.8 MB, free: 15.25 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.157e-05/0.02167, allocations: 19.97 kB / 413.8 MB, free: 15.23 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.169e-05/0.02173, allocations: 23.97 kB / 413.8 MB, free: 15.21 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.203e-05/0.02176, allocations: 15.98 kB / 413.8 MB, free: 15.19 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002908/0.02205, allocations: 382.8 kB / 414.2 MB, free: 14.82 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.02205, allocations: 4 kB / 414.2 MB, free: 14.82 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003226/0.02237, allocations: 119.8 kB / 414.3 MB, free: 14.7 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.001563/0.02393, allocations: 1.679 MB / 416 MB, free: 13.15 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0005171/0.02445, allocations: 0.5265 MB / 416.5 MB, free: 12.6 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.482e-06/0.02445, allocations: 0 / 416.5 MB, free: 12.6 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002014/0.02465, allocations: 257.7 kB / 416.8 MB, free: 12.33 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002618/0.02491, allocations: 80.12 kB / 416.9 MB, free: 12.26 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004373/0.02929, allocations: 5.003 MB / 421.9 MB, free: 6.988 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001785/0.02947, allocations: 284.5 kB / 422.2 MB, free: 6.688 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0001585/0.02962, allocations: 100.3 kB / 422.3 MB, free: 6.59 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000167/0.02979, allocations: 184.4 kB / 422.4 MB, free: 6.41 MB / 394.7 MB Notification: Performance of SimCode: time 5.41e-07/0.02979, allocations: 0 / 422.4 MB, free: 6.41 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02475/0.05454, allocations: 11.62 MB / 434.1 MB, free: 10.88 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.295/7.35, allocations: 3.125 kB / 434.1 MB, free: 10.88 MB / 410.7 MB " [Timeout remaining time 653] (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 --stepSize=0.048 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestD_tracking.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.372170749120414] Failed to read output from testmodel.py, exit status != 0: 7.457567865028977 7.629447226 7.618451754 Calling exit ...