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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001602/0.001602, allocations: 105.8 kB / 16.45 MB, free: 6.445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001755/0.001755, allocations: 187.7 kB / 19.4 MB, free: 3.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.5/1.5, allocations: 225.6 MB / 247.8 MB, free: 3.73 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.06641/0.06641, allocations: 11.33 MB / 314 MB, free: 0.8008 MB / 238.1 MB " [Timeout remaining time 180] Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002046/0.002046, allocations: 59.89 kB / 437.3 MB, free: 8.242 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2698/0.2719, allocations: 54.84 MB / 492.2 MB, free: 23.72 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestPD_tracking): time 0.003592/0.2755, allocations: 2.445 MB / 494.6 MB, free: 21.99 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00272/0.2782, allocations: 1.558 MB / 496.2 MB, free: 20.93 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002844/0.2785, allocations: 16.12 kB / 496.2 MB, free: 20.92 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007413/0.2792, allocations: 220.6 kB / 496.4 MB, free: 20.84 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003944/0.2796, allocations: 167.6 kB / 496.6 MB, free: 20.76 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001138/0.2807, allocations: 459.5 kB / 497 MB, free: 20.53 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007237/0.2815, allocations: 0.6197 MB / 497.6 MB, free: 20.27 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001659/0.2816, allocations: 55.06 kB / 497.7 MB, free: 20.23 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002947/0.2819, allocations: 237.7 kB / 497.9 MB, free: 20.13 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003504/0.2823, allocations: 265.8 kB / 498.2 MB, free: 20.03 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.902e-05/0.2823, allocations: 34.22 kB / 498.2 MB, free: 20.03 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002988/0.2826, allocations: 160.2 kB / 498.4 MB, free: 19.99 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001531/0.2828, allocations: 155.8 kB / 498.5 MB, free: 19.91 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001683/0.283, allocations: 229.4 kB / 498.7 MB, free: 19.73 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006431/0.2836, allocations: 0.5773 MB / 499.3 MB, free: 19.32 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.2836, allocations: 5.094 kB / 499.3 MB, free: 19.32 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2836, allocations: 0 / 499.3 MB, free: 19.32 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.937e-06/0.2836, allocations: 0 / 499.3 MB, free: 19.32 MB / 366.1 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.001339/0.285, allocations: 0.9323 MB / 0.4885 GB, free: 18.51 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.777e-05/0.285, allocations: 14.61 kB / 0.4885 GB, free: 18.51 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.017e-05/0.2851, allocations: 79.75 kB / 0.4886 GB, free: 18.43 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001125/0.2852, allocations: 69.33 kB / 0.4887 GB, free: 18.39 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006044/0.2858, allocations: 475.8 kB / 0.4891 GB, free: 18 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.972e-05/0.2858, allocations: 28.72 kB / 0.4892 GB, free: 17.99 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.482e-05/0.2859, allocations: 43.98 kB / 0.4892 GB, free: 17.97 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006303/0.2865, allocations: 481.4 kB / 0.4897 GB, free: 17.64 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.564e-05/0.2865, allocations: 6.172 kB / 0.4897 GB, free: 17.64 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.381e-05/0.2866, allocations: 12.31 kB / 0.4897 GB, free: 17.63 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.12e-05/0.2866, allocations: 9.844 kB / 0.4897 GB, free: 17.63 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005327/0.2871, allocations: 323.9 kB / 0.49 GB, free: 17.48 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002171/0.2893, allocations: 1.928 MB / 0.4919 GB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004049/0.2897, allocations: 238.5 kB / 0.4921 GB, free: 15.74 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002136/0.2899, allocations: 130.2 kB / 0.4922 GB, free: 15.68 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.382e-05/0.2899, allocations: 6.938 kB / 0.4922 GB, free: 15.67 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003506/0.2903, allocations: 240.9 kB / 0.4925 GB, free: 15.5 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 1.933e-06/0.2903, allocations: 1.188 kB / 0.4925 GB, free: 15.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.0009396/0.2912, allocations: 0.55 MB / 0.493 GB, free: 15.23 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.748e-05/0.2913, allocations: 111 kB / 0.4931 GB, free: 15.1 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005396/0.2918, allocations: 0.5501 MB / 0.4937 GB, free: 14.77 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.691e-05/0.2918, allocations: 31.92 kB / 0.4937 GB, free: 14.73 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001421/0.292, allocations: 280.6 kB / 0.494 GB, free: 14.49 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.495e-05/0.292, allocations: 126.9 kB / 0.4941 GB, free: 14.38 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001221/0.2922, allocations: 99.08 kB / 0.4942 GB, free: 14.32 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.798e-05/0.2922, allocations: 378.7 kB / 0.4945 GB, free: 13.96 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002377/0.2925, allocations: 143.2 kB / 0.4947 GB, free: 13.89 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002923/0.2928, allocations: 326.6 kB / 0.495 GB, free: 13.6 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001647/0.2944, allocations: 0.9234 MB / 0.4959 GB, free: 12.95 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/0.2944, allocations: 6.531 kB / 0.4959 GB, free: 12.94 MB / 366.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0009262/0.2954, allocations: 0.6503 MB / 0.4965 GB, free: 12.6 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.708e-05/0.2954, allocations: 39.89 kB / 0.4966 GB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.051e-05/0.2954, allocations: 4.688 kB / 0.4966 GB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.343e-05/0.2954, allocations: 12.22 kB / 0.4966 GB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004457/0.2959, allocations: 110.8 kB / 0.4967 GB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.317e-05/0.2959, allocations: 11.83 kB / 0.4967 GB, free: 12.53 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002791/0.2962, allocations: 65.45 kB / 0.4968 GB, free: 12.49 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.734e-05/0.2962, allocations: 22.75 kB / 0.4968 GB, free: 12.48 MB / 366.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: 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.0003169/0.2965, allocations: 266.8 kB / 0.497 GB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.946e-05/0.2966, allocations: 56.91 kB / 0.4971 GB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007891/0.2974, allocations: 0.4892 MB / 0.4976 GB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.112e-06/0.2974, allocations: 3.312 kB / 0.4976 GB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.092e-06/0.2974, allocations: 1.094 kB / 0.4976 GB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.431e-06/0.2974, allocations: 0 / 0.4976 GB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004287/0.2978, allocations: 471.8 kB / 0.498 GB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.2978, allocations: 5.094 kB / 0.498 GB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003918/0.2982, allocations: 69.8 kB / 0.4981 GB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.797e-06/0.2982, allocations: 1.219 kB / 0.4981 GB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.872e-05/0.2983, allocations: 18.7 kB / 0.4981 GB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.507e-06/0.2983, allocations: 2.25 kB / 0.4981 GB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.2983, allocations: 0 / 0.4981 GB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009676/0.2992, allocations: 0.6675 MB / 0.4988 GB, free: 11.17 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.844e-05/0.2993, allocations: 133.2 kB / 0.4989 GB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.037e-05/0.2994, allocations: 14.86 kB / 0.4989 GB, free: 11.03 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001729/0.2996, allocations: 20.17 kB / 0.4989 GB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.656e-05/0.2997, allocations: 25.53 kB / 0.4989 GB, free: 11 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.13e-05/0.2997, allocations: 13.62 kB / 0.499 GB, free: 11 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003928/0.3001, allocations: 379.2 kB / 0.4993 GB, free: 10.79 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3001, allocations: 0 / 0.4993 GB, free: 10.79 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004944/0.3006, allocations: 123.7 kB / 0.4994 GB, free: 10.75 MB / 366.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.002574/0.3032, allocations: 1.562 MB / 0.501 GB, free: 9.742 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008365/0.304, allocations: 465.2 kB / 0.5014 GB, free: 9.504 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/0.304, allocations: 1.719 kB / 0.5014 GB, free: 9.504 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002826/0.3043, allocations: 223.7 kB / 0.5016 GB, free: 9.367 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004776/0.3048, allocations: 80.84 kB / 0.5017 GB, free: 9.32 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005679/0.3105, allocations: 4.882 MB / 0.5065 GB, free: 5.703 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002611/0.3107, allocations: 0.8781 MB / 0.5073 GB, free: 4.801 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002632/0.311, allocations: 96.31 kB / 0.5074 GB, free: 4.707 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000195/0.3112, allocations: 191.4 kB / 0.5076 GB, free: 4.52 MB / 366.1 MB Notification: Performance of SimCode: time 1.092e-06/0.3112, allocations: 0 / 0.5076 GB, free: 4.52 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05316/0.3643, allocations: 10.75 MB / 0.5181 GB, free: 9.883 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.323/9.688, allocations: 8.453 kB / 0.5181 GB, free: 9.879 MB / 382.1 MB " [Timeout remaining time 650] (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: 12.304637105204165] Failed to read output from testmodel.py, exit status != 0: 9.81512556783855 9.839626275 9.551248367 Calling exit ...