Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001578/0.001578, allocations: 113.8 kB / 19.73 MB, free: 2.242 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.001901/0.001901, allocations: 219.6 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.522/1.522, allocations: 230.6 MB / 256.8 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.777/2.777, allocations: 476.7 MB / 0.7714 GB, free: 4.312 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/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_11_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler,fileNamePrefix="Buildings_11_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.002035/0.002035, allocations: 63.25 kB / 1.118 GB, free: 40.34 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3052/0.3073, allocations: 170 MB / 1.284 GB, free: 11.82 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001931/0.3092, allocations: 0.6718 MB / 1.285 GB, free: 11.15 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001437/0.3106, allocations: 1.106 MB / 1.286 GB, free: 10.04 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.231e-05/0.3107, allocations: 0 / 1.286 GB, free: 10.04 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.664e-05/0.3107, allocations: 0 / 1.286 GB, free: 10.04 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 6.764e-05/0.3108, allocations: 15.86 kB / 1.286 GB, free: 10.02 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002799/0.3111, allocations: 39.91 kB / 1.286 GB, free: 9.98 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001056/0.3112, allocations: 51.84 kB / 1.286 GB, free: 9.93 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 9.226e-05/0.3113, allocations: 7.984 kB / 1.286 GB, free: 9.922 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 6.813e-05/0.3113, allocations: 23.92 kB / 1.286 GB, free: 9.898 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 5.213e-05/0.3114, allocations: 15.92 kB / 1.286 GB, free: 9.883 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.357e-05/0.3114, allocations: 8 kB / 1.286 GB, free: 9.875 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 7.037e-05/0.3115, allocations: 19.98 kB / 1.286 GB, free: 9.855 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.118e-05/0.3115, allocations: 15.91 kB / 1.286 GB, free: 9.84 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.764e-05/0.3115, allocations: 19.94 kB / 1.286 GB, free: 9.82 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001478/0.3117, allocations: 63.3 kB / 1.286 GB, free: 9.762 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 8.486e-06/0.3117, allocations: 3.984 kB / 1.286 GB, free: 9.758 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.373e-06/0.3117, allocations: 4 kB / 1.286 GB, free: 9.754 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 7.023e-06/0.3117, allocations: 4 kB / 1.286 GB, free: 9.75 MB / 0.9825 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.0005888/0.3123, allocations: 290.1 kB / 1.286 GB, free: 9.434 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.891e-05/0.3123, allocations: 8.031 kB / 1.286 GB, free: 9.426 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.547e-05/0.3123, allocations: 4.188 kB / 1.286 GB, free: 9.422 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.358e-05/0.3124, allocations: 30.75 kB / 1.286 GB, free: 9.383 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.41e-05/0.3125, allocations: 12.89 kB / 1.286 GB, free: 9.371 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000109/0.3126, allocations: 114.5 kB / 1.287 GB, free: 9.234 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.725e-06/0.3126, allocations: 4.375 kB / 1.287 GB, free: 9.23 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.65e-05/0.3126, allocations: 4.375 kB / 1.287 GB, free: 9.227 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002125/0.3128, allocations: 69.97 kB / 1.287 GB, free: 9.152 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.216e-06/0.3128, allocations: 0 / 1.287 GB, free: 9.152 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.071e-05/0.3128, allocations: 0 / 1.287 GB, free: 9.152 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.3128, allocations: 0 / 1.287 GB, free: 9.152 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001996/0.313, allocations: 51.89 kB / 1.287 GB, free: 9.102 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004812/0.3135, allocations: 243.9 kB / 1.287 GB, free: 8.82 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001777/0.3137, allocations: 54.55 kB / 1.287 GB, free: 8.758 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000102/0.3138, allocations: 24.97 kB / 1.287 GB, free: 8.73 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.279e-05/0.3138, allocations: 4.062 kB / 1.287 GB, free: 8.727 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002335/0.314, allocations: 79.31 kB / 1.287 GB, free: 8.637 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=6): time 1.422e-06/0.314, allocations: 0 / 1.287 GB, free: 8.637 MB / 0.9825 GB Notification: Performance of matching and sorting (n=6): time 0.0004265/0.3145, allocations: 121.8 kB / 1.287 GB, free: 8.512 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.487e-05/0.3145, allocations: 51.41 kB / 1.287 GB, free: 8.449 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.365e-05/0.3146, allocations: 117.9 kB / 1.287 GB, free: 8.324 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.24e-05/0.3146, allocations: 29.7 kB / 1.287 GB, free: 8.289 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 4.91e-05/0.3147, allocations: 84.14 kB / 1.287 GB, free: 8.203 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.318e-05/0.3147, allocations: 15.89 kB / 1.287 GB, free: 8.188 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.667e-05/0.3147, allocations: 21.72 kB / 1.288 GB, free: 8.16 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.000146/0.3149, allocations: 318.8 kB / 1.288 GB, free: 7.84 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.754e-05/0.315, allocations: 23.92 kB / 1.288 GB, free: 7.816 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001216/0.3151, allocations: 55.41 kB / 1.288 GB, free: 7.75 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002196/0.3153, allocations: 83.31 kB / 1.288 GB, free: 7.656 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.3153, allocations: 7.938 kB / 1.288 GB, free: 7.648 MB / 0.9825 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002694/0.3156, allocations: 101.6 kB / 1.288 GB, free: 7.543 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.578e-05/0.3156, allocations: 4 kB / 1.288 GB, free: 7.539 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.3156, allocations: 0 / 1.288 GB, free: 7.539 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.555e-05/0.3156, allocations: 4 kB / 1.288 GB, free: 7.535 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001266/0.3158, allocations: 11.98 kB / 1.288 GB, free: 7.523 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.276e-06/0.3158, allocations: 4 kB / 1.288 GB, free: 7.52 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.535e-05/0.3158, allocations: 19.98 kB / 1.288 GB, free: 7.5 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.117e-06/0.3159, allocations: 3.938 kB / 1.288 GB, free: 7.496 MB / 0.9825 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.000131/0.316, allocations: 121.8 kB / 1.288 GB, free: 7.367 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.218e-05/0.316, allocations: 4 kB / 1.288 GB, free: 7.363 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002952/0.3163, allocations: 102 kB / 1.288 GB, free: 7.254 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.3163, allocations: 0 / 1.288 GB, free: 7.254 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.3163, allocations: 0 / 1.288 GB, free: 7.254 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.3163, allocations: 4 kB / 1.288 GB, free: 7.25 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004872/0.3168, allocations: 329.5 kB / 1.289 GB, free: 6.879 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.3168, allocations: 0 / 1.289 GB, free: 6.879 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.117e-05/0.3169, allocations: 7.984 kB / 1.289 GB, free: 6.871 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.3169, allocations: 0 / 1.289 GB, free: 6.871 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.816e-06/0.3169, allocations: 4 kB / 1.289 GB, free: 6.867 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.3169, allocations: 0 / 1.289 GB, free: 6.867 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.3169, allocations: 4.312 kB / 1.289 GB, free: 6.863 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003131/0.3172, allocations: 199.4 kB / 1.289 GB, free: 6.652 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.271e-05/0.3172, allocations: 7.953 kB / 1.289 GB, free: 6.645 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.593e-05/0.3172, allocations: 0 / 1.289 GB, free: 6.645 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.909e-05/0.3173, allocations: 7.984 kB / 1.289 GB, free: 6.637 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.507e-05/0.3174, allocations: 11.94 kB / 1.289 GB, free: 6.625 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.357e-05/0.3174, allocations: 4 kB / 1.289 GB, free: 6.621 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.204e-05/0.3174, allocations: 83.27 kB / 1.289 GB, free: 6.539 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.3174, allocations: 4 kB / 1.289 GB, free: 6.535 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002503/0.3177, allocations: 12 kB / 1.289 GB, free: 6.523 MB / 0.9825 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.0006531/0.3183, allocations: 0.7318 MB / 1.29 GB, free: 5.766 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002689/0.3186, allocations: 67.88 kB / 1.29 GB, free: 5.699 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3186, allocations: 0 / 1.29 GB, free: 5.699 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001098/0.3187, allocations: 27.97 kB / 1.29 GB, free: 5.672 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002735/0.319, allocations: 15.88 kB / 1.29 GB, free: 5.656 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00171/0.3207, allocations: 1.377 MB / 1.291 GB, free: 4.18 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003062/0.321, allocations: 0.6865 MB / 1.292 GB, free: 3.469 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.545e-05/0.321, allocations: 7.984 kB / 1.292 GB, free: 3.461 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.356e-05/0.3211, allocations: 15.44 kB / 1.292 GB, free: 3.449 MB / 0.9825 GB Notification: Performance of SimCode: time 6.01e-07/0.3211, allocations: 0 / 1.292 GB, free: 3.449 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02248/0.3436, allocations: 1.907 MB / 1.294 GB, free: 1.691 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.53/11.88, allocations: 8.297 kB / 1.294 GB, free: 1.688 MB / 0.9825 GB " [Timeout remaining time 287] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 420.0] [Calling os._exit(0), Time elapsed: 18.48331361595774] Failed to read output from testmodel.py, exit status != 0: 12.534215292020235 12.055634464 11.740567331 Calling exit ...