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.001781/0.001781, allocations: 111 kB / 16.46 MB, free: 6.453 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.002172/0.002172, allocations: 213.7 kB / 19.43 MB, free: 3.625 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.47/1.47, allocations: 230.6 MB / 252.8 MB, free: 8.969 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.143/3.143, allocations: 0.49 GB / 0.7916 GB, free: 33.46 MB / 0.6231 GB " [Timeout remaining time 177] 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.002057/0.002057, allocations: 73.53 kB / 1.149 GB, free: 26.36 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3173/0.3194, allocations: 176.1 MB / 1.321 GB, free: 3.344 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.00209/0.3215, allocations: 0.6818 MB / 1.321 GB, free: 2.668 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001631/0.3231, allocations: 1.093 MB / 1.323 GB, free: 1.562 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.325e-05/0.3232, allocations: 0 / 1.323 GB, free: 1.562 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 2.998e-05/0.3232, allocations: 7.938 kB / 1.323 GB, free: 1.555 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 7.92e-05/0.3233, allocations: 15.91 kB / 1.323 GB, free: 1.539 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003049/0.3236, allocations: 43.91 kB / 1.323 GB, free: 1.496 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001115/0.3237, allocations: 43.84 kB / 1.323 GB, free: 1.453 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 9.359e-05/0.3238, allocations: 11.98 kB / 1.323 GB, free: 1.441 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 7.83e-05/0.3239, allocations: 19.92 kB / 1.323 GB, free: 1.422 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 6.519e-05/0.3239, allocations: 19.92 kB / 1.323 GB, free: 1.402 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.833e-05/0.3239, allocations: 4 kB / 1.323 GB, free: 1.398 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 8.225e-05/0.324, allocations: 19.98 kB / 1.323 GB, free: 1.379 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 3.679e-05/0.3241, allocations: 19.91 kB / 1.323 GB, free: 1.359 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 4.114e-05/0.3241, allocations: 19.94 kB / 1.323 GB, free: 1.34 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001838/0.3243, allocations: 67.98 kB / 1.323 GB, free: 1.273 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.3243, allocations: 0 / 1.323 GB, free: 1.273 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.623e-06/0.3243, allocations: 0 / 1.323 GB, free: 1.273 MB / 1.014 GB Notification: Performance of Transformations before backend: time 9.889e-06/0.3243, allocations: 0 / 1.323 GB, free: 1.273 MB / 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.000699/0.325, allocations: 367.2 kB / 1.323 GB, free: 0.8633 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.44e-05/0.3251, allocations: 11.98 kB / 1.323 GB, free: 0.8516 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.151e-05/0.3251, allocations: 38.75 kB / 1.323 GB, free: 0.8047 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.429e-05/0.3252, allocations: 12.88 kB / 1.323 GB, free: 0.793 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001408/0.3253, allocations: 160.4 kB / 1.323 GB, free: 0.5977 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.892e-05/0.3253, allocations: 8.375 kB / 1.323 GB, free: 0.5898 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.608e-05/0.3254, allocations: 384 / 1.323 GB, free: 0.5898 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002295/0.3256, allocations: 70.16 kB / 1.323 GB, free: 0.5156 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.241e-05/0.3256, allocations: 3.938 kB / 1.323 GB, free: 0.5117 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.025e-05/0.3256, allocations: 0 / 1.323 GB, free: 0.5117 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.458e-06/0.3256, allocations: 0 / 1.323 GB, free: 0.5117 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002018/0.3258, allocations: 47.94 kB / 1.323 GB, free: 476 kB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005513/0.3264, allocations: 280.7 kB / 1.324 GB, free: 144 kB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001948/0.3266, allocations: 50.55 kB / 1.324 GB, free: 84 kB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000115/0.3267, allocations: 32.89 kB / 1.324 GB, free: 48 kB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 3.201e-05/0.3267, allocations: 12 kB / 1.324 GB, free: 36 kB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002676/0.327, allocations: 71.38 kB / 1.324 GB, free: 15.95 MB / 1.029 GB Notification: Performance of pre-optimization done (n=6): time 1.573e-06/0.327, allocations: 0 / 1.324 GB, free: 15.95 MB / 1.029 GB Notification: Performance of matching and sorting (n=6): time 0.0004643/0.3274, allocations: 121.6 kB / 1.324 GB, free: 15.83 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.994e-05/0.3275, allocations: 59.41 kB / 1.324 GB, free: 15.76 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001073/0.3276, allocations: 113.7 kB / 1.324 GB, free: 15.64 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.09e-05/0.3276, allocations: 25.7 kB / 1.324 GB, free: 15.61 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 5.783e-05/0.3277, allocations: 84.14 kB / 1.324 GB, free: 15.52 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.321e-05/0.3277, allocations: 11.91 kB / 1.324 GB, free: 15.51 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.884e-05/0.3278, allocations: 29.7 kB / 1.324 GB, free: 15.47 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001792/0.328, allocations: 318.8 kB / 1.325 GB, free: 15.15 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001104/0.3281, allocations: 23.97 kB / 1.325 GB, free: 15.13 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000129/0.3282, allocations: 51.42 kB / 1.325 GB, free: 15.07 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002368/0.3284, allocations: 83.33 kB / 1.325 GB, free: 14.97 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.3284, allocations: 0 / 1.325 GB, free: 14.97 MB / 1.029 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002905/0.3287, allocations: 101.5 kB / 1.325 GB, free: 14.87 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.788e-05/0.3288, allocations: 10.66 kB / 1.325 GB, free: 14.86 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.3288, allocations: 0 / 1.325 GB, free: 14.86 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.365e-05/0.3288, allocations: 0 / 1.325 GB, free: 14.86 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001214/0.3289, allocations: 19.92 kB / 1.325 GB, free: 14.84 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.242e-06/0.3289, allocations: 256 / 1.325 GB, free: 14.84 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.572e-05/0.329, allocations: 19.86 kB / 1.325 GB, free: 14.82 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.514e-05/0.329, allocations: 11.98 kB / 1.325 GB, free: 14.81 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.0001072/0.3291, allocations: 113.8 kB / 1.325 GB, free: 14.69 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.741e-05/0.3291, allocations: 8 kB / 1.325 GB, free: 14.68 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003063/0.3294, allocations: 97.95 kB / 1.325 GB, free: 14.57 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.3294, allocations: 4 kB / 1.325 GB, free: 14.57 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.3294, allocations: 4 kB / 1.325 GB, free: 14.57 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.3294, allocations: 0 / 1.325 GB, free: 14.57 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005279/0.33, allocations: 355 kB / 1.326 GB, free: 14.16 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.33, allocations: 0 / 1.326 GB, free: 14.16 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.587e-05/0.33, allocations: 11.98 kB / 1.326 GB, free: 14.15 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.33, allocations: 64 / 1.326 GB, free: 14.15 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.083e-05/0.33, allocations: 4 kB / 1.326 GB, free: 14.15 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/0.33, allocations: 3.938 kB / 1.326 GB, free: 14.14 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.33, allocations: 4 kB / 1.326 GB, free: 14.14 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003368/0.3304, allocations: 195.4 kB / 1.326 GB, free: 13.93 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 5.914e-05/0.3304, allocations: 81.06 kB / 1.326 GB, free: 13.84 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.5e-05/0.3305, allocations: 0 / 1.326 GB, free: 13.84 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001077/0.3306, allocations: 11.98 kB / 1.326 GB, free: 13.82 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.744e-05/0.3306, allocations: 11.92 kB / 1.326 GB, free: 13.81 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.539e-05/0.3306, allocations: 4 kB / 1.326 GB, free: 13.81 MB / 1.029 GB Notification: Performance of sorting global known variables: time 5.544e-05/0.3307, allocations: 83.28 kB / 1.326 GB, free: 13.73 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3307, allocations: 0 / 1.326 GB, free: 13.73 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002706/0.331, allocations: 16 kB / 1.326 GB, free: 13.71 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.0007655/0.3317, allocations: 0.7358 MB / 1.327 GB, free: 12.95 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002924/0.332, allocations: 63.92 kB / 1.327 GB, free: 12.89 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.332, allocations: 0 / 1.327 GB, free: 12.89 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.000132/0.3321, allocations: 27.98 kB / 1.327 GB, free: 12.86 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002835/0.3324, allocations: 17.77 kB / 1.327 GB, free: 12.84 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001866/0.3343, allocations: 1.383 MB / 1.328 GB, free: 11.36 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003608/0.3347, allocations: 0.6807 MB / 1.329 GB, free: 10.65 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.485e-05/0.3347, allocations: 4 kB / 1.329 GB, free: 10.65 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.704e-05/0.3347, allocations: 15.44 kB / 1.329 GB, free: 10.63 MB / 1.029 GB Notification: Performance of SimCode: time 6.92e-07/0.3347, allocations: 0 / 1.329 GB, free: 10.63 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02611/0.3608, allocations: 1.769 MB / 1.331 GB, free: 8.961 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.149/8.51, allocations: 13.55 kB / 1.331 GB, free: 8.953 MB / 1.029 GB " [Timeout remaining time 291] (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: 15.076209507882595]