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.001374/0.001374, allocations: 101.3 kB / 19.73 MB, free: 2.133 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.001567/0.001567, allocations: 216.6 kB / 23.03 MB, free: 4.949 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.463/1.463, allocations: 230.6 MB / 256.8 MB, free: 7.762 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.267/3.267, allocations: 0.5003 GB / 0.8062 GB, free: 28.3 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.00207/0.00207, allocations: 61.97 kB / 1.17 GB, free: 19.59 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3448/0.3468, allocations: 179 MB / 1.345 GB, free: 0 / 1.029 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.002508/0.3493, allocations: 0.6618 MB / 1.346 GB, free: 15.33 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001741/0.3511, allocations: 1.085 MB / 1.347 GB, free: 14.23 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.44e-05/0.3511, allocations: 0 / 1.347 GB, free: 14.23 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 3.643e-05/0.3512, allocations: 3.938 kB / 1.347 GB, free: 14.23 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 7.874e-05/0.3513, allocations: 3.938 kB / 1.347 GB, free: 14.23 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004/0.3517, allocations: 47.83 kB / 1.347 GB, free: 14.18 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0001373/0.3518, allocations: 47.84 kB / 1.347 GB, free: 14.13 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001191/0.3519, allocations: 8 kB / 1.347 GB, free: 14.12 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 9.783e-05/0.352, allocations: 27.84 kB / 1.347 GB, free: 14.1 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 7.389e-05/0.3521, allocations: 23.91 kB / 1.347 GB, free: 14.07 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.612e-05/0.3521, allocations: 4 kB / 1.347 GB, free: 14.07 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 8.392e-05/0.3522, allocations: 20 kB / 1.347 GB, free: 14.05 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 3.322e-05/0.3522, allocations: 11.98 kB / 1.347 GB, free: 14.04 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 5.549e-05/0.3523, allocations: 15.92 kB / 1.347 GB, free: 14.02 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0002162/0.3525, allocations: 67.98 kB / 1.347 GB, free: 13.96 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.3525, allocations: 0 / 1.347 GB, free: 13.96 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.904e-06/0.3525, allocations: 0 / 1.347 GB, free: 13.96 MB / 1.045 GB Notification: Performance of Transformations before backend: time 6.723e-06/0.3525, allocations: 0 / 1.347 GB, free: 13.96 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.0006796/0.3532, allocations: 294.2 kB / 1.348 GB, free: 13.64 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.529e-05/0.3532, allocations: 8.031 kB / 1.348 GB, free: 13.63 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.272e-05/0.3533, allocations: 8.188 kB / 1.348 GB, free: 13.62 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.648e-05/0.3533, allocations: 30.75 kB / 1.348 GB, free: 13.58 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.146e-05/0.3534, allocations: 8.922 kB / 1.348 GB, free: 13.57 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001192/0.3535, allocations: 122.4 kB / 1.348 GB, free: 13.43 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.308e-05/0.3535, allocations: 8.312 kB / 1.348 GB, free: 13.42 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.744e-05/0.3535, allocations: 4.375 kB / 1.348 GB, free: 13.42 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002089/0.3537, allocations: 65.97 kB / 1.348 GB, free: 13.35 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.626e-06/0.3538, allocations: 0 / 1.348 GB, free: 13.35 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.074e-05/0.3538, allocations: 0 / 1.348 GB, free: 13.35 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.629e-06/0.3538, allocations: 0 / 1.348 GB, free: 13.35 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001868/0.354, allocations: 47.95 kB / 1.348 GB, free: 13.3 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004624/0.3544, allocations: 239.9 kB / 1.348 GB, free: 13.02 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001703/0.3546, allocations: 50.55 kB / 1.348 GB, free: 12.96 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.369e-05/0.3547, allocations: 24.97 kB / 1.348 GB, free: 12.94 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.344e-05/0.3547, allocations: 0 / 1.348 GB, free: 12.94 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002541/0.355, allocations: 79.38 kB / 1.348 GB, free: 12.85 MB / 1.045 GB Notification: Performance of pre-optimization done (n=6): time 1.654e-06/0.355, allocations: 0 / 1.348 GB, free: 12.85 MB / 1.045 GB Notification: Performance of matching and sorting (n=6): time 0.0004543/0.3554, allocations: 125.5 kB / 1.348 GB, free: 12.72 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.576e-05/0.3555, allocations: 55.41 kB / 1.348 GB, free: 12.65 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001117/0.3556, allocations: 110.1 kB / 1.348 GB, free: 12.54 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 1.968e-05/0.3556, allocations: 25.7 kB / 1.348 GB, free: 12.5 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 5.774e-05/0.3557, allocations: 84.14 kB / 1.349 GB, free: 12.42 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.556e-05/0.3557, allocations: 15.97 kB / 1.349 GB, free: 12.4 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.884e-05/0.3557, allocations: 29.64 kB / 1.349 GB, free: 12.37 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.000168/0.3559, allocations: 322.8 kB / 1.349 GB, free: 12.04 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001014/0.356, allocations: 23.97 kB / 1.349 GB, free: 12.02 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001536/0.3562, allocations: 47.41 kB / 1.349 GB, free: 11.96 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002104/0.3564, allocations: 79.34 kB / 1.349 GB, free: 11.87 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/0.3564, allocations: 4 kB / 1.349 GB, free: 11.87 MB / 1.045 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000285/0.3567, allocations: 109.5 kB / 1.349 GB, free: 11.75 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.492e-05/0.3567, allocations: 4 kB / 1.349 GB, free: 11.75 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.3567, allocations: 0 / 1.349 GB, free: 11.75 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.579e-05/0.3567, allocations: 4 kB / 1.349 GB, free: 11.75 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001084/0.3568, allocations: 11.98 kB / 1.349 GB, free: 11.73 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.899e-06/0.3568, allocations: 4 kB / 1.349 GB, free: 11.73 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.252e-05/0.3569, allocations: 16.02 kB / 1.349 GB, free: 11.71 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.235e-05/0.3569, allocations: 4 kB / 1.349 GB, free: 11.71 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.0001109/0.357, allocations: 121.8 kB / 1.349 GB, free: 11.58 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.689e-05/0.357, allocations: 11.88 kB / 1.349 GB, free: 11.57 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002881/0.3573, allocations: 102 kB / 1.349 GB, free: 11.46 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.3573, allocations: 0 / 1.349 GB, free: 11.46 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.101e-06/0.3573, allocations: 3.984 kB / 1.349 GB, free: 11.46 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.3573, allocations: 0 / 1.349 GB, free: 11.46 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004827/0.3578, allocations: 321.5 kB / 1.35 GB, free: 11.1 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.3578, allocations: 0 / 1.35 GB, free: 11.1 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.303e-05/0.3579, allocations: 11.98 kB / 1.35 GB, free: 11.09 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.3579, allocations: 3.938 kB / 1.35 GB, free: 11.08 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.063e-05/0.3579, allocations: 4 kB / 1.35 GB, free: 11.08 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.3579, allocations: 0 / 1.35 GB, free: 11.08 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.152e-06/0.3579, allocations: 3.938 kB / 1.35 GB, free: 11.07 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003073/0.3582, allocations: 199.8 kB / 1.35 GB, free: 10.86 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.594e-05/0.3582, allocations: 11.95 kB / 1.35 GB, free: 10.85 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.605e-05/0.3582, allocations: 0 / 1.35 GB, free: 10.85 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.712e-05/0.3583, allocations: 7.984 kB / 1.35 GB, free: 10.84 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.167e-05/0.3584, allocations: 11.92 kB / 1.35 GB, free: 10.83 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.229e-05/0.3584, allocations: 0 / 1.35 GB, free: 10.83 MB / 1.045 GB Notification: Performance of sorting global known variables: time 4.868e-05/0.3584, allocations: 83.28 kB / 1.35 GB, free: 10.75 MB / 1.045 GB Notification: Performance of sort global known variables: time 1e-07/0.3584, allocations: 0 / 1.35 GB, free: 10.75 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002521/0.3587, allocations: 12 kB / 1.35 GB, free: 10.74 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.0006552/0.3593, allocations: 0.7396 MB / 1.351 GB, free: 9.973 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0002615/0.3596, allocations: 59.89 kB / 1.351 GB, free: 9.914 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.3596, allocations: 0 / 1.351 GB, free: 9.914 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001122/0.3597, allocations: 35.91 kB / 1.351 GB, free: 9.879 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002698/0.36, allocations: 10 kB / 1.351 GB, free: 9.871 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001662/0.3616, allocations: 1.379 MB / 1.352 GB, free: 8.391 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.288e-05/0.3617, allocations: 63.34 kB / 1.352 GB, free: 8.309 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 3.219e-05/0.3617, allocations: 7.75 kB / 1.352 GB, free: 8.301 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.772e-05/0.3618, allocations: 23.42 kB / 1.352 GB, free: 8.277 MB / 1.045 GB Notification: Performance of SimCode: time 6.61e-07/0.3618, allocations: 0 / 1.352 GB, free: 8.277 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02218/0.384, allocations: 1.961 MB / 1.354 GB, free: 6.465 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.52/11.91, allocations: 7.312 kB / 1.354 GB, free: 6.461 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.654580828966573] Failed to read output from testmodel.py, exit status != 0: 12.067109890980646 12.082674645 11.727086744 Calling exit ...