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.001607/0.001607, allocations: 104.2 kB / 19.74 MB, free: 2.07 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.00169/0.00169, allocations: 213.5 kB / 23.04 MB, free: 4.867 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.482/1.482, allocations: 230.6 MB / 256.8 MB, free: 7.797 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.148/3.148, allocations: 0.49 GB / 0.7959 GB, free: 35.47 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.002011/0.002011, allocations: 65.25 kB / 1.155 GB, free: 25.26 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3354/0.3374, allocations: 176.1 MB / 1.327 GB, free: 0.9844 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001966/0.3394, allocations: 0.6535 MB / 1.328 GB, free: 344 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001519/0.3409, allocations: 1.081 MB / 1.329 GB, free: 15.24 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.607e-05/0.3409, allocations: 0 / 1.329 GB, free: 15.24 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 2.64e-05/0.341, allocations: 3.938 kB / 1.329 GB, free: 15.24 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 6.929e-05/0.341, allocations: 15.84 kB / 1.329 GB, free: 15.22 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002922/0.3413, allocations: 51.84 kB / 1.329 GB, free: 15.17 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 9.633e-05/0.3414, allocations: 39.92 kB / 1.329 GB, free: 15.13 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 9.338e-05/0.3415, allocations: 23.91 kB / 1.329 GB, free: 15.11 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 6.398e-05/0.3416, allocations: 15.94 kB / 1.329 GB, free: 15.09 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 5.26e-05/0.3416, allocations: 19.91 kB / 1.329 GB, free: 15.07 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.338e-05/0.3416, allocations: 4 kB / 1.329 GB, free: 15.07 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 6.397e-05/0.3417, allocations: 19.98 kB / 1.329 GB, free: 15.05 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.509e-05/0.3417, allocations: 11.98 kB / 1.329 GB, free: 15.04 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 3.674e-05/0.3418, allocations: 19.86 kB / 1.329 GB, free: 15.02 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001492/0.3419, allocations: 59.78 kB / 1.329 GB, free: 14.96 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.3419, allocations: 0 / 1.329 GB, free: 14.96 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.593e-06/0.3419, allocations: 0 / 1.329 GB, free: 14.96 MB / 1.029 GB Notification: Performance of Transformations before backend: time 4.779e-06/0.3419, allocations: 0 / 1.329 GB, free: 14.96 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.0005865/0.3425, allocations: 294.2 kB / 1.329 GB, free: 14.64 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 5.231e-05/0.3426, allocations: 8.031 kB / 1.329 GB, free: 14.63 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.381e-05/0.3427, allocations: 12.88 kB / 1.329 GB, free: 14.62 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001151/0.3428, allocations: 118.4 kB / 1.33 GB, free: 14.48 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.498e-05/0.3428, allocations: 4.375 kB / 1.33 GB, free: 14.48 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.428e-05/0.3428, allocations: 4.375 kB / 1.33 GB, free: 14.47 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001967/0.343, allocations: 62.22 kB / 1.33 GB, free: 14.41 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.297e-06/0.343, allocations: 192 / 1.33 GB, free: 14.41 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.339e-05/0.343, allocations: 11.94 kB / 1.33 GB, free: 14.39 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.646e-06/0.343, allocations: 0 / 1.33 GB, free: 14.39 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001876/0.3432, allocations: 39.95 kB / 1.33 GB, free: 14.36 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004382/0.3437, allocations: 216.5 kB / 1.33 GB, free: 14.11 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001762/0.3438, allocations: 50.55 kB / 1.33 GB, free: 14.05 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001135/0.3439, allocations: 32.89 kB / 1.33 GB, free: 14.02 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.121e-05/0.344, allocations: 4 kB / 1.33 GB, free: 14.02 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002346/0.3442, allocations: 83.3 kB / 1.33 GB, free: 13.92 MB / 1.029 GB Notification: Performance of pre-optimization done (n=6): time 1.423e-06/0.3442, allocations: 0 / 1.33 GB, free: 13.92 MB / 1.029 GB Notification: Performance of matching and sorting (n=6): time 0.0004233/0.3446, allocations: 117.6 kB / 1.33 GB, free: 13.8 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.255e-05/0.3447, allocations: 55.41 kB / 1.33 GB, free: 13.73 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.412e-05/0.3448, allocations: 109.8 kB / 1.33 GB, free: 13.62 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.982e-05/0.3448, allocations: 29.7 kB / 1.33 GB, free: 13.58 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.151e-05/0.3449, allocations: 88.2 kB / 1.33 GB, free: 13.49 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.212e-05/0.3449, allocations: 15.91 kB / 1.33 GB, free: 13.48 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.473e-05/0.3449, allocations: 21.7 kB / 1.33 GB, free: 13.45 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001429/0.3451, allocations: 314.8 kB / 1.331 GB, free: 13.13 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.928e-05/0.3452, allocations: 23.97 kB / 1.331 GB, free: 13.11 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001213/0.3453, allocations: 47.42 kB / 1.331 GB, free: 13.05 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002065/0.3455, allocations: 83.33 kB / 1.331 GB, free: 12.96 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.3455, allocations: 3.938 kB / 1.331 GB, free: 12.95 MB / 1.029 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002773/0.3458, allocations: 109.5 kB / 1.331 GB, free: 12.84 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.362e-05/0.3458, allocations: 4 kB / 1.331 GB, free: 12.84 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.369e-06/0.3458, allocations: 0 / 1.331 GB, free: 12.84 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.313e-05/0.3458, allocations: 4 kB / 1.331 GB, free: 12.83 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001061/0.3459, allocations: 16.08 kB / 1.331 GB, free: 12.82 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.494e-06/0.3459, allocations: 4 kB / 1.331 GB, free: 12.81 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.008e-05/0.346, allocations: 19.88 kB / 1.331 GB, free: 12.79 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.298e-05/0.346, allocations: 4 kB / 1.331 GB, free: 12.79 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.0001023/0.3461, allocations: 117.8 kB / 1.331 GB, free: 12.66 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.05e-05/0.3461, allocations: 0.5 kB / 1.331 GB, free: 12.66 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003176/0.3464, allocations: 106 kB / 1.331 GB, free: 12.55 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.3464, allocations: 64 / 1.331 GB, free: 12.55 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.3464, allocations: 8 kB / 1.331 GB, free: 12.54 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.604e-06/0.3464, allocations: 0 / 1.331 GB, free: 12.54 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004592/0.3469, allocations: 302 kB / 1.332 GB, free: 12.21 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.3469, allocations: 0 / 1.332 GB, free: 12.21 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.912e-05/0.347, allocations: 7.984 kB / 1.332 GB, free: 12.2 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.309e-06/0.347, allocations: 4 kB / 1.332 GB, free: 12.2 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.011e-05/0.347, allocations: 4 kB / 1.332 GB, free: 12.2 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.223e-06/0.347, allocations: 0 / 1.332 GB, free: 12.2 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.347, allocations: 0 / 1.332 GB, free: 12.2 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003109/0.3473, allocations: 199.4 kB / 1.332 GB, free: 11.98 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 9.107e-06/0.3473, allocations: 7.891 kB / 1.332 GB, free: 11.98 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.41e-05/0.3473, allocations: 0 / 1.332 GB, free: 11.98 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001001/0.3474, allocations: 11.98 kB / 1.332 GB, free: 11.96 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.652e-05/0.3475, allocations: 3.938 kB / 1.332 GB, free: 11.96 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.472e-05/0.3475, allocations: 4 kB / 1.332 GB, free: 11.96 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.077e-05/0.3475, allocations: 87.27 kB / 1.332 GB, free: 11.87 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3475, allocations: 0 / 1.332 GB, free: 11.87 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002453/0.3478, allocations: 12 kB / 1.332 GB, free: 11.86 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.0001411/0.3479, allocations: 111.2 kB / 1.332 GB, free: 11.74 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002766/0.3482, allocations: 67.81 kB / 1.332 GB, free: 11.68 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.3482, allocations: 0 / 1.332 GB, free: 11.68 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001135/0.3483, allocations: 27.98 kB / 1.332 GB, free: 11.65 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002594/0.3486, allocations: 14.11 kB / 1.332 GB, free: 11.64 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003601/0.3489, allocations: 167.8 kB / 1.332 GB, free: 11.44 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.816e-05/0.349, allocations: 71.33 kB / 1.332 GB, free: 11.35 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.12e-05/0.349, allocations: 11.44 kB / 1.332 GB, free: 11.34 MB / 1.029 GB Notification: Performance of SimCode: time 3.1e-07/0.349, allocations: 7.938 kB / 1.332 GB, free: 11.33 MB / 1.029 GB Notification: Performance of Templates: time 0.00266/0.3517, allocations: 0.8635 MB / 1.333 GB, free: 10.47 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 -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: 11.258409542031586]