Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001349/0.001349, allocations: 97.92 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.001653/0.001653, allocations: 214.3 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.478/1.478, allocations: 230.6 MB / 256.8 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.205/3.205, allocations: 0.49 GB / 0.7959 GB, free: 35.48 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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_12_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler,fileNamePrefix="Buildings_12_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.00201/0.00201, allocations: 65.69 kB / 1.155 GB, free: 25.51 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3079/0.31, allocations: 176.1 MB / 1.327 GB, free: 1.496 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001935/0.3119, allocations: 0.6599 MB / 1.327 GB, free: 0.8438 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001484/0.3134, allocations: 1.085 MB / 1.328 GB, free: 15.75 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.938e-05/0.3134, allocations: 0 / 1.328 GB, free: 15.75 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 2.674e-05/0.3134, allocations: 7.938 kB / 1.328 GB, free: 15.74 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 6.321e-05/0.3135, allocations: 11.86 kB / 1.328 GB, free: 15.73 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003015/0.3138, allocations: 51.83 kB / 1.328 GB, free: 15.68 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.000113/0.3139, allocations: 39.92 kB / 1.328 GB, free: 15.64 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 8.918e-05/0.314, allocations: 11.98 kB / 1.328 GB, free: 15.62 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 7.16e-05/0.3141, allocations: 23.91 kB / 1.328 GB, free: 15.6 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 5.25e-05/0.3141, allocations: 19.92 kB / 1.328 GB, free: 15.58 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.688e-05/0.3142, allocations: 4 kB / 1.328 GB, free: 15.58 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 7.212e-05/0.3142, allocations: 23.92 kB / 1.328 GB, free: 15.55 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.222e-05/0.3142, allocations: 8 kB / 1.328 GB, free: 15.55 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 3.933e-05/0.3143, allocations: 19.92 kB / 1.329 GB, free: 15.53 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001503/0.3144, allocations: 64 kB / 1.329 GB, free: 15.46 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.3144, allocations: 0 / 1.329 GB, free: 15.46 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.252e-06/0.3144, allocations: 0 / 1.329 GB, free: 15.46 MB / 1.029 GB Notification: Performance of Transformations before backend: time 9.708e-06/0.3145, allocations: 0 / 1.329 GB, free: 15.46 MB / 1.029 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.0005852/0.315, allocations: 290.2 kB / 1.329 GB, free: 15.15 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.988e-05/0.3151, allocations: 8.031 kB / 1.329 GB, free: 15.14 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.6e-05/0.3151, allocations: 8.172 kB / 1.329 GB, free: 15.13 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.203e-05/0.3151, allocations: 30.75 kB / 1.329 GB, free: 15.09 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.437e-05/0.3152, allocations: 12.89 kB / 1.329 GB, free: 15.08 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001172/0.3153, allocations: 118.5 kB / 1.329 GB, free: 14.94 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.109e-05/0.3153, allocations: 384 / 1.329 GB, free: 14.94 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.719e-05/0.3154, allocations: 4.375 kB / 1.329 GB, free: 14.94 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002228/0.3156, allocations: 69.91 kB / 1.329 GB, free: 14.86 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.147e-06/0.3156, allocations: 0 / 1.329 GB, free: 14.86 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.062e-05/0.3156, allocations: 0 / 1.329 GB, free: 14.86 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.035e-06/0.3156, allocations: 4 kB / 1.329 GB, free: 14.86 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001898/0.3158, allocations: 43.95 kB / 1.329 GB, free: 14.82 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004661/0.3163, allocations: 239.9 kB / 1.329 GB, free: 14.54 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000179/0.3164, allocations: 54.48 kB / 1.329 GB, free: 14.48 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001019/0.3165, allocations: 24.97 kB / 1.329 GB, free: 14.45 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.197e-05/0.3166, allocations: 3.984 kB / 1.329 GB, free: 14.45 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002124/0.3168, allocations: 75.39 kB / 1.33 GB, free: 14.36 MB / 1.029 GB Notification: Performance of pre-optimization done (n=6): time 1.332e-06/0.3168, allocations: 0 / 1.33 GB, free: 14.36 MB / 1.029 GB Notification: Performance of matching and sorting (n=6): time 0.0004308/0.3172, allocations: 125.6 kB / 1.33 GB, free: 14.23 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.084e-05/0.3173, allocations: 59.34 kB / 1.33 GB, free: 14.16 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001032/0.3174, allocations: 109.8 kB / 1.33 GB, free: 14.04 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.965e-05/0.3174, allocations: 29.64 kB / 1.33 GB, free: 14.01 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 5.032e-05/0.3174, allocations: 84.14 kB / 1.33 GB, free: 13.92 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.87e-05/0.3175, allocations: 15.97 kB / 1.33 GB, free: 13.91 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.702e-05/0.3175, allocations: 25.7 kB / 1.33 GB, free: 13.88 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001592/0.3177, allocations: 322.8 kB / 1.33 GB, free: 13.55 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.784e-05/0.3178, allocations: 23.98 kB / 1.33 GB, free: 13.53 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001223/0.3179, allocations: 55.39 kB / 1.33 GB, free: 13.46 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002055/0.3181, allocations: 83.31 kB / 1.33 GB, free: 13.37 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.3181, allocations: 0 / 1.33 GB, free: 13.37 MB / 1.029 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002742/0.3184, allocations: 105.6 kB / 1.331 GB, free: 13.26 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.473e-05/0.3184, allocations: 4 kB / 1.331 GB, free: 13.25 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/0.3184, allocations: 4 kB / 1.331 GB, free: 13.25 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.627e-05/0.3184, allocations: 0 / 1.331 GB, free: 13.25 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001114/0.3185, allocations: 15.92 kB / 1.331 GB, free: 13.23 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.935e-06/0.3185, allocations: 4 kB / 1.331 GB, free: 13.23 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.783e-05/0.3186, allocations: 11.89 kB / 1.331 GB, free: 13.22 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.43e-05/0.3186, allocations: 8.094 kB / 1.331 GB, free: 13.21 MB / 1.029 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.0001144/0.3187, allocations: 126.3 kB / 1.331 GB, free: 13.08 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.111e-05/0.3187, allocations: 0 / 1.331 GB, free: 13.08 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002938/0.319, allocations: 106 kB / 1.331 GB, free: 12.96 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.319, allocations: 0 / 1.331 GB, free: 12.96 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.319, allocations: 0 / 1.331 GB, free: 12.96 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.319, allocations: 4 kB / 1.331 GB, free: 12.96 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005051/0.3195, allocations: 314.2 kB / 1.331 GB, free: 12.61 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.3195, allocations: 4 kB / 1.331 GB, free: 12.6 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.755e-05/0.3196, allocations: 19.92 kB / 1.331 GB, free: 12.58 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.3196, allocations: 0 / 1.331 GB, free: 12.58 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.087e-05/0.3196, allocations: 4 kB / 1.331 GB, free: 12.58 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.3196, allocations: 0 / 1.331 GB, free: 12.58 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.3196, allocations: 3.938 kB / 1.331 GB, free: 12.57 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002974/0.3199, allocations: 187.5 kB / 1.331 GB, free: 12.38 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.366e-05/0.3199, allocations: 11.94 kB / 1.331 GB, free: 12.36 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.61e-05/0.32, allocations: 4 kB / 1.331 GB, free: 12.36 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.758e-05/0.3201, allocations: 7.984 kB / 1.331 GB, free: 12.35 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.301e-05/0.3201, allocations: 7.938 kB / 1.331 GB, free: 12.34 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.163e-05/0.3201, allocations: 0 / 1.331 GB, free: 12.34 MB / 1.029 GB Notification: Performance of sorting global known variables: time 4.888e-05/0.3202, allocations: 91.2 kB / 1.331 GB, free: 12.25 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3202, allocations: 4 kB / 1.331 GB, free: 12.25 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002497/0.3204, allocations: 12 kB / 1.331 GB, free: 12.24 MB / 1.029 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.0006429/0.3211, allocations: 0.7318 MB / 1.332 GB, free: 11.48 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002572/0.3213, allocations: 63.89 kB / 1.332 GB, free: 11.42 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.3213, allocations: 0 / 1.332 GB, free: 11.42 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001117/0.3214, allocations: 31.97 kB / 1.332 GB, free: 11.39 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002588/0.3217, allocations: 7.938 kB / 1.332 GB, free: 11.38 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00171/0.3234, allocations: 1.38 MB / 1.334 GB, free: 9.902 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.152e-05/0.3235, allocations: 69.06 kB / 1.334 GB, free: 9.816 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 2.944e-05/0.3235, allocations: 3.984 kB / 1.334 GB, free: 9.812 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.092e-05/0.3235, allocations: 15.44 kB / 1.334 GB, free: 9.797 MB / 1.029 GB Notification: Performance of SimCode: time 5.31e-07/0.3235, allocations: 4 kB / 1.334 GB, free: 9.793 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02236/0.3459, allocations: 1.957 MB / 1.336 GB, free: 7.988 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.55/11.89, allocations: 12.64 kB / 1.336 GB, free: 7.98 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 420.0] [Calling os._exit(0), Time elapsed: 18.716550825047307] Failed to read output from testmodel.py, exit status != 0: 12.056354427011684 12.081714765 11.762718274000001 Calling exit ...