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.00132/0.00132, allocations: 98.25 kB / 16.45 MB, free: 6.449 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.001346/0.001346, allocations: 210.4 kB / 19.43 MB, free: 3.637 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.532/1.532, allocations: 230.6 MB / 252.8 MB, free: 9.121 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.174/3.174, allocations: 0.49 GB / 0.7916 GB, free: 33.51 MB / 0.6231 GB " [Timeout remaining time 177] 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler",fmuType="me",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.002903/0.002903, allocations: 74.45 kB / 1.149 GB, free: 26.45 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3547/0.3576, allocations: 176.1 MB / 1.321 GB, free: 3.395 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.002041/0.3596, allocations: 0.6765 MB / 1.321 GB, free: 2.723 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001626/0.3613, allocations: 1.093 MB / 1.323 GB, free: 1.617 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.092e-05/0.3613, allocations: 0 / 1.323 GB, free: 1.617 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.849e-05/0.3614, allocations: 7.922 kB / 1.323 GB, free: 1.609 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 8.359e-05/0.3614, allocations: 11.92 kB / 1.323 GB, free: 1.598 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003393/0.3618, allocations: 43.84 kB / 1.323 GB, free: 1.555 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001179/0.3619, allocations: 43.91 kB / 1.323 GB, free: 1.512 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 9.768e-05/0.362, allocations: 11.98 kB / 1.323 GB, free: 1.5 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 7.509e-05/0.3621, allocations: 23.86 kB / 1.323 GB, free: 1.477 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 5.348e-05/0.3621, allocations: 19.92 kB / 1.323 GB, free: 1.457 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.306e-05/0.3621, allocations: 4 kB / 1.323 GB, free: 1.453 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 7.752e-05/0.3622, allocations: 27.98 kB / 1.323 GB, free: 1.426 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 2.301e-05/0.3622, allocations: 15.91 kB / 1.323 GB, free: 1.41 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 5.114e-05/0.3623, allocations: 11.94 kB / 1.323 GB, free: 1.398 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001524/0.3624, allocations: 64.05 kB / 1.323 GB, free: 1.336 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.3624, allocations: 0 / 1.323 GB, free: 1.336 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.282e-06/0.3624, allocations: 0 / 1.323 GB, free: 1.336 MB / 1.014 GB Notification: Performance of Transformations before backend: time 8.446e-06/0.3625, allocations: 4 kB / 1.323 GB, free: 1.332 MB / 1.014 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.0006203/0.3631, allocations: 367.2 kB / 1.323 GB, free: 0.9219 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.998e-05/0.3631, allocations: 15.98 kB / 1.323 GB, free: 0.9062 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.793e-05/0.3632, allocations: 34.75 kB / 1.323 GB, free: 0.8633 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.724e-05/0.3632, allocations: 16.88 kB / 1.323 GB, free: 0.8477 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001226/0.3634, allocations: 168.3 kB / 1.323 GB, free: 0.6445 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.071e-05/0.3634, allocations: 384 / 1.323 GB, free: 0.6445 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.769e-05/0.3634, allocations: 4.375 kB / 1.323 GB, free: 0.6406 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002057/0.3636, allocations: 62.22 kB / 1.323 GB, free: 0.5742 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.3636, allocations: 3.938 kB / 1.323 GB, free: 0.5703 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.174e-05/0.3636, allocations: 4 kB / 1.323 GB, free: 0.5664 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.777e-06/0.3636, allocations: 4 kB / 1.323 GB, free: 0.5625 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001876/0.3638, allocations: 43.95 kB / 1.323 GB, free: 0.5195 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004431/0.3643, allocations: 284.7 kB / 1.324 GB, free: 196 kB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001834/0.3644, allocations: 50.55 kB / 1.324 GB, free: 136 kB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001035/0.3645, allocations: 32.95 kB / 1.324 GB, free: 100 kB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 2.069e-05/0.3646, allocations: 0 / 1.324 GB, free: 100 kB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002067/0.3648, allocations: 75.38 kB / 1.324 GB, free: 12 kB / 1.014 GB Notification: Performance of pre-optimization done (n=6): time 1.393e-06/0.3648, allocations: 0 / 1.324 GB, free: 12 kB / 1.014 GB Notification: Performance of matching and sorting (n=6): time 0.0004647/0.3652, allocations: 125.7 kB / 1.324 GB, free: 15.88 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.772e-05/0.3653, allocations: 51.41 kB / 1.324 GB, free: 15.82 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.939e-05/0.3654, allocations: 105.8 kB / 1.324 GB, free: 15.7 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.224e-05/0.3654, allocations: 33.7 kB / 1.324 GB, free: 15.66 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 5.124e-05/0.3655, allocations: 84.08 kB / 1.324 GB, free: 15.58 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.437e-05/0.3655, allocations: 15.91 kB / 1.324 GB, free: 15.56 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.124e-05/0.3655, allocations: 25.7 kB / 1.324 GB, free: 15.53 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001565/0.3657, allocations: 314.8 kB / 1.325 GB, free: 15.21 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001063/0.3658, allocations: 31.97 kB / 1.325 GB, free: 15.18 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001189/0.3659, allocations: 47.42 kB / 1.325 GB, free: 15.12 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002228/0.3661, allocations: 79.33 kB / 1.325 GB, free: 15.04 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.3661, allocations: 4 kB / 1.325 GB, free: 15.03 MB / 1.029 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002776/0.3664, allocations: 105.5 kB / 1.325 GB, free: 14.92 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.406e-05/0.3664, allocations: 4 kB / 1.325 GB, free: 14.92 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.3664, allocations: 4 kB / 1.325 GB, free: 14.91 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.344e-05/0.3664, allocations: 0 / 1.325 GB, free: 14.91 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001073/0.3666, allocations: 20.08 kB / 1.325 GB, free: 14.89 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.69e-06/0.3666, allocations: 0 / 1.325 GB, free: 14.89 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.185e-05/0.3666, allocations: 20.36 kB / 1.325 GB, free: 14.88 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.089e-05/0.3666, allocations: 4 kB / 1.325 GB, free: 14.87 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.0001105/0.3667, allocations: 119.6 kB / 1.325 GB, free: 14.75 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.247e-05/0.3668, allocations: 3.984 kB / 1.325 GB, free: 14.74 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003/0.3671, allocations: 114 kB / 1.325 GB, free: 14.62 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.3671, allocations: 0 / 1.325 GB, free: 14.62 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.3671, allocations: 0 / 1.325 GB, free: 14.62 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.3671, allocations: 0 / 1.325 GB, free: 14.62 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004999/0.3676, allocations: 362.3 kB / 1.326 GB, free: 14.21 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.3676, allocations: 0 / 1.326 GB, free: 14.21 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.27e-05/0.3676, allocations: 11.98 kB / 1.326 GB, free: 14.2 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.3676, allocations: 0 / 1.326 GB, free: 14.2 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.844e-06/0.3676, allocations: 4 kB / 1.326 GB, free: 14.2 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.3676, allocations: 0 / 1.326 GB, free: 14.2 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.3676, allocations: 0 / 1.326 GB, free: 14.2 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003147/0.368, allocations: 195.4 kB / 1.326 GB, free: 13.99 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 4.743e-05/0.368, allocations: 81.06 kB / 1.326 GB, free: 13.89 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.458e-05/0.368, allocations: 0 / 1.326 GB, free: 13.89 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001019/0.3681, allocations: 15.92 kB / 1.326 GB, free: 13.88 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.706e-05/0.3682, allocations: 15.92 kB / 1.326 GB, free: 13.86 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.291e-05/0.3682, allocations: 4 kB / 1.326 GB, free: 13.86 MB / 1.029 GB Notification: Performance of sorting global known variables: time 5.611e-05/0.3682, allocations: 79.28 kB / 1.326 GB, free: 13.78 MB / 1.029 GB Notification: Performance of sort global known variables: time 6e-08/0.3682, allocations: 0 / 1.326 GB, free: 13.78 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002412/0.3685, allocations: 12 kB / 1.326 GB, free: 13.77 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.0006819/0.3692, allocations: 0.7362 MB / 1.327 GB, free: 13.01 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002622/0.3694, allocations: 63.89 kB / 1.327 GB, free: 12.95 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.3694, allocations: 0 / 1.327 GB, free: 12.95 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001156/0.3695, allocations: 27.92 kB / 1.327 GB, free: 12.92 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002697/0.3698, allocations: 20.05 kB / 1.327 GB, free: 12.9 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001716/0.3715, allocations: 1.379 MB / 1.328 GB, free: 11.42 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003429/0.3719, allocations: 0.6807 MB / 1.329 GB, free: 10.71 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 2.996e-05/0.3719, allocations: 4 kB / 1.329 GB, free: 10.71 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.09e-05/0.3719, allocations: 15.44 kB / 1.329 GB, free: 10.69 MB / 1.029 GB Notification: Performance of SimCode: time 2.81e-07/0.3719, allocations: 0 / 1.329 GB, free: 10.69 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02404/0.396, allocations: 1.767 MB / 1.33 GB, free: 9.023 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.356/8.752, allocations: 2.25 kB / 1.33 GB, free: 9.023 MB / 1.029 GB " [Timeout remaining time 291] (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 & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable sampler1.u in file Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.csv. Warning: Get data of variable sampler1.u from file Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.591709861997515]