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.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.002053/0.002053, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.002211/0.002211, allocations: 219 kB / 22.26 MB, free: 5.082 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.562/1.562, allocations: 230.6 MB / 256 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.372/3.372, allocations: 0.505 GB / 0.8101 GB, free: 22.02 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler,fileNamePrefix="Buildings_latest_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.002009/0.002009, allocations: 72.28 kB / 1.177 GB, free: 17.05 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3337/0.3357, allocations: 180.2 MB / 1.353 GB, free: 8.449 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.00227/0.338, allocations: 0.6717 MB / 1.354 GB, free: 7.781 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.00173/0.3397, allocations: 1.101 MB / 1.355 GB, free: 6.668 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.653e-05/0.3398, allocations: 0 / 1.355 GB, free: 6.668 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 3.532e-05/0.3398, allocations: 7.938 kB / 1.355 GB, free: 6.66 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 7.03e-05/0.3399, allocations: 7.938 kB / 1.355 GB, free: 6.652 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003328/0.3402, allocations: 43.83 kB / 1.355 GB, free: 6.609 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0001233/0.3403, allocations: 47.91 kB / 1.355 GB, free: 6.562 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001043/0.3404, allocations: 4 kB / 1.355 GB, free: 6.559 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 9.532e-05/0.3405, allocations: 27.91 kB / 1.355 GB, free: 6.531 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 6.811e-05/0.3406, allocations: 23.91 kB / 1.355 GB, free: 6.508 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.715e-05/0.3406, allocations: 4 kB / 1.355 GB, free: 6.504 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 9.106e-05/0.3407, allocations: 19.98 kB / 1.355 GB, free: 6.484 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 2.6e-05/0.3407, allocations: 11.94 kB / 1.355 GB, free: 6.473 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 5.7e-05/0.3408, allocations: 31.84 kB / 1.355 GB, free: 6.441 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0001817/0.341, allocations: 52.08 kB / 1.355 GB, free: 6.391 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 7.274e-06/0.341, allocations: 4 kB / 1.355 GB, free: 6.387 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.633e-06/0.341, allocations: 0 / 1.355 GB, free: 6.387 MB / 1.045 GB Notification: Performance of Transformations before backend: time 7.003e-06/0.341, allocations: 0 / 1.355 GB, free: 6.387 MB / 1.045 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.0007088/0.3417, allocations: 294.1 kB / 1.355 GB, free: 6.066 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.603e-05/0.3417, allocations: 12.03 kB / 1.355 GB, free: 6.055 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.461e-05/0.3418, allocations: 38.73 kB / 1.355 GB, free: 6.008 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.773e-05/0.3419, allocations: 4.938 kB / 1.355 GB, free: 6.004 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001256/0.342, allocations: 118.4 kB / 1.355 GB, free: 5.863 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.372e-05/0.342, allocations: 8.312 kB / 1.355 GB, free: 5.855 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.514e-05/0.342, allocations: 384 / 1.355 GB, free: 5.855 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002146/0.3422, allocations: 74.16 kB / 1.355 GB, free: 5.777 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/0.3422, allocations: 3.938 kB / 1.355 GB, free: 5.773 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.057e-06/0.3422, allocations: 0 / 1.355 GB, free: 5.773 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.3423, allocations: 0 / 1.355 GB, free: 5.773 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001907/0.3424, allocations: 51.94 kB / 1.355 GB, free: 5.723 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004908/0.3429, allocations: 239.9 kB / 1.356 GB, free: 5.445 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001724/0.3431, allocations: 58.48 kB / 1.356 GB, free: 5.379 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000103/0.3432, allocations: 28.95 kB / 1.356 GB, free: 5.348 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.13e-05/0.3432, allocations: 4 kB / 1.356 GB, free: 5.344 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002332/0.3435, allocations: 71.38 kB / 1.356 GB, free: 5.262 MB / 1.045 GB Notification: Performance of pre-optimization done (n=6): time 1.503e-06/0.3435, allocations: 0 / 1.356 GB, free: 5.262 MB / 1.045 GB Notification: Performance of matching and sorting (n=6): time 0.0004168/0.3439, allocations: 121.6 kB / 1.356 GB, free: 5.137 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.44e-05/0.3439, allocations: 59.34 kB / 1.356 GB, free: 5.066 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000108/0.344, allocations: 101.9 kB / 1.356 GB, free: 4.957 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.448e-05/0.3441, allocations: 33.69 kB / 1.356 GB, free: 4.918 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 5.209e-05/0.3441, allocations: 80.22 kB / 1.356 GB, free: 4.836 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.98e-05/0.3442, allocations: 19.89 kB / 1.356 GB, free: 4.816 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.603e-05/0.3442, allocations: 25.7 kB / 1.356 GB, free: 4.785 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.000171/0.3444, allocations: 314.8 kB / 1.357 GB, free: 4.469 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001039/0.3445, allocations: 27.97 kB / 1.357 GB, free: 4.441 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001144/0.3446, allocations: 47.42 kB / 1.357 GB, free: 4.383 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002132/0.3448, allocations: 83.33 kB / 1.357 GB, free: 4.289 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.3448, allocations: 0 / 1.357 GB, free: 4.289 MB / 1.045 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002874/0.3451, allocations: 105.5 kB / 1.357 GB, free: 4.18 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.581e-05/0.3451, allocations: 4 kB / 1.357 GB, free: 4.176 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.3451, allocations: 0 / 1.357 GB, free: 4.176 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.864e-05/0.3451, allocations: 4 kB / 1.357 GB, free: 4.172 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001127/0.3453, allocations: 15.92 kB / 1.357 GB, free: 4.156 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.101e-06/0.3453, allocations: 4.094 kB / 1.357 GB, free: 4.152 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.986e-05/0.3453, allocations: 19.92 kB / 1.357 GB, free: 4.133 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.22e-05/0.3454, allocations: 0 / 1.357 GB, free: 4.133 MB / 1.045 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.0001132/0.3455, allocations: 125.7 kB / 1.357 GB, free: 4 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.811e-05/0.3455, allocations: 11.94 kB / 1.357 GB, free: 3.988 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002943/0.3458, allocations: 106.5 kB / 1.357 GB, free: 3.879 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.165e-06/0.3458, allocations: 3.938 kB / 1.357 GB, free: 3.875 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.3458, allocations: 4 kB / 1.357 GB, free: 3.871 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.985e-06/0.3458, allocations: 64 / 1.357 GB, free: 3.871 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004539/0.3462, allocations: 321.6 kB / 1.357 GB, free: 3.508 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.3462, allocations: 4 kB / 1.357 GB, free: 3.504 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.197e-05/0.3463, allocations: 15.86 kB / 1.357 GB, free: 3.488 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.3463, allocations: 0 / 1.357 GB, free: 3.488 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.779e-06/0.3463, allocations: 4 kB / 1.357 GB, free: 3.484 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.3463, allocations: 0 / 1.357 GB, free: 3.484 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.3463, allocations: 4 kB / 1.357 GB, free: 3.48 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003037/0.3466, allocations: 191.4 kB / 1.358 GB, free: 3.277 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.139e-05/0.3466, allocations: 7.953 kB / 1.358 GB, free: 3.27 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.567e-05/0.3466, allocations: 0 / 1.358 GB, free: 3.27 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.867e-05/0.3467, allocations: 7.984 kB / 1.358 GB, free: 3.262 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.303e-05/0.3468, allocations: 19.92 kB / 1.358 GB, free: 3.242 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.113e-05/0.3468, allocations: 0 / 1.358 GB, free: 3.242 MB / 1.045 GB Notification: Performance of sorting global known variables: time 5.448e-05/0.3469, allocations: 79.28 kB / 1.358 GB, free: 3.164 MB / 1.045 GB Notification: Performance of sort global known variables: time 7e-08/0.3469, allocations: 0 / 1.358 GB, free: 3.164 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002457/0.3471, allocations: 16 kB / 1.358 GB, free: 3.148 MB / 1.045 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.000633/0.3477, allocations: 0.7357 MB / 1.358 GB, free: 2.387 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0002543/0.348, allocations: 59.89 kB / 1.358 GB, free: 2.328 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.348, allocations: 4 kB / 1.358 GB, free: 2.324 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001064/0.3481, allocations: 24.36 kB / 1.359 GB, free: 2.301 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002596/0.3484, allocations: 16.23 kB / 1.359 GB, free: 2.285 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001699/0.3501, allocations: 1.387 MB / 1.36 GB, free: 0.8008 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003179/0.3504, allocations: 0.6807 MB / 1.361 GB, free: 96 kB / 1.045 GB Notification: Performance of simCode: alias equations: time 2.878e-05/0.3504, allocations: 4 kB / 1.361 GB, free: 92 kB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.669e-05/0.3504, allocations: 15.44 kB / 1.361 GB, free: 76 kB / 1.045 GB Notification: Performance of SimCode: time 4.21e-07/0.3504, allocations: 0 / 1.361 GB, free: 76 kB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02863/0.3791, allocations: 1.878 MB / 1.362 GB, free: 14.33 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.29/11.67, allocations: 10.66 kB / 1.362 GB, free: 14.32 MB / 1.061 GB " [Timeout remaining time 288] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 840.0] 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 [Calling sys.exit(0), Time elapsed: 18.682865580078214]