Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001855/0.001855, allocations: 79.73 kB / 19.76 MB, free: 1.871 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.002487/0.002487, allocations: 157.8 kB / 23.01 MB, free: 4.605 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.497/1.497, allocations: 177.2 MB / 203.4 MB, free: 8.992 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.738/2.738, allocations: 359.1 MB / 0.6044 GB, free: 14.86 MB / 0.5762 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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_11_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_11_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.002051/0.002051, allocations: 67.89 kB / 0.9515 GB, free: 12.79 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3348/0.3369, allocations: 169.9 MB / 1.117 GB, free: 2.555 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001833/0.3387, allocations: 0.6534 MB / 1.118 GB, free: 1.902 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001402/0.3401, allocations: 1.085 MB / 1.119 GB, free: 0.8047 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.946e-05/0.3402, allocations: 0 / 1.119 GB, free: 0.8047 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 2.658e-05/0.3402, allocations: 3.938 kB / 1.119 GB, free: 0.8008 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 6.695e-05/0.3403, allocations: 7.922 kB / 1.119 GB, free: 0.793 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002712/0.3405, allocations: 43.89 kB / 1.119 GB, free: 0.75 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001/0.3406, allocations: 51.78 kB / 1.119 GB, free: 0.6992 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 8.723e-05/0.3407, allocations: 7.984 kB / 1.119 GB, free: 0.6914 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 6.282e-05/0.3408, allocations: 12 kB / 1.119 GB, free: 0.6797 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 5.73e-05/0.3408, allocations: 27.84 kB / 1.119 GB, free: 0.6523 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.526e-05/0.3409, allocations: 4 kB / 1.119 GB, free: 0.6484 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 6.852e-05/0.3409, allocations: 23.98 kB / 1.119 GB, free: 0.625 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 2.433e-05/0.3409, allocations: 11.98 kB / 1.119 GB, free: 0.6133 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 3.361e-05/0.341, allocations: 15.92 kB / 1.119 GB, free: 0.5977 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001452/0.3411, allocations: 63.72 kB / 1.119 GB, free: 0.5352 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.3411, allocations: 0 / 1.119 GB, free: 0.5352 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.493e-06/0.3411, allocations: 3.938 kB / 1.119 GB, free: 0.5312 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.27e-06/0.3411, allocations: 0 / 1.119 GB, free: 0.5312 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.0005879/0.3417, allocations: 298.1 kB / 1.12 GB, free: 212 kB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.386e-05/0.3418, allocations: 12.03 kB / 1.12 GB, free: 200 kB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.379e-05/0.3418, allocations: 12.89 kB / 1.12 GB, free: 188 kB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.738e-05/0.3419, allocations: 110.5 kB / 1.12 GB, free: 52 kB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.545e-05/0.342, allocations: 8.375 kB / 1.12 GB, free: 44 kB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.197e-05/0.342, allocations: 4.375 kB / 1.12 GB, free: 40 kB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002102/0.3422, allocations: 58.23 kB / 1.12 GB, free: 15.98 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/0.3422, allocations: 4.172 kB / 1.12 GB, free: 15.97 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.229e-05/0.3422, allocations: 3.938 kB / 1.12 GB, free: 15.97 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.878e-06/0.3422, allocations: 0 / 1.12 GB, free: 15.97 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001909/0.3424, allocations: 43.91 kB / 1.12 GB, free: 15.93 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003935/0.3428, allocations: 220.5 kB / 1.12 GB, free: 15.68 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000167/0.343, allocations: 50.55 kB / 1.12 GB, free: 15.62 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001045/0.3431, allocations: 36.89 kB / 1.12 GB, free: 15.58 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 2.075e-05/0.3431, allocations: 0 / 1.12 GB, free: 15.58 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001968/0.3433, allocations: 79.3 kB / 1.12 GB, free: 15.49 MB / 1.076 GB Notification: Performance of pre-optimization done (n=6): time 3.237e-06/0.3433, allocations: 4 kB / 1.12 GB, free: 15.49 MB / 1.076 GB Notification: Performance of matching and sorting (n=6): time 0.0004068/0.3437, allocations: 113.6 kB / 1.12 GB, free: 15.37 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.988e-05/0.3437, allocations: 55.39 kB / 1.12 GB, free: 15.3 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.647e-05/0.3438, allocations: 105.8 kB / 1.121 GB, free: 15.19 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 1.982e-05/0.3438, allocations: 29.7 kB / 1.121 GB, free: 15.16 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 4.997e-05/0.3439, allocations: 88.12 kB / 1.121 GB, free: 15.07 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 2.171e-05/0.3439, allocations: 15.84 kB / 1.121 GB, free: 15.05 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.711e-05/0.344, allocations: 21.72 kB / 1.121 GB, free: 15.02 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.0001331/0.3441, allocations: 314.8 kB / 1.121 GB, free: 14.71 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001007/0.3442, allocations: 27.98 kB / 1.121 GB, free: 14.68 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000117/0.3443, allocations: 55.34 kB / 1.121 GB, free: 14.61 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002096/0.3445, allocations: 79.33 kB / 1.121 GB, free: 14.52 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.3445, allocations: 0 / 1.121 GB, free: 14.52 MB / 1.076 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002639/0.3448, allocations: 105.5 kB / 1.121 GB, free: 14.41 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/0.3448, allocations: 10.66 kB / 1.121 GB, free: 14.41 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.3448, allocations: 0 / 1.121 GB, free: 14.41 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.226e-05/0.3448, allocations: 3.938 kB / 1.121 GB, free: 14.4 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001017/0.3449, allocations: 15.98 kB / 1.121 GB, free: 14.39 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.54e-06/0.3449, allocations: 160 / 1.121 GB, free: 14.39 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.498e-05/0.345, allocations: 20.44 kB / 1.121 GB, free: 14.37 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.987e-05/0.345, allocations: 8.078 kB / 1.121 GB, free: 14.36 MB / 1.076 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.227e-05/0.3451, allocations: 121.7 kB / 1.121 GB, free: 14.23 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.244e-05/0.3451, allocations: 4 kB / 1.121 GB, free: 14.23 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002851/0.3454, allocations: 106.1 kB / 1.122 GB, free: 14.12 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.3454, allocations: 0 / 1.122 GB, free: 14.12 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.3454, allocations: 0 / 1.122 GB, free: 14.12 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.3454, allocations: 3.938 kB / 1.122 GB, free: 14.11 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004207/0.3458, allocations: 302.1 kB / 1.122 GB, free: 13.78 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.3458, allocations: 0 / 1.122 GB, free: 13.78 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.063e-05/0.3459, allocations: 12 kB / 1.122 GB, free: 13.77 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.829e-06/0.3459, allocations: 3.984 kB / 1.122 GB, free: 13.77 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.835e-06/0.3459, allocations: 0 / 1.122 GB, free: 13.77 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.277e-06/0.3459, allocations: 4 kB / 1.122 GB, free: 13.76 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.3459, allocations: 0 / 1.122 GB, free: 13.76 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000292/0.3462, allocations: 191.4 kB / 1.122 GB, free: 13.56 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 1.331e-05/0.3462, allocations: 11.94 kB / 1.122 GB, free: 13.55 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.302e-05/0.3462, allocations: 4 kB / 1.122 GB, free: 13.54 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.867e-05/0.3463, allocations: 7.984 kB / 1.122 GB, free: 13.54 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.647e-05/0.3464, allocations: 4 kB / 1.122 GB, free: 13.53 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.076e-05/0.3464, allocations: 0 / 1.122 GB, free: 13.53 MB / 1.076 GB Notification: Performance of sorting global known variables: time 4.944e-05/0.3464, allocations: 91.27 kB / 1.122 GB, free: 13.44 MB / 1.076 GB Notification: Performance of sort global known variables: time 7e-08/0.3464, allocations: 0 / 1.122 GB, free: 13.44 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0002386/0.3467, allocations: 8 kB / 1.122 GB, free: 13.43 MB / 1.076 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.0001318/0.3468, allocations: 107.2 kB / 1.122 GB, free: 13.32 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0002572/0.3471, allocations: 72.19 kB / 1.122 GB, free: 13.25 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.3471, allocations: 4 kB / 1.122 GB, free: 13.25 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0001112/0.3472, allocations: 31.92 kB / 1.122 GB, free: 13.21 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002525/0.3474, allocations: 12.11 kB / 1.122 GB, free: 13.2 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003186/0.3477, allocations: 134.1 kB / 1.123 GB, free: 13.04 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.631e-05/0.3478, allocations: 71.47 kB / 1.123 GB, free: 12.95 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 2.895e-05/0.3478, allocations: 7.984 kB / 1.123 GB, free: 12.95 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.883e-05/0.3479, allocations: 12.5 kB / 1.123 GB, free: 12.93 MB / 1.076 GB Notification: Performance of SimCode: time 2.81e-07/0.3479, allocations: 0 / 1.123 GB, free: 12.93 MB / 1.076 GB Notification: Performance of Templates: time 0.003357/0.3512, allocations: 0.8206 MB / 1.123 GB, free: 12.13 MB / 1.076 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler -abortSlowSimulation -alarm=400 -s ida -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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: 8.747875046916306]