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.0008795/0.0008795, 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.00119/0.00119, allocations: 170.3 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.9119/0.9119, allocations: 177.1 MB / 202.8 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.76/1.76, allocations: 377.8 MB / 0.6221 GB, free: 8.691 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-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: Performance of FrontEnd - loaded program: time 2.976e-06/2.976e-06, allocations: 0 / 0.9809 GB, free: 2.648 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.029e-05/2.326e-05, allocations: 6.281 kB / 0.9809 GB, free: 2.641 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.00132/0.001344, allocations: 0.6739 MB / 0.9816 GB, free: 1.969 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.001038/0.002381, allocations: 1.085 MB / 0.9827 GB, free: 0.8711 MB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.029e-05/0.002422, allocations: 4 kB / 0.9827 GB, free: 0.8672 MB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 2.312e-05/0.002445, allocations: 7.938 kB / 0.9827 GB, free: 0.8594 MB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 4.811e-05/0.002493, allocations: 3.938 kB / 0.9827 GB, free: 0.8555 MB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002391/0.002732, allocations: 43.77 kB / 0.9827 GB, free: 0.8125 MB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 9.47e-05/0.002827, allocations: 51.84 kB / 0.9828 GB, free: 0.7617 MB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 7.696e-05/0.002904, allocations: 0 / 0.9828 GB, free: 0.7617 MB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 7.535e-05/0.002979, allocations: 39.89 kB / 0.9828 GB, free: 0.7227 MB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 3.684e-05/0.003016, allocations: 7.984 kB / 0.9828 GB, free: 0.7148 MB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 1.333e-05/0.003029, allocations: 4 kB / 0.9828 GB, free: 0.7109 MB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 5.405e-05/0.003083, allocations: 23.98 kB / 0.9828 GB, free: 0.6875 MB / 0.9323 GB Notification: Performance of NFScalarize.scalarize: time 2.023e-05/0.003103, allocations: 11.97 kB / 0.9828 GB, free: 0.6758 MB / 0.9323 GB Notification: Performance of NFVerifyModel.verify: time 2.525e-05/0.003129, allocations: 15.94 kB / 0.9829 GB, free: 0.6602 MB / 0.9323 GB Notification: Performance of NFConvertDAE.convert: time 0.0001167/0.003245, allocations: 67.83 kB / 0.9829 GB, free: 0.5938 MB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 2.054e-06/0.003247, allocations: 3.938 kB / 0.9829 GB, free: 0.5898 MB / 0.9323 GB Notification: Performance of FrontEnd: time 8.21e-07/0.003248, allocations: 0 / 0.9829 GB, free: 0.5898 MB / 0.9323 GB Notification: Performance of Transformations before backend: time 3.857e-06/0.003252, allocations: 0 / 0.9829 GB, free: 0.5898 MB / 0.9323 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.0003706/0.003623, allocations: 290.1 kB / 0.9832 GB, free: 280 kB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 3.869e-05/0.003661, allocations: 12.03 kB / 0.9832 GB, free: 268 kB / 0.9323 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.473e-05/0.003686, allocations: 34.73 kB / 0.9833 GB, free: 224 kB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.528e-05/0.003741, allocations: 8.938 kB / 0.9833 GB, free: 216 kB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.968e-05/0.003811, allocations: 113.7 kB / 0.9834 GB, free: 76 kB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.027e-05/0.003821, allocations: 4.375 kB / 0.9834 GB, free: 72 kB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.436e-06/0.00383, allocations: 4.375 kB / 0.9834 GB, free: 68 kB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001514/0.003981, allocations: 66.2 kB / 0.9834 GB, free: 16 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-06/0.00399, allocations: 192 / 0.9834 GB, free: 16 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.607e-06/0.003998, allocations: 384 / 0.9834 GB, free: 16 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.161e-06/0.004005, allocations: 4.125 kB / 0.9834 GB, free: 15.99 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001015/0.004106, allocations: 51.89 kB / 0.9835 GB, free: 15.94 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003006/0.004407, allocations: 232 kB / 0.9837 GB, free: 15.67 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001018/0.004508, allocations: 54.53 kB / 0.9838 GB, free: 15.61 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.804e-05/0.004556, allocations: 28.91 kB / 0.9838 GB, free: 15.58 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.788e-05/0.004574, allocations: 7.922 kB / 0.9838 GB, free: 15.57 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001304/0.004705, allocations: 75.33 kB / 0.9839 GB, free: 15.48 MB / 0.948 GB Notification: Performance of pre-optimization done (n=6): time 8.92e-07/0.004706, allocations: 0 / 0.9839 GB, free: 15.48 MB / 0.948 GB Notification: Performance of matching and sorting (n=6): time 0.0002476/0.004953, allocations: 121.6 kB / 0.984 GB, free: 15.36 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.531e-05/0.004989, allocations: 59.41 kB / 0.984 GB, free: 15.29 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.996e-05/0.005049, allocations: 109.8 kB / 0.9842 GB, free: 15.17 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.246e-05/0.005061, allocations: 25.7 kB / 0.9842 GB, free: 15.14 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 3.196e-05/0.005093, allocations: 80.14 kB / 0.9843 GB, free: 15.06 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 1.833e-05/0.005111, allocations: 19.89 kB / 0.9843 GB, free: 15.04 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.038e-05/0.005142, allocations: 17.72 kB / 0.9843 GB, free: 15.02 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 7.501e-05/0.005217, allocations: 322.8 kB / 0.9846 GB, free: 14.69 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.792e-05/0.005265, allocations: 23.98 kB / 0.9846 GB, free: 14.67 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.836e-05/0.005323, allocations: 51.44 kB / 0.9847 GB, free: 14.61 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001069/0.00543, allocations: 75.39 kB / 0.9847 GB, free: 14.52 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.005432, allocations: 0 / 0.9847 GB, free: 14.52 MB / 0.948 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001441/0.005577, allocations: 117.9 kB / 0.9849 GB, free: 14.4 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.319e-05/0.00559, allocations: 11.92 kB / 0.9849 GB, free: 14.39 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.005596, allocations: 0 / 0.9849 GB, free: 14.39 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.294e-05/0.005609, allocations: 4 kB / 0.9849 GB, free: 14.38 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.307e-05/0.005672, allocations: 11.98 kB / 0.9849 GB, free: 14.37 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.242e-06/0.005678, allocations: 4 kB / 0.9849 GB, free: 14.37 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.337e-05/0.005711, allocations: 11.94 kB / 0.9849 GB, free: 14.36 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.125e-06/0.005719, allocations: 4 kB / 0.9849 GB, free: 14.35 MB / 0.948 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 7.423e-05/0.005794, allocations: 125.9 kB / 0.985 GB, free: 14.22 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.765e-06/0.005801, allocations: 7.891 kB / 0.985 GB, free: 14.21 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001585/0.00596, allocations: 106.1 kB / 0.9851 GB, free: 14.1 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.005962, allocations: 0 / 0.9851 GB, free: 14.1 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.005966, allocations: 0 / 0.9851 GB, free: 14.1 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.008e-06/0.00597, allocations: 0 / 0.9851 GB, free: 14.1 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002585/0.006229, allocations: 321.5 kB / 0.9854 GB, free: 13.74 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.552e-06/0.00623, allocations: 4 kB / 0.9854 GB, free: 13.73 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.668e-05/0.006257, allocations: 8 kB / 0.9854 GB, free: 13.73 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.006259, allocations: 0 / 0.9854 GB, free: 13.73 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.333e-06/0.006266, allocations: 3.984 kB / 0.9854 GB, free: 13.72 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.006267, allocations: 0 / 0.9854 GB, free: 13.72 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.006268, allocations: 0 / 0.9854 GB, free: 13.72 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001472/0.006415, allocations: 203.4 kB / 0.9856 GB, free: 13.51 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 7.995e-06/0.006423, allocations: 7.984 kB / 0.9856 GB, free: 13.5 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.058e-05/0.006434, allocations: 0 / 0.9856 GB, free: 13.5 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.488e-05/0.006479, allocations: 8 kB / 0.9857 GB, free: 13.49 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.739e-05/0.006516, allocations: 11.98 kB / 0.9857 GB, free: 13.48 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.252e-05/0.006529, allocations: 3.938 kB / 0.9857 GB, free: 13.48 MB / 0.948 GB Notification: Performance of sorting global known variables: time 3.16e-05/0.00656, allocations: 87.45 kB / 0.9858 GB, free: 13.39 MB / 0.948 GB Notification: Performance of sort global known variables: time 8e-08/0.00656, allocations: 0 / 0.9858 GB, free: 13.39 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001737/0.006734, allocations: 16 kB / 0.9858 GB, free: 13.38 MB / 0.948 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.0003769/0.007111, allocations: 0.7347 MB / 0.9865 GB, free: 12.62 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0001467/0.007258, allocations: 63.95 kB / 0.9865 GB, free: 12.55 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.007259, allocations: 0 / 0.9865 GB, free: 12.55 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 5.791e-05/0.007317, allocations: 35.91 kB / 0.9866 GB, free: 12.52 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000178/0.007495, allocations: 4.141 kB / 0.9866 GB, free: 12.52 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009843/0.008479, allocations: 1.386 MB / 0.9879 GB, free: 11.03 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.569e-05/0.008525, allocations: 71.33 kB / 0.988 GB, free: 10.94 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 2.403e-05/0.008549, allocations: 0 / 0.988 GB, free: 10.94 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.448e-05/0.008583, allocations: 16.5 kB / 0.988 GB, free: 10.93 MB / 0.948 GB Notification: Performance of SimCode: time 6.01e-07/0.008584, allocations: 0 / 0.988 GB, free: 10.93 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01626/0.02484, allocations: 2.46 MB / 0.9904 GB, free: 8.613 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.79/6.815, allocations: 5.234 kB / 0.9904 GB, free: 8.613 MB / 0.948 GB " [Timeout remaining time 293] (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 & python3 -m fmpy simulate --output-file Buildings_12_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_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.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler.csv","/var/lib/jenkins/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] "Error: Could not read variable sampler1.u in file Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.csv. Warning: Get data of variable sampler1.u from file Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.040952926501632]