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.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0015/0.0015, allocations: 106.3 kB / 18.19 MB, free: 3.879 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001565/0.001565, allocations: 188.4 kB / 21.34 MB, free: 0.7383 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.329/1.329, allocations: 225.6 MB / 249.9 MB, free: 13.43 MB / 206.1 MB [Timeout remaining time 89] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.856/2.856, allocations: 489.7 MB / 0.7761 GB, free: 33.66 MB / 0.6231 GB [Timeout remaining time 87] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=506,variableFilter="time|sampler1.u|sampler1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=506,variableFilter="time|sampler1.u|sampler1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler") [Timeout 300] Notification: Performance of FrontEnd - loaded program: time 0.001815/0.001815, allocations: 62.69 kB / 1.127 GB, free: 36.77 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2935/0.2953, allocations: 172.1 MB / 1.295 GB, free: 11.61 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001863/0.2972, allocations: 0.6798 MB / 1.296 GB, free: 10.93 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001289/0.2985, allocations: 1.05 MB / 1.297 GB, free: 9.867 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.709e-05/0.2985, allocations: 0 / 1.297 GB, free: 9.867 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 2.897e-05/0.2985, allocations: 11.92 kB / 1.297 GB, free: 9.855 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 5.894e-05/0.2986, allocations: 7.938 kB / 1.297 GB, free: 9.848 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002392/0.2988, allocations: 35.89 kB / 1.297 GB, free: 9.812 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001021/0.2989, allocations: 51.8 kB / 1.297 GB, free: 9.762 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 8.6e-05/0.299, allocations: 7.984 kB / 1.297 GB, free: 9.754 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 6.132e-05/0.2991, allocations: 23.97 kB / 1.297 GB, free: 9.73 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.069e-05/0.2991, allocations: 19.86 kB / 1.297 GB, free: 9.711 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.65e-05/0.2992, allocations: 4 kB / 1.297 GB, free: 9.707 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.197e-05/0.2992, allocations: 19.98 kB / 1.297 GB, free: 9.688 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 1.866e-05/0.2992, allocations: 7.984 kB / 1.297 GB, free: 9.68 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 4.216e-05/0.2993, allocations: 23.94 kB / 1.297 GB, free: 9.656 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.000127/0.2994, allocations: 55.72 kB / 1.297 GB, free: 9.602 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.2994, allocations: 0 / 1.297 GB, free: 9.602 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.263e-06/0.2994, allocations: 0 / 1.297 GB, free: 9.602 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.658e-06/0.2994, allocations: 3.938 kB / 1.297 GB, free: 9.598 MB / 0.9981 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.0005868/0.3, allocations: 367.3 kB / 1.297 GB, free: 9.188 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.365e-05/0.3, allocations: 12.03 kB / 1.297 GB, free: 9.176 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.882e-05/0.3001, allocations: 12.88 kB / 1.297 GB, free: 9.164 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001205/0.3002, allocations: 164.4 kB / 1.297 GB, free: 8.965 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.205e-05/0.3002, allocations: 384 / 1.297 GB, free: 8.965 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.856e-05/0.3002, allocations: 8.359 kB / 1.297 GB, free: 8.957 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001941/0.3004, allocations: 66.2 kB / 1.297 GB, free: 8.887 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.176e-06/0.3004, allocations: 192 / 1.297 GB, free: 8.887 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.245e-05/0.3004, allocations: 3.938 kB / 1.297 GB, free: 8.883 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.384e-06/0.3005, allocations: 4 kB / 1.297 GB, free: 8.879 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001751/0.3006, allocations: 47.89 kB / 1.297 GB, free: 8.832 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004256/0.3011, allocations: 276.8 kB / 1.298 GB, free: 8.512 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001577/0.3012, allocations: 54.48 kB / 1.298 GB, free: 8.449 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.491e-05/0.3013, allocations: 24.97 kB / 1.298 GB, free: 8.422 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.186e-05/0.3013, allocations: 4 kB / 1.298 GB, free: 8.418 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001926/0.3015, allocations: 79.31 kB / 1.298 GB, free: 8.328 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=6): time 1.352e-06/0.3015, allocations: 0 / 1.298 GB, free: 8.328 MB / 0.9981 GB Notification: Performance of matching and sorting (n=6): time 0.0003852/0.3019, allocations: 121.5 kB / 1.298 GB, free: 8.203 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.103e-05/0.302, allocations: 55.41 kB / 1.298 GB, free: 8.137 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.017e-05/0.302, allocations: 110.1 kB / 1.298 GB, free: 8.02 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.77e-05/0.3021, allocations: 25.7 kB / 1.298 GB, free: 7.988 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 5.356e-05/0.3021, allocations: 92.02 kB / 1.298 GB, free: 7.895 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.432e-05/0.3021, allocations: 15.89 kB / 1.298 GB, free: 7.879 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.237e-05/0.3022, allocations: 21.72 kB / 1.298 GB, free: 7.852 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001241/0.3023, allocations: 314.8 kB / 1.299 GB, free: 7.535 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.937e-05/0.3024, allocations: 28.22 kB / 1.299 GB, free: 7.508 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001199/0.3025, allocations: 59.41 kB / 1.299 GB, free: 7.438 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002031/0.3027, allocations: 79.33 kB / 1.299 GB, free: 7.348 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.3027, allocations: 4 kB / 1.299 GB, free: 7.344 MB / 0.9981 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002481/0.303, allocations: 109.5 kB / 1.299 GB, free: 7.23 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.25e-05/0.303, allocations: 4 kB / 1.299 GB, free: 7.227 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.303, allocations: 4 kB / 1.299 GB, free: 7.223 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.188e-05/0.303, allocations: 0 / 1.299 GB, free: 7.223 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.742e-05/0.3031, allocations: 11.98 kB / 1.299 GB, free: 7.211 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.796e-06/0.3031, allocations: 7.984 kB / 1.299 GB, free: 7.203 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.996e-05/0.3032, allocations: 8.094 kB / 1.299 GB, free: 7.195 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.778e-06/0.3032, allocations: 4 kB / 1.299 GB, free: 7.191 MB / 0.9981 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 9.179e-05/0.3033, allocations: 122.2 kB / 1.299 GB, free: 7.062 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.248e-05/0.3033, allocations: 3.984 kB / 1.299 GB, free: 7.059 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002666/0.3035, allocations: 102 kB / 1.299 GB, free: 6.953 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-06/0.3036, allocations: 0 / 1.299 GB, free: 6.953 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.3036, allocations: 0 / 1.299 GB, free: 6.953 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.015e-06/0.3036, allocations: 4 kB / 1.299 GB, free: 6.949 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004448/0.304, allocations: 362.4 kB / 1.299 GB, free: 6.539 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.304, allocations: 3.984 kB / 1.299 GB, free: 6.535 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.49e-05/0.3041, allocations: 4 kB / 1.299 GB, free: 6.531 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.666e-06/0.3041, allocations: 7.984 kB / 1.299 GB, free: 6.523 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.073e-06/0.3041, allocations: 0 / 1.299 GB, free: 6.523 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.3041, allocations: 0 / 1.299 GB, free: 6.523 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.3041, allocations: 0 / 1.299 GB, free: 6.523 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002975/0.3044, allocations: 195.4 kB / 1.3 GB, free: 6.316 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.685e-05/0.3044, allocations: 89.23 kB / 1.3 GB, free: 6.211 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.949e-05/0.3045, allocations: 8 kB / 1.3 GB, free: 6.203 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.834e-05/0.3046, allocations: 7.984 kB / 1.3 GB, free: 6.195 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.313e-05/0.3046, allocations: 4 kB / 1.3 GB, free: 6.191 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.326e-05/0.3046, allocations: 7.938 kB / 1.3 GB, free: 6.184 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 4.587e-05/0.3047, allocations: 91.27 kB / 1.3 GB, free: 6.094 MB / 0.9981 GB Notification: Performance of sort global known variables: time 8.1e-08/0.3047, allocations: 3.938 kB / 1.3 GB, free: 6.09 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002322/0.3049, allocations: 8 kB / 1.3 GB, free: 6.082 MB / 0.9981 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.0001552/0.305, allocations: 109.6 kB / 1.3 GB, free: 5.969 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.00025/0.3053, allocations: 68 kB / 1.3 GB, free: 5.902 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.3053, allocations: 4.062 kB / 1.3 GB, free: 5.898 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001016/0.3054, allocations: 23.98 kB / 1.3 GB, free: 5.875 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000254/0.3057, allocations: 11.98 kB / 1.3 GB, free: 5.863 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003581/0.306, allocations: 163.6 kB / 1.3 GB, free: 5.672 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002931/0.3063, allocations: 0.6866 MB / 1.301 GB, free: 4.961 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.137e-05/0.3063, allocations: 15.42 kB / 1.301 GB, free: 4.945 MB / 0.9981 GB Notification: Performance of SimCode: time 3.11e-07/0.3063, allocations: 0 / 1.301 GB, free: 4.945 MB / 0.9981 GB Notification: Performance of Templates: time 0.002522/0.3089, allocations: 0.8537 MB / 1.302 GB, free: 4.09 MB / 0.9981 GB [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.makefile [Timeout 300] (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 & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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