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.0008485/0.0008485, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.001024/0.001024, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.8915/0.8915, allocations: 177.1 MB / 202.8 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.651/1.651, allocations: 359 MB / 0.6037 GB, free: 11.11 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-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: Performance of FrontEnd - loaded program: time 3.066e-06/3.066e-06, allocations: 0 / 0.9505 GB, free: 3.531 MB / 0.9011 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.345e-05/2.652e-05, allocations: 6.219 kB / 0.9505 GB, free: 3.523 MB / 0.9011 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001439/0.001465, allocations: 0.6653 MB / 0.9511 GB, free: 2.855 MB / 0.9011 GB Notification: Performance of NFInst.instExpressions: time 0.001201/0.002667, allocations: 1.078 MB / 0.9522 GB, free: 1.766 MB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.141e-05/0.002718, allocations: 0 / 0.9522 GB, free: 1.766 MB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 3.09e-05/0.002749, allocations: 3.938 kB / 0.9522 GB, free: 1.762 MB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 6.886e-05/0.002818, allocations: 7.938 kB / 0.9522 GB, free: 1.754 MB / 0.9011 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003141/0.003132, allocations: 47.69 kB / 0.9522 GB, free: 1.707 MB / 0.9011 GB Notification: Performance of NFFlatten.flatten: time 9.199e-05/0.003224, allocations: 47.86 kB / 0.9523 GB, free: 1.66 MB / 0.9011 GB Notification: Performance of NFFlatten.resolveConnections: time 9.687e-05/0.003321, allocations: 11.97 kB / 0.9523 GB, free: 1.648 MB / 0.9011 GB Notification: Performance of NFEvalConstants.evaluate: time 7.917e-05/0.0034, allocations: 23.92 kB / 0.9523 GB, free: 1.625 MB / 0.9011 GB Notification: Performance of NFSimplifyModel.simplify: time 4.511e-05/0.003445, allocations: 15.98 kB / 0.9523 GB, free: 1.609 MB / 0.9011 GB Notification: Performance of NFPackage.collectConstants: time 1.605e-05/0.003461, allocations: 4 kB / 0.9523 GB, free: 1.605 MB / 0.9011 GB Notification: Performance of NFFlatten.collectFunctions: time 5.99e-05/0.003521, allocations: 27.97 kB / 0.9524 GB, free: 1.578 MB / 0.9011 GB Notification: Performance of NFScalarize.scalarize: time 2.144e-05/0.003542, allocations: 11.98 kB / 0.9524 GB, free: 1.566 MB / 0.9011 GB Notification: Performance of NFVerifyModel.verify: time 2.666e-05/0.003569, allocations: 11.94 kB / 0.9524 GB, free: 1.555 MB / 0.9011 GB Notification: Performance of NFConvertDAE.convert: time 0.0001401/0.003709, allocations: 67.77 kB / 0.9525 GB, free: 1.488 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 2.715e-06/0.003712, allocations: 3.938 kB / 0.9525 GB, free: 1.484 MB / 0.9011 GB Notification: Performance of FrontEnd: time 1.944e-06/0.003714, allocations: 0 / 0.9525 GB, free: 1.484 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 3.797e-06/0.003718, allocations: 0 / 0.9525 GB, free: 1.484 MB / 0.9011 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.0004628/0.00418, allocations: 294.1 kB / 0.9527 GB, free: 1.164 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 4.43e-05/0.004225, allocations: 8.031 kB / 0.9527 GB, free: 1.156 MB / 0.9011 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.303e-05/0.004258, allocations: 42.69 kB / 0.9528 GB, free: 1.105 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.097e-05/0.004329, allocations: 4.938 kB / 0.9528 GB, free: 1.102 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.648e-05/0.004415, allocations: 113.7 kB / 0.9529 GB, free: 0.9648 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.061e-05/0.004426, allocations: 384 / 0.9529 GB, free: 0.9648 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.141e-05/0.004437, allocations: 8.375 kB / 0.9529 GB, free: 0.957 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001594/0.004597, allocations: 58.22 kB / 0.953 GB, free: 0.8945 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.275e-06/0.004605, allocations: 192 / 0.953 GB, free: 0.8945 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.969e-06/0.004615, allocations: 8.375 kB / 0.953 GB, free: 0.8867 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.013e-06/0.004622, allocations: 4.125 kB / 0.953 GB, free: 0.8828 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001016/0.004723, allocations: 47.89 kB / 0.953 GB, free: 0.8359 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003728/0.005096, allocations: 235.9 kB / 0.9532 GB, free: 0.5625 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000119/0.005215, allocations: 50.55 kB / 0.9533 GB, free: 0.5039 MB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.392e-05/0.005269, allocations: 28.95 kB / 0.9533 GB, free: 484 kB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 2.36e-05/0.005293, allocations: 7.938 kB / 0.9533 GB, free: 476 kB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001795/0.005472, allocations: 79.31 kB / 0.9534 GB, free: 384 kB / 0.9011 GB Notification: Performance of pre-optimization done (n=6): time 1.052e-06/0.005473, allocations: 4 kB / 0.9534 GB, free: 380 kB / 0.9011 GB Notification: Performance of matching and sorting (n=6): time 0.0002662/0.00574, allocations: 121.6 kB / 0.9535 GB, free: 252 kB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.559e-05/0.005775, allocations: 51.41 kB / 0.9536 GB, free: 188 kB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.693e-05/0.005842, allocations: 105.8 kB / 0.9537 GB, free: 72 kB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 1.207e-05/0.005854, allocations: 29.7 kB / 0.9537 GB, free: 36 kB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 4.784e-05/0.005902, allocations: 88.12 kB / 0.9538 GB, free: 15.95 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 1.642e-05/0.005918, allocations: 19.97 kB / 0.9538 GB, free: 15.93 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.37e-05/0.005952, allocations: 21.72 kB / 0.9538 GB, free: 15.9 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 7.595e-05/0.006028, allocations: 322.8 kB / 0.9541 GB, free: 15.57 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.39e-05/0.006082, allocations: 23.98 kB / 0.9542 GB, free: 15.55 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.923e-05/0.006141, allocations: 51.34 kB / 0.9542 GB, free: 15.49 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001093/0.006251, allocations: 79.33 kB / 0.9543 GB, free: 15.4 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.006253, allocations: 0 / 0.9543 GB, free: 15.4 MB / 0.9167 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001454/0.006398, allocations: 109.5 kB / 0.9544 GB, free: 15.29 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.607e-05/0.006414, allocations: 14.28 kB / 0.9544 GB, free: 15.27 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.006419, allocations: 0 / 0.9544 GB, free: 15.27 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.259e-05/0.006432, allocations: 0 / 0.9544 GB, free: 15.27 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.2e-05/0.006504, allocations: 19.98 kB / 0.9544 GB, free: 15.25 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.042e-06/0.00651, allocations: 0 / 0.9544 GB, free: 15.25 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.038e-05/0.00654, allocations: 4.094 kB / 0.9544 GB, free: 15.25 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.578e-06/0.00655, allocations: 8 kB / 0.9544 GB, free: 15.24 MB / 0.9167 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 6.579e-05/0.006615, allocations: 121.8 kB / 0.9545 GB, free: 15.11 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.044e-05/0.006626, allocations: 11.89 kB / 0.9546 GB, free: 15.1 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001715/0.006797, allocations: 102 kB / 0.9547 GB, free: 14.99 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.367e-06/0.006801, allocations: 4 kB / 0.9547 GB, free: 14.99 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.006805, allocations: 0 / 0.9547 GB, free: 14.99 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.387e-06/0.006808, allocations: 0 / 0.9547 GB, free: 14.99 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002723/0.007081, allocations: 326 kB / 0.955 GB, free: 14.62 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.504e-06/0.007083, allocations: 4 kB / 0.955 GB, free: 14.62 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.339e-05/0.007117, allocations: 12.05 kB / 0.955 GB, free: 14.61 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.007119, allocations: 0 / 0.955 GB, free: 14.61 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.794e-06/0.007126, allocations: 4 kB / 0.955 GB, free: 14.6 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.007128, allocations: 0 / 0.955 GB, free: 14.6 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.007129, allocations: 0 / 0.955 GB, free: 14.6 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001517/0.00728, allocations: 195.3 kB / 0.9552 GB, free: 14.39 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 8.195e-06/0.007289, allocations: 11.98 kB / 0.9552 GB, free: 14.38 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.043e-05/0.007299, allocations: 0 / 0.9552 GB, free: 14.38 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.674e-05/0.007346, allocations: 7.984 kB / 0.9552 GB, free: 14.38 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.111e-05/0.007377, allocations: 4 kB / 0.9552 GB, free: 14.37 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.419e-05/0.007391, allocations: 8 kB / 0.9552 GB, free: 14.36 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 3.003e-05/0.007421, allocations: 83.27 kB / 0.9553 GB, free: 14.28 MB / 0.9167 GB Notification: Performance of sort global known variables: time 5e-08/0.007421, allocations: 0 / 0.9553 GB, free: 14.28 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0001648/0.007586, allocations: 12 kB / 0.9553 GB, free: 14.27 MB / 0.9167 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.0004371/0.008023, allocations: 0.7357 MB / 0.956 GB, free: 13.51 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0001543/0.008177, allocations: 55.95 kB / 0.9561 GB, free: 13.45 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.008179, allocations: 0 / 0.9561 GB, free: 13.45 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 5.799e-05/0.008237, allocations: 35.91 kB / 0.9561 GB, free: 13.42 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001963/0.008433, allocations: 4 kB / 0.9561 GB, free: 13.41 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001069/0.009502, allocations: 1.387 MB / 0.9575 GB, free: 11.93 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.335e-05/0.009556, allocations: 71.27 kB / 0.9575 GB, free: 11.84 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 3.786e-05/0.009594, allocations: 4 kB / 0.9575 GB, free: 11.83 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.637e-05/0.00965, allocations: 20.44 kB / 0.9576 GB, free: 11.81 MB / 0.9167 GB Notification: Performance of SimCode: time 1.743e-06/0.009652, allocations: 4 kB / 0.9576 GB, free: 11.81 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01853/0.02819, allocations: 2.46 MB / 0.96 GB, free: 9.496 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.865/6.893, allocations: 10.05 kB / 0.96 GB, free: 9.488 MB / 0.9167 GB " [Timeout remaining time 293] (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/jenkins/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: 10.990107348188758]