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.001544/0.001544, allocations: 104.3 kB / 19.7 MB, free: 2.156 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.001494/0.001494, allocations: 213.4 kB / 22.99 MB, free: 4.984 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.515/1.515, allocations: 230.6 MB / 256.8 MB, free: 7.789 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.396/3.396, allocations: 0.49 GB / 0.7959 GB, free: 35.55 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: translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sampler1.u|sampler1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sampler1.u|sampler1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler") [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.002095/0.002095, allocations: 73.25 kB / 1.155 GB, free: 25.21 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4134/0.4155, allocations: 176.1 MB / 1.327 GB, free: 0.9727 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.002755/0.4183, allocations: 0.6519 MB / 1.328 GB, free: 336 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002358/0.4206, allocations: 1.081 MB / 1.329 GB, free: 15.23 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.21e-05/0.4207, allocations: 4 kB / 1.329 GB, free: 15.23 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 3.558e-05/0.4207, allocations: 3.938 kB / 1.329 GB, free: 15.23 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 8.874e-05/0.4208, allocations: 3.938 kB / 1.329 GB, free: 15.22 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003968/0.4212, allocations: 55.83 kB / 1.329 GB, free: 15.17 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001335/0.4214, allocations: 47.84 kB / 1.329 GB, free: 15.12 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001231/0.4215, allocations: 8 kB / 1.329 GB, free: 15.11 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 9.909e-05/0.4216, allocations: 23.91 kB / 1.329 GB, free: 15.09 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 7.231e-05/0.4216, allocations: 23.91 kB / 1.329 GB, free: 15.07 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.042e-05/0.4217, allocations: 4 kB / 1.329 GB, free: 15.06 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 9.211e-05/0.4218, allocations: 16 kB / 1.329 GB, free: 15.05 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 3.495e-05/0.4218, allocations: 15.98 kB / 1.329 GB, free: 15.03 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 4.63e-05/0.4218, allocations: 15.88 kB / 1.329 GB, free: 15.02 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002047/0.422, allocations: 67.7 kB / 1.329 GB, free: 14.95 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.94e-06/0.4221, allocations: 0 / 1.329 GB, free: 14.95 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.553e-06/0.4221, allocations: 0 / 1.329 GB, free: 14.95 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.572e-06/0.4221, allocations: 0 / 1.329 GB, free: 14.95 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.0008667/0.4229, allocations: 290.2 kB / 1.329 GB, free: 14.63 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.824e-05/0.423, allocations: 8.031 kB / 1.329 GB, free: 14.62 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001294/0.4231, allocations: 8.891 kB / 1.329 GB, free: 14.62 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001551/0.4233, allocations: 118.5 kB / 1.329 GB, free: 14.48 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.743e-05/0.4233, allocations: 4.359 kB / 1.329 GB, free: 14.47 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.354e-05/0.4233, allocations: 8.375 kB / 1.329 GB, free: 14.46 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002691/0.4236, allocations: 58.17 kB / 1.33 GB, free: 14.4 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/0.4236, allocations: 192 / 1.33 GB, free: 14.4 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.159e-05/0.4236, allocations: 11.94 kB / 1.33 GB, free: 14.39 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.4236, allocations: 0 / 1.33 GB, free: 14.39 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002699/0.4239, allocations: 39.95 kB / 1.33 GB, free: 14.35 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005641/0.4245, allocations: 216.5 kB / 1.33 GB, free: 14.11 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002363/0.4247, allocations: 54.48 kB / 1.33 GB, free: 14.05 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000159/0.4248, allocations: 36.84 kB / 1.33 GB, free: 14.01 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 3.054e-05/0.4249, allocations: 3.984 kB / 1.33 GB, free: 14 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003268/0.4252, allocations: 75.39 kB / 1.33 GB, free: 13.92 MB / 1.029 GB Notification: Performance of pre-optimization done (n=6): time 1.813e-06/0.4252, allocations: 0 / 1.33 GB, free: 13.92 MB / 1.029 GB Notification: Performance of matching and sorting (n=6): time 0.0006069/0.4258, allocations: 117.6 kB / 1.33 GB, free: 13.8 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.804e-05/0.4259, allocations: 55.41 kB / 1.33 GB, free: 13.73 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001392/0.426, allocations: 113.7 kB / 1.33 GB, free: 13.61 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.262e-05/0.4261, allocations: 29.7 kB / 1.33 GB, free: 13.57 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.678e-05/0.4261, allocations: 80.14 kB / 1.33 GB, free: 13.49 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.991e-05/0.4262, allocations: 19.89 kB / 1.33 GB, free: 13.47 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.694e-05/0.4262, allocations: 17.72 kB / 1.33 GB, free: 13.45 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0002229/0.4265, allocations: 318.8 kB / 1.331 GB, free: 13.13 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001381/0.4266, allocations: 31.98 kB / 1.331 GB, free: 13.1 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001696/0.4268, allocations: 55.39 kB / 1.331 GB, free: 13.03 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002945/0.4271, allocations: 79.33 kB / 1.331 GB, free: 12.94 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.4271, allocations: 0 / 1.331 GB, free: 12.94 MB / 1.029 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0003866/0.4274, allocations: 109.5 kB / 1.331 GB, free: 12.83 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.084e-05/0.4275, allocations: 4 kB / 1.331 GB, free: 12.82 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.4275, allocations: 0 / 1.331 GB, free: 12.82 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.671e-05/0.4275, allocations: 4 kB / 1.331 GB, free: 12.82 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001455/0.4276, allocations: 15.92 kB / 1.331 GB, free: 12.8 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.172e-05/0.4276, allocations: 4 kB / 1.331 GB, free: 12.8 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001038/0.4277, allocations: 15.89 kB / 1.331 GB, free: 12.79 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.431e-05/0.4278, allocations: 4 kB / 1.331 GB, free: 12.78 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.0001352/0.4279, allocations: 125.9 kB / 1.331 GB, free: 12.65 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.922e-05/0.4279, allocations: 4.031 kB / 1.331 GB, free: 12.64 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003998/0.4283, allocations: 106 kB / 1.331 GB, free: 12.53 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-06/0.4283, allocations: 0 / 1.331 GB, free: 12.53 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.4283, allocations: 0 / 1.331 GB, free: 12.53 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.4283, allocations: 0 / 1.331 GB, free: 12.53 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006523/0.429, allocations: 294.7 kB / 1.331 GB, free: 12.21 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.429, allocations: 0 / 1.331 GB, free: 12.21 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.327e-05/0.4291, allocations: 16.05 kB / 1.331 GB, free: 12.19 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.991e-06/0.4291, allocations: 4 kB / 1.331 GB, free: 12.19 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.587e-05/0.4291, allocations: 4 kB / 1.331 GB, free: 12.18 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.578e-06/0.4291, allocations: 3.938 kB / 1.331 GB, free: 12.18 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.4291, allocations: 3.984 kB / 1.331 GB, free: 12.18 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004553/0.4296, allocations: 187.5 kB / 1.332 GB, free: 11.98 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.425e-05/0.4296, allocations: 7.953 kB / 1.332 GB, free: 11.97 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.267e-05/0.4296, allocations: 0 / 1.332 GB, free: 11.97 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001632/0.4298, allocations: 15.98 kB / 1.332 GB, free: 11.95 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.977e-05/0.4298, allocations: 7.922 kB / 1.332 GB, free: 11.95 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.785e-05/0.4298, allocations: 4 kB / 1.332 GB, free: 11.94 MB / 1.029 GB Notification: Performance of sorting global known variables: time 7.576e-05/0.4299, allocations: 87.27 kB / 1.332 GB, free: 11.86 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4299, allocations: 0 / 1.332 GB, free: 11.86 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0004507/0.4304, allocations: 12 kB / 1.332 GB, free: 11.84 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.000205/0.4306, allocations: 107.2 kB / 1.332 GB, free: 11.73 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003647/0.4309, allocations: 71.77 kB / 1.332 GB, free: 11.66 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.4309, allocations: 0 / 1.332 GB, free: 11.66 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001586/0.4311, allocations: 31.91 kB / 1.332 GB, free: 11.63 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004133/0.4315, allocations: 9.719 kB / 1.332 GB, free: 11.62 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004834/0.432, allocations: 138.1 kB / 1.332 GB, free: 11.46 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.82e-05/0.4321, allocations: 63.34 kB / 1.332 GB, free: 11.38 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 4.202e-05/0.4321, allocations: 12.17 kB / 1.332 GB, free: 11.37 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.924e-05/0.4322, allocations: 11.44 kB / 1.332 GB, free: 11.36 MB / 1.029 GB Notification: Performance of SimCode: time 3.9e-07/0.4322, allocations: 0 / 1.332 GB, free: 11.36 MB / 1.029 GB Notification: Performance of Templates: time 0.005053/0.4372, allocations: 0.8635 MB / 1.333 GB, free: 10.5 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.makefile [Timeout 300] (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 & ./Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler -abortSlowSimulation -alarm=400 -s cvode -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.mat","/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] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 9.364903820009204]