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.001462/0.001462, allocations: 117.1 kB / 17.16 MB, free: 5.895 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.001878/0.001878, allocations: 215 kB / 20.13 MB, free: 2.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.536/1.536, allocations: 230.6 MB / 253.5 MB, free: 15.12 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 2.996/2.996, allocations: 0.5003 GB / 0.8026 GB, free: 6.891 MB / 0.6387 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.002021/0.002021, allocations: 71.91 kB / 1.165 GB, free: 0.5391 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9282/0.9303, allocations: 179 MB / 1.34 GB, free: 16.29 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001878/0.9321, allocations: 0.6651 MB / 1.341 GB, free: 15.86 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001286/0.9334, allocations: 1.097 MB / 1.342 GB, free: 15.05 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.829e-05/0.9335, allocations: 1.188 kB / 1.342 GB, free: 15.05 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 3.239e-05/0.9335, allocations: 4.594 kB / 1.342 GB, free: 15.05 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 6.894e-05/0.9336, allocations: 5.75 kB / 1.342 GB, free: 15.05 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002693/0.9338, allocations: 47.16 kB / 1.342 GB, free: 15.02 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 9.855e-05/0.9339, allocations: 45.69 kB / 1.342 GB, free: 15 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 8.978e-05/0.934, allocations: 13.69 kB / 1.342 GB, free: 14.99 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 6.41e-05/0.9341, allocations: 17.91 kB / 1.342 GB, free: 14.98 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 5.412e-05/0.9342, allocations: 28.25 kB / 1.342 GB, free: 14.97 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.591e-05/0.9342, allocations: 8.469 kB / 1.342 GB, free: 14.96 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 7.241e-05/0.9342, allocations: 24.59 kB / 1.342 GB, free: 14.96 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 2.204e-05/0.9343, allocations: 12.73 kB / 1.342 GB, free: 14.95 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 3.99e-05/0.9343, allocations: 19.16 kB / 1.342 GB, free: 14.94 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.00014/0.9344, allocations: 61.81 kB / 1.342 GB, free: 14.91 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.9344, allocations: 0 / 1.342 GB, free: 14.91 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.022e-06/0.9344, allocations: 1.125 kB / 1.342 GB, free: 14.91 MB / 1.061 GB Notification: Performance of Transformations before backend: time 9.918e-06/0.9345, allocations: 3.938 kB / 1.342 GB, free: 14.91 MB / 1.061 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.0005916/0.9351, allocations: 374.4 kB / 1.342 GB, free: 14.53 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.111e-05/0.9351, allocations: 9.875 kB / 1.342 GB, free: 14.53 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.384e-05/0.9351, allocations: 2.125 kB / 1.343 GB, free: 14.53 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.183e-05/0.9351, allocations: 31.55 kB / 1.343 GB, free: 14.49 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.551e-05/0.9352, allocations: 9.266 kB / 1.343 GB, free: 14.49 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.987e-05/0.9353, allocations: 168.4 kB / 1.343 GB, free: 14.29 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.291e-05/0.9353, allocations: 2.234 kB / 1.343 GB, free: 14.29 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.754e-05/0.9353, allocations: 7.125 kB / 1.343 GB, free: 14.29 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001955/0.9355, allocations: 70.05 kB / 1.343 GB, free: 14.24 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.245e-06/0.9355, allocations: 0 / 1.343 GB, free: 14.24 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.069e-05/0.9355, allocations: 1.125 kB / 1.343 GB, free: 14.24 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.9355, allocations: 1.062 kB / 1.343 GB, free: 14.24 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001918/0.9357, allocations: 47.17 kB / 1.343 GB, free: 14.23 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003499/0.9361, allocations: 275.9 kB / 1.343 GB, free: 13.94 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001631/0.9362, allocations: 55.2 kB / 1.343 GB, free: 13.91 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001003/0.9363, allocations: 27.69 kB / 1.343 GB, free: 13.89 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.332e-05/0.9364, allocations: 2.516 kB / 1.343 GB, free: 13.89 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001821/0.9366, allocations: 79.48 kB / 1.343 GB, free: 13.83 MB / 1.061 GB Notification: Performance of pre-optimization done (n=6): time 1.322e-06/0.9366, allocations: 0 / 1.343 GB, free: 13.83 MB / 1.061 GB Notification: Performance of matching and sorting (n=6): time 0.0004078/0.937, allocations: 122.5 kB / 1.343 GB, free: 13.78 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.76e-05/0.937, allocations: 55.39 kB / 1.343 GB, free: 13.71 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.908e-05/0.937, allocations: 105.2 kB / 1.344 GB, free: 13.61 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.081e-05/0.9371, allocations: 31.42 kB / 1.344 GB, free: 13.57 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 2.652e-05/0.9371, allocations: 86.17 kB / 1.344 GB, free: 13.49 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.825e-05/0.9371, allocations: 19.97 kB / 1.344 GB, free: 13.47 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.869e-05/0.9371, allocations: 21.78 kB / 1.344 GB, free: 13.45 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 4.153e-05/0.9372, allocations: 317.8 kB / 1.344 GB, free: 13.14 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001017/0.9373, allocations: 23.73 kB / 1.344 GB, free: 13.13 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001044/0.9374, allocations: 51.16 kB / 1.344 GB, free: 13.09 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001938/0.9376, allocations: 84.36 kB / 1.344 GB, free: 13.04 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.674e-06/0.9376, allocations: 0 / 1.344 GB, free: 13.04 MB / 1.061 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002462/0.9378, allocations: 106.6 kB / 1.344 GB, free: 12.98 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.19e-05/0.9378, allocations: 5.344 kB / 1.344 GB, free: 12.98 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.9378, allocations: 5.75 kB / 1.344 GB, free: 12.98 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.593e-05/0.9379, allocations: 6.234 kB / 1.344 GB, free: 12.98 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001036/0.938, allocations: 16.44 kB / 1.344 GB, free: 12.97 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.901e-06/0.938, allocations: 2.469 kB / 1.344 GB, free: 12.97 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.615e-05/0.938, allocations: 12.25 kB / 1.344 GB, free: 12.97 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.817e-06/0.938, allocations: 2.281 kB / 1.344 GB, free: 12.97 MB / 1.061 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 5.84e-05/0.9381, allocations: 123 kB / 1.344 GB, free: 12.84 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.246e-05/0.9381, allocations: 1.594 kB / 1.344 GB, free: 12.84 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003005/0.9384, allocations: 109.9 kB / 1.344 GB, free: 12.79 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.9384, allocations: 0 / 1.344 GB, free: 12.79 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.588e-06/0.9384, allocations: 1.375 kB / 1.344 GB, free: 12.79 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.908e-06/0.9384, allocations: 1.5 kB / 1.344 GB, free: 12.79 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003731/0.9388, allocations: 351.4 kB / 1.345 GB, free: 12.46 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.9388, allocations: 4 kB / 1.345 GB, free: 12.46 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.204e-05/0.9389, allocations: 14.34 kB / 1.345 GB, free: 12.45 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.9389, allocations: 0 / 1.345 GB, free: 12.45 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.054e-05/0.9389, allocations: 1.375 kB / 1.345 GB, free: 12.45 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.9389, allocations: 0.6094 kB / 1.345 GB, free: 12.45 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.654e-06/0.9389, allocations: 5.312 kB / 1.345 GB, free: 12.45 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002598/0.9391, allocations: 195.2 kB / 1.345 GB, free: 12.3 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.437e-05/0.9392, allocations: 87.12 kB / 1.345 GB, free: 12.2 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.652e-05/0.9392, allocations: 1.984 kB / 1.345 GB, free: 12.2 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.919e-05/0.9393, allocations: 7.547 kB / 1.345 GB, free: 12.2 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.757e-05/0.9393, allocations: 12.89 kB / 1.345 GB, free: 12.19 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.373e-05/0.9393, allocations: 2.75 kB / 1.345 GB, free: 12.19 MB / 1.061 GB Notification: Performance of sorting global known variables: time 2.631e-05/0.9394, allocations: 81.47 kB / 1.345 GB, free: 12.11 MB / 1.061 GB Notification: Performance of sort global known variables: time 9e-08/0.9394, allocations: 3.938 kB / 1.345 GB, free: 12.11 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002429/0.9396, allocations: 19.66 kB / 1.345 GB, free: 12.1 MB / 1.061 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.0004663/0.9401, allocations: 0.7206 MB / 1.346 GB, free: 11.43 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002836/0.9404, allocations: 68.61 kB / 1.346 GB, free: 11.41 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.9404, allocations: 0 / 1.346 GB, free: 11.41 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001153/0.9405, allocations: 28.98 kB / 1.346 GB, free: 11.41 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002532/0.9407, allocations: 12.08 kB / 1.346 GB, free: 11.4 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001327/0.9421, allocations: 1.394 MB / 1.347 GB, free: 10.11 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001342/0.9422, allocations: 0.6855 MB / 1.348 GB, free: 9.41 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 2.975e-05/0.9422, allocations: 8.828 kB / 1.348 GB, free: 9.406 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.82e-05/0.9423, allocations: 15.86 kB / 1.348 GB, free: 9.395 MB / 1.061 GB Notification: Performance of SimCode: time 2.91e-07/0.9423, allocations: 0 / 1.348 GB, free: 9.395 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02505/0.9673, allocations: 1.796 MB / 1.35 GB, free: 8.98 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.598/9.566, allocations: 7.953 kB / 1.35 GB, free: 8.98 MB / 1.061 GB " [Timeout remaining time 290] (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: 16.024566637992393] Failed to read output from testmodel.py, exit status != 0: 9.69381850300124 9.713117487 8.774964235 Calling exit ...