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.001345/0.001345, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001531/0.001531, allocations: 211.2 kB / 22.24 MB, free: 5.262 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.438/1.438, allocations: 230.6 MB / 256 MB, free: 7.793 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.225/3.225, allocations: 0.4892 GB / 0.7943 GB, free: 35.39 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: "" <> 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.002121/0.002121, allocations: 66.92 kB / 1.153 GB, free: 25.82 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.326/0.3281, allocations: 176.1 MB / 1.325 GB, free: 2.426 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.002333/0.3304, allocations: 0.6671 MB / 1.326 GB, free: 1.766 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001825/0.3322, allocations: 1.093 MB / 1.327 GB, free: 0.6602 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.491e-05/0.3323, allocations: 0 / 1.327 GB, free: 0.6602 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 4.229e-05/0.3324, allocations: 3.938 kB / 1.327 GB, free: 0.6562 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 9.982e-05/0.3325, allocations: 7.938 kB / 1.327 GB, free: 0.6484 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003911/0.3329, allocations: 43.89 kB / 1.327 GB, free: 0.6055 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.000135/0.333, allocations: 51.84 kB / 1.327 GB, free: 0.5547 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001068/0.3331, allocations: 4 kB / 1.327 GB, free: 0.5508 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 9.686e-05/0.3332, allocations: 23.92 kB / 1.327 GB, free: 0.5273 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 6.809e-05/0.3333, allocations: 23.91 kB / 1.327 GB, free: 0.5039 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.687e-05/0.3333, allocations: 4 kB / 1.327 GB, free: 0.5 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 8.253e-05/0.3334, allocations: 15.98 kB / 1.327 GB, free: 496 kB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 3.162e-05/0.3334, allocations: 15.98 kB / 1.327 GB, free: 480 kB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 4.044e-05/0.3334, allocations: 11.94 kB / 1.327 GB, free: 468 kB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001844/0.3336, allocations: 67.94 kB / 1.327 GB, free: 400 kB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.3336, allocations: 0 / 1.327 GB, free: 400 kB / 1.014 GB Notification: Performance of FrontEnd: time 1.633e-06/0.3336, allocations: 0 / 1.327 GB, free: 400 kB / 1.014 GB Notification: Performance of Transformations before backend: time 6.823e-06/0.3336, allocations: 0 / 1.327 GB, free: 400 kB / 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.0006659/0.3343, allocations: 294.2 kB / 1.327 GB, free: 72 kB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 5.798e-05/0.3344, allocations: 8.031 kB / 1.327 GB, free: 64 kB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.564e-05/0.3344, allocations: 38.75 kB / 1.327 GB, free: 16 kB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.048e-05/0.3345, allocations: 4.891 kB / 1.327 GB, free: 12 kB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001475/0.3346, allocations: 110.5 kB / 1.327 GB, free: 15.88 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.693e-05/0.3347, allocations: 384 / 1.327 GB, free: 15.88 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.101e-05/0.3347, allocations: 12.36 kB / 1.327 GB, free: 15.87 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002441/0.3349, allocations: 58.23 kB / 1.328 GB, free: 15.8 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.466e-05/0.3349, allocations: 3.938 kB / 1.328 GB, free: 15.8 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.969e-06/0.3349, allocations: 0 / 1.328 GB, free: 15.8 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.711e-06/0.335, allocations: 7.938 kB / 1.328 GB, free: 15.79 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002037/0.3352, allocations: 47.94 kB / 1.328 GB, free: 15.75 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005132/0.3357, allocations: 239.9 kB / 1.328 GB, free: 15.47 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002212/0.3359, allocations: 50.55 kB / 1.328 GB, free: 15.41 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001193/0.336, allocations: 32.95 kB / 1.328 GB, free: 15.38 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.679e-05/0.336, allocations: 3.938 kB / 1.328 GB, free: 15.37 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000287/0.3363, allocations: 79.31 kB / 1.328 GB, free: 15.28 MB / 1.029 GB Notification: Performance of pre-optimization done (n=6): time 1.903e-06/0.3363, allocations: 0 / 1.328 GB, free: 15.28 MB / 1.029 GB Notification: Performance of matching and sorting (n=6): time 0.0004438/0.3368, allocations: 117.6 kB / 1.328 GB, free: 15.16 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.041e-05/0.3368, allocations: 59.33 kB / 1.328 GB, free: 15.09 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001011/0.3369, allocations: 101.9 kB / 1.328 GB, free: 14.98 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.166e-05/0.337, allocations: 29.7 kB / 1.328 GB, free: 14.95 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.808e-05/0.337, allocations: 88.12 kB / 1.328 GB, free: 14.86 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.274e-05/0.337, allocations: 15.91 kB / 1.328 GB, free: 14.84 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.097e-05/0.3371, allocations: 25.66 kB / 1.328 GB, free: 14.81 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001755/0.3373, allocations: 322.8 kB / 1.329 GB, free: 14.48 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001107/0.3374, allocations: 23.98 kB / 1.329 GB, free: 14.46 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001205/0.3375, allocations: 47.41 kB / 1.329 GB, free: 14.4 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002118/0.3377, allocations: 83.83 kB / 1.329 GB, free: 14.31 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.3377, allocations: 0 / 1.329 GB, free: 14.31 MB / 1.029 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000283/0.338, allocations: 101.5 kB / 1.329 GB, free: 14.2 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.987e-05/0.338, allocations: 8 kB / 1.329 GB, free: 14.2 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.338, allocations: 0 / 1.329 GB, free: 14.2 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.626e-05/0.338, allocations: 0 / 1.329 GB, free: 14.2 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001208/0.3382, allocations: 23.98 kB / 1.329 GB, free: 14.17 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.436e-06/0.3382, allocations: 8.188 kB / 1.329 GB, free: 14.16 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.453e-05/0.3382, allocations: 11.92 kB / 1.329 GB, free: 14.15 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.262e-05/0.3383, allocations: 7.984 kB / 1.329 GB, free: 14.14 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.0001278/0.3384, allocations: 119.3 kB / 1.329 GB, free: 14.02 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.779e-05/0.3384, allocations: 4 kB / 1.329 GB, free: 14.02 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003106/0.3387, allocations: 102 kB / 1.329 GB, free: 13.91 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.11e-06/0.3387, allocations: 4.031 kB / 1.329 GB, free: 13.9 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.117e-06/0.3387, allocations: 0 / 1.329 GB, free: 13.9 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.3387, allocations: 4 kB / 1.329 GB, free: 13.9 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005163/0.3392, allocations: 329.5 kB / 1.33 GB, free: 13.53 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.3392, allocations: 0 / 1.33 GB, free: 13.53 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.17e-05/0.3393, allocations: 7.984 kB / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.3393, allocations: 0 / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.317e-06/0.3393, allocations: 4 kB / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.3393, allocations: 0 / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/0.3393, allocations: 0 / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003364/0.3397, allocations: 203.4 kB / 1.33 GB, free: 13.3 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.416e-05/0.3397, allocations: 3.953 kB / 1.33 GB, free: 13.3 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.687e-05/0.3397, allocations: 0 / 1.33 GB, free: 13.3 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.935e-05/0.3398, allocations: 11.98 kB / 1.33 GB, free: 13.29 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.473e-05/0.3398, allocations: 11.88 kB / 1.33 GB, free: 13.27 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.239e-05/0.3399, allocations: 8.172 kB / 1.33 GB, free: 13.27 MB / 1.029 GB Notification: Performance of sorting global known variables: time 7.469e-05/0.3399, allocations: 87.22 kB / 1.33 GB, free: 13.18 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3399, allocations: 0 / 1.33 GB, free: 13.18 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002882/0.3402, allocations: 16 kB / 1.33 GB, free: 13.16 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.0008127/0.341, allocations: 0.728 MB / 1.331 GB, free: 12.41 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002807/0.3413, allocations: 67.88 kB / 1.331 GB, free: 12.34 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.3413, allocations: 0 / 1.331 GB, free: 12.34 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001095/0.3414, allocations: 23.98 kB / 1.331 GB, free: 12.32 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002941/0.3417, allocations: 20.11 kB / 1.331 GB, free: 12.3 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001907/0.3436, allocations: 1.375 MB / 1.332 GB, free: 10.83 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.474e-05/0.3437, allocations: 75.28 kB / 1.332 GB, free: 10.74 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.378e-05/0.3437, allocations: 4 kB / 1.332 GB, free: 10.73 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.785e-05/0.3438, allocations: 15.44 kB / 1.332 GB, free: 10.72 MB / 1.029 GB Notification: Performance of SimCode: time 1.072e-06/0.3438, allocations: 0 / 1.332 GB, free: 10.72 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03797/0.3818, allocations: 2.308 MB / 1.334 GB, free: 8.547 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.23/11.61, allocations: 9.234 kB / 1.334 GB, free: 8.543 MB / 1.029 GB " [Timeout remaining time 288] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 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.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: 18.320127624087036]