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.001319/0.001319, 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.00151/0.00151, 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.491/1.491, allocations: 230.6 MB / 252.8 MB, free: 8.973 MB / 206.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.756/2.756, allocations: 476.7 MB / 0.7672 GB, free: 5.219 MB / 0.6231 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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler,fileNamePrefix="Buildings_11_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.002336/0.002336, allocations: 71.89 kB / 1.112 GB, free: 1.539 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.862/0.8644, allocations: 169.9 MB / 1.278 GB, free: 13.39 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.002082/0.8665, allocations: 0.6745 MB / 1.279 GB, free: 12.73 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001699/0.8682, allocations: 1.098 MB / 1.28 GB, free: 11.62 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.138e-05/0.8682, allocations: 4 kB / 1.28 GB, free: 11.61 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.41e-05/0.8682, allocations: 3.938 kB / 1.28 GB, free: 11.61 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 6.697e-05/0.8683, allocations: 3.938 kB / 1.28 GB, free: 11.61 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003227/0.8686, allocations: 43.89 kB / 1.28 GB, free: 11.56 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001124/0.8688, allocations: 47.84 kB / 1.28 GB, free: 11.52 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 9.2e-05/0.8688, allocations: 4 kB / 1.28 GB, free: 11.51 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 7.474e-05/0.8689, allocations: 23.92 kB / 1.28 GB, free: 11.49 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 6.478e-05/0.869, allocations: 31.89 kB / 1.28 GB, free: 11.46 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.558e-05/0.869, allocations: 4 kB / 1.28 GB, free: 11.45 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 7.631e-05/0.8691, allocations: 19.98 kB / 1.28 GB, free: 11.43 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.468e-05/0.8691, allocations: 7.938 kB / 1.28 GB, free: 11.43 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 4.891e-05/0.8691, allocations: 23.92 kB / 1.28 GB, free: 11.4 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001616/0.8693, allocations: 61.55 kB / 1.28 GB, free: 11.34 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.8693, allocations: 4 kB / 1.28 GB, free: 11.34 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.503e-06/0.8693, allocations: 0 / 1.28 GB, free: 11.34 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 9.688e-06/0.8693, allocations: 0 / 1.28 GB, free: 11.34 MB / 0.9825 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.0007068/0.87, allocations: 371.2 kB / 1.281 GB, free: 10.93 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.408e-05/0.8701, allocations: 8.031 kB / 1.281 GB, free: 10.92 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.587e-05/0.8701, allocations: 38.75 kB / 1.281 GB, free: 10.87 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.424e-05/0.8702, allocations: 8.891 kB / 1.281 GB, free: 10.86 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000153/0.8704, allocations: 160.4 kB / 1.281 GB, free: 10.67 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.673e-05/0.8704, allocations: 4.359 kB / 1.281 GB, free: 10.66 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.352e-05/0.8704, allocations: 4.375 kB / 1.281 GB, free: 10.66 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002226/0.8706, allocations: 62.22 kB / 1.281 GB, free: 10.59 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/0.8706, allocations: 11.94 kB / 1.281 GB, free: 10.58 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.075e-05/0.8706, allocations: 0 / 1.281 GB, free: 10.58 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.261e-06/0.8707, allocations: 3.938 kB / 1.281 GB, free: 10.58 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002093/0.8709, allocations: 47.89 kB / 1.281 GB, free: 10.53 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005415/0.8714, allocations: 276.8 kB / 1.281 GB, free: 10.21 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001805/0.8716, allocations: 54.55 kB / 1.281 GB, free: 10.15 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001018/0.8717, allocations: 28.95 kB / 1.281 GB, free: 10.12 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.792e-05/0.8717, allocations: 4 kB / 1.281 GB, free: 10.11 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002141/0.8719, allocations: 75.31 kB / 1.281 GB, free: 10.03 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=6): time 1.233e-06/0.8719, allocations: 0 / 1.281 GB, free: 10.03 MB / 0.9825 GB Notification: Performance of matching and sorting (n=6): time 0.000459/0.8724, allocations: 117.6 kB / 1.281 GB, free: 9.906 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.548e-05/0.8724, allocations: 55.41 kB / 1.282 GB, free: 9.84 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001121/0.8726, allocations: 118.1 kB / 1.282 GB, free: 9.715 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.806e-05/0.8726, allocations: 25.7 kB / 1.282 GB, free: 9.684 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.396e-05/0.8726, allocations: 88.03 kB / 1.282 GB, free: 9.594 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.795e-05/0.8727, allocations: 19.89 kB / 1.282 GB, free: 9.574 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.401e-05/0.8727, allocations: 21.66 kB / 1.282 GB, free: 9.547 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.00016/0.8729, allocations: 330.8 kB / 1.282 GB, free: 9.215 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.902e-05/0.873, allocations: 19.98 kB / 1.282 GB, free: 9.195 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000121/0.8731, allocations: 47.48 kB / 1.282 GB, free: 9.137 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002472/0.8733, allocations: 83.33 kB / 1.282 GB, free: 9.043 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.8733, allocations: 0 / 1.282 GB, free: 9.043 MB / 0.9825 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002726/0.8736, allocations: 97.59 kB / 1.282 GB, free: 8.941 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.551e-05/0.8736, allocations: 8 kB / 1.282 GB, free: 8.934 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/0.8736, allocations: 8.078 kB / 1.282 GB, free: 8.926 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.253e-05/0.8736, allocations: 0 / 1.282 GB, free: 8.926 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001121/0.8738, allocations: 19.92 kB / 1.282 GB, free: 8.906 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.115e-06/0.8738, allocations: 3.938 kB / 1.282 GB, free: 8.902 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.796e-05/0.8738, allocations: 7.953 kB / 1.282 GB, free: 8.895 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.193e-05/0.8738, allocations: 4 kB / 1.282 GB, free: 8.891 MB / 0.9825 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.000125/0.874, allocations: 121.8 kB / 1.283 GB, free: 8.762 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.296e-05/0.874, allocations: 4 kB / 1.283 GB, free: 8.758 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003056/0.8743, allocations: 106 kB / 1.283 GB, free: 8.641 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-06/0.8743, allocations: 0 / 1.283 GB, free: 8.641 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.8743, allocations: 4 kB / 1.283 GB, free: 8.637 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.8743, allocations: 0 / 1.283 GB, free: 8.637 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005316/0.8748, allocations: 354.4 kB / 1.283 GB, free: 8.234 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.003e-06/0.8748, allocations: 0 / 1.283 GB, free: 8.234 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.556e-05/0.8749, allocations: 15.98 kB / 1.283 GB, free: 8.219 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.8749, allocations: 0 / 1.283 GB, free: 8.219 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.937e-06/0.8749, allocations: 0 / 1.283 GB, free: 8.219 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.8749, allocations: 0 / 1.283 GB, free: 8.219 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.8749, allocations: 384 / 1.283 GB, free: 8.219 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003366/0.8752, allocations: 203.4 kB / 1.283 GB, free: 8.004 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.653e-05/0.8753, allocations: 85 kB / 1.283 GB, free: 7.902 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.462e-05/0.8753, allocations: 7.938 kB / 1.283 GB, free: 7.895 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001101/0.8754, allocations: 19.98 kB / 1.283 GB, free: 7.875 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.851e-05/0.8755, allocations: 3.938 kB / 1.283 GB, free: 7.871 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.628e-05/0.8755, allocations: 4 kB / 1.283 GB, free: 7.867 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.258e-05/0.8755, allocations: 87.27 kB / 1.283 GB, free: 7.781 MB / 0.9825 GB Notification: Performance of sort global known variables: time 6e-08/0.8755, allocations: 0 / 1.283 GB, free: 7.781 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002491/0.8758, allocations: 12 kB / 1.283 GB, free: 7.77 MB / 0.9825 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.000768/0.8766, allocations: 0.7247 MB / 1.284 GB, free: 7.02 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002699/0.8768, allocations: 63.89 kB / 1.284 GB, free: 6.957 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.8768, allocations: 0 / 1.284 GB, free: 6.957 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001264/0.877, allocations: 32.16 kB / 1.284 GB, free: 6.926 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000265/0.8772, allocations: 14.59 kB / 1.284 GB, free: 6.914 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001865/0.8791, allocations: 1.386 MB / 1.286 GB, free: 5.43 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003379/0.8794, allocations: 0.6808 MB / 1.286 GB, free: 4.723 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.232e-05/0.8795, allocations: 7.984 kB / 1.286 GB, free: 4.715 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.903e-05/0.8795, allocations: 19.38 kB / 1.286 GB, free: 4.699 MB / 0.9825 GB Notification: Performance of SimCode: time 5.21e-07/0.8795, allocations: 0 / 1.286 GB, free: 4.699 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02747/0.907, allocations: 1.774 MB / 1.288 GB, free: 3.023 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.32/9.227, allocations: 5.234 kB / 1.288 GB, free: 3.02 MB / 0.9825 GB " [Timeout remaining time 291] (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 & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.csv","/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] "Error: Could not read variable sampler1.u in file Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.csv. Warning: Get data of variable sampler1.u from file Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.307252855040133]