Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.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.001765/0.001765, allocations: 101.5 kB / 19.73 MB, free: 2.23 MB / 14.72 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.002214/0.002214, allocations: 218.4 kB / 23.04 MB, free: 5.074 MB / 14.72 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 1.5/1.5, allocations: 230.6 MB / 256.8 MB, free: 7.977 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.21/3.21, allocations: 0.5003 GB / 0.8061 GB, free: 26.76 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002718/0.002718, allocations: 65.86 kB / 1.171 GB, free: 19.89 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3757/0.3784, allocations: 179 MB / 1.345 GB, free: 480 kB / 1.029 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.002006/0.3804, allocations: 0.6814 MB / 1.346 GB, free: 15.79 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001538/0.382, allocations: 1.101 MB / 1.347 GB, free: 14.67 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.345e-05/0.382, allocations: 3.938 kB / 1.347 GB, free: 14.67 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 2.339e-05/0.382, allocations: 0 / 1.347 GB, free: 14.67 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 6.159e-05/0.3821, allocations: 11.91 kB / 1.347 GB, free: 14.66 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002828/0.3824, allocations: 43.84 kB / 1.347 GB, free: 14.61 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.000113/0.3825, allocations: 51.84 kB / 1.347 GB, free: 14.56 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 8.951e-05/0.3826, allocations: 15.97 kB / 1.347 GB, free: 14.55 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 6.708e-05/0.3827, allocations: 19.92 kB / 1.347 GB, free: 14.53 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 5.484e-05/0.3827, allocations: 19.92 kB / 1.347 GB, free: 14.51 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.48e-05/0.3827, allocations: 4 kB / 1.347 GB, free: 14.5 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 7.221e-05/0.3828, allocations: 19.98 kB / 1.347 GB, free: 14.48 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 2.455e-05/0.3828, allocations: 15.97 kB / 1.347 GB, free: 14.47 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 3.451e-05/0.3829, allocations: 19.88 kB / 1.347 GB, free: 14.45 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0001442/0.383, allocations: 60.06 kB / 1.347 GB, free: 14.39 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.383, allocations: 0 / 1.347 GB, free: 14.39 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.844e-06/0.383, allocations: 0 / 1.347 GB, free: 14.39 MB / 1.045 GB Notification: Performance of Transformations before backend: time 6.312e-06/0.383, allocations: 4 kB / 1.347 GB, free: 14.39 MB / 1.045 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0006308/0.3836, allocations: 294.1 kB / 1.348 GB, free: 14.07 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.741e-05/0.3837, allocations: 11.97 kB / 1.348 GB, free: 14.05 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.684e-05/0.3837, allocations: 4.125 kB / 1.348 GB, free: 14.05 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.958e-05/0.3837, allocations: 38.75 kB / 1.348 GB, free: 14 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000106/0.3839, allocations: 4.938 kB / 1.348 GB, free: 14 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001242/0.384, allocations: 110.4 kB / 1.348 GB, free: 13.87 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.85e-05/0.384, allocations: 12.36 kB / 1.348 GB, free: 13.86 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.632e-05/0.384, allocations: 4.375 kB / 1.348 GB, free: 13.85 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002228/0.3842, allocations: 61.98 kB / 1.348 GB, free: 13.79 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.086e-05/0.3842, allocations: 0 / 1.348 GB, free: 13.79 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.7e-05/0.3843, allocations: 4 kB / 1.348 GB, free: 13.78 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/0.3843, allocations: 0 / 1.348 GB, free: 13.78 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002023/0.3845, allocations: 43.89 kB / 1.348 GB, free: 13.74 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005365/0.385, allocations: 251.9 kB / 1.348 GB, free: 13.45 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001895/0.3852, allocations: 50.55 kB / 1.348 GB, free: 13.39 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000106/0.3853, allocations: 32.91 kB / 1.348 GB, free: 13.36 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.427e-05/0.3853, allocations: 0 / 1.348 GB, free: 13.36 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002478/0.3856, allocations: 83.31 kB / 1.348 GB, free: 13.26 MB / 1.045 GB Notification: Performance of pre-optimization done (n=6): time 1.232e-06/0.3856, allocations: 0 / 1.348 GB, free: 13.26 MB / 1.045 GB Notification: Performance of matching and sorting (n=6): time 0.0004716/0.386, allocations: 125.6 kB / 1.348 GB, free: 13.13 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.7e-05/0.3861, allocations: 51.41 kB / 1.348 GB, free: 13.07 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.514e-05/0.3862, allocations: 105.8 kB / 1.349 GB, free: 12.96 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.11e-05/0.3862, allocations: 29.7 kB / 1.349 GB, free: 12.92 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 5.368e-05/0.3863, allocations: 84.14 kB / 1.349 GB, free: 12.84 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.291e-05/0.3863, allocations: 11.91 kB / 1.349 GB, free: 12.82 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.254e-05/0.3863, allocations: 25.7 kB / 1.349 GB, free: 12.79 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001496/0.3865, allocations: 318.8 kB / 1.349 GB, free: 12.47 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001062/0.3866, allocations: 23.97 kB / 1.349 GB, free: 12.45 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001239/0.3867, allocations: 55.34 kB / 1.349 GB, free: 12.38 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002145/0.3869, allocations: 79.34 kB / 1.349 GB, free: 12.29 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.3869, allocations: 0 / 1.349 GB, free: 12.29 MB / 1.045 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002815/0.3872, allocations: 109.5 kB / 1.349 GB, free: 12.18 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.57e-05/0.3872, allocations: 4 kB / 1.349 GB, free: 12.18 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.3872, allocations: 0 / 1.349 GB, free: 12.18 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.637e-05/0.3873, allocations: 4 kB / 1.349 GB, free: 12.17 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000107/0.3874, allocations: 11.98 kB / 1.349 GB, free: 12.16 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.212e-06/0.3874, allocations: 0 / 1.349 GB, free: 12.16 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.24e-05/0.3875, allocations: 19.86 kB / 1.349 GB, free: 12.14 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.488e-06/0.3875, allocations: 4.094 kB / 1.349 GB, free: 12.14 MB / 1.045 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 (sampler1.firstTrigger,$PRE.sampler1.firstTrigger,sampler1.sampleTrigger,$whenCondition1,sampler1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * 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.0001022/0.3876, allocations: 125.7 kB / 1.349 GB, free: 12 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.852e-05/0.3876, allocations: 7.984 kB / 1.349 GB, free: 12 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002949/0.3879, allocations: 106 kB / 1.35 GB, free: 11.89 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/0.3879, allocations: 0 / 1.35 GB, free: 11.89 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.3879, allocations: 0 / 1.35 GB, free: 11.89 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.3879, allocations: 48 / 1.35 GB, free: 11.89 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004775/0.3884, allocations: 330.1 kB / 1.35 GB, free: 11.52 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.3884, allocations: 4 kB / 1.35 GB, free: 11.51 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.501e-05/0.3884, allocations: 12.06 kB / 1.35 GB, free: 11.5 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.3884, allocations: 0 / 1.35 GB, free: 11.5 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.467e-06/0.3884, allocations: 0 / 1.35 GB, free: 11.5 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.576e-06/0.3884, allocations: 7.984 kB / 1.35 GB, free: 11.49 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.3885, allocations: 3.938 kB / 1.35 GB, free: 11.49 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003182/0.3888, allocations: 191.5 kB / 1.35 GB, free: 11.29 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.243e-05/0.3888, allocations: 7.953 kB / 1.35 GB, free: 11.28 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.882e-05/0.3888, allocations: 3.984 kB / 1.35 GB, free: 11.27 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.708e-05/0.3889, allocations: 4 kB / 1.35 GB, free: 11.27 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.946e-05/0.3889, allocations: 11.92 kB / 1.35 GB, free: 11.26 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.373e-05/0.389, allocations: 3.938 kB / 1.35 GB, free: 11.25 MB / 1.045 GB Notification: Performance of sorting global known variables: time 6.243e-05/0.389, allocations: 91.27 kB / 1.35 GB, free: 11.16 MB / 1.045 GB Notification: Performance of sort global known variables: time 8e-08/0.389, allocations: 0 / 1.35 GB, free: 11.16 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002564/0.3893, allocations: 12 kB / 1.35 GB, free: 11.15 MB / 1.045 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (sampler1.sampleTrigger,$whenCondition1,sampler1.y,sampler1.firstTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * 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.0007193/0.39, allocations: 0.7319 MB / 1.351 GB, free: 10.39 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0002784/0.3903, allocations: 59.95 kB / 1.351 GB, free: 10.34 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.3903, allocations: 3.938 kB / 1.351 GB, free: 10.33 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001223/0.3904, allocations: 35.97 kB / 1.351 GB, free: 10.3 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002954/0.3907, allocations: 8.969 kB / 1.351 GB, free: 10.29 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001722/0.3924, allocations: 1.374 MB / 1.352 GB, free: 8.816 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003164/0.3927, allocations: 0.6864 MB / 1.353 GB, free: 8.105 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 3.712e-05/0.3928, allocations: 7.75 kB / 1.353 GB, free: 8.098 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.688e-05/0.3928, allocations: 15.42 kB / 1.353 GB, free: 8.082 MB / 1.045 GB Notification: Performance of SimCode: time 9.01e-07/0.3928, allocations: 3.938 kB / 1.353 GB, free: 8.078 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02186/0.4147, allocations: 1.924 MB / 1.355 GB, free: 6.301 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.48/11.89, allocations: 7.594 kB / 1.355 GB, free: 6.297 MB / 1.045 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 840.0] [Calling os._exit(0), Time elapsed: 18.566011028015055] Failed to read output from testmodel.py, exit status != 0: 12.054641843016725 12.070591699 11.684280711 Calling exit ...