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.001086/0.001086, allocations: 92.22 kB / 19.65 MB, free: 276 kB / 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.001172/0.001172, allocations: 169 kB / 23.02 MB, free: 1.551 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.9916/0.9916, allocations: 177.1 MB / 203.4 MB, free: 5.629 MB / 186.7 MB " [Timeout remaining time 179] 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 2.244/2.244, allocations: 429.5 MB / 0.6732 GB, free: 4.027 MB / 0.6355 GB " [Timeout remaining time 177] Using package Buildings with version 14.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: translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sampler1.u|sampler1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sampler1.u|sampler1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 3.036e-06/3.036e-06, allocations: 0 / 0.8781 GB, free: 6.297 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.671e-05/2.975e-05, allocations: 2.312 kB / 0.8782 GB, free: 6.293 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001991/0.002021, allocations: 0.6884 MB / 0.8788 GB, free: 5.625 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001501/0.003521, allocations: 1.104 MB / 0.8799 GB, free: 4.512 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.071e-05/0.003562, allocations: 0 / 0.8799 GB, free: 4.512 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 3.183e-05/0.003594, allocations: 8.797 kB / 0.8799 GB, free: 4.504 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 6.456e-05/0.003658, allocations: 13.3 kB / 0.8799 GB, free: 4.492 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002609/0.003919, allocations: 47.2 kB / 0.88 GB, free: 4.449 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 8.594e-05/0.004005, allocations: 43.86 kB / 0.88 GB, free: 4.406 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 8.205e-05/0.004087, allocations: 19.97 kB / 0.88 GB, free: 4.387 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 7.341e-05/0.004161, allocations: 19.98 kB / 0.88 GB, free: 4.367 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 4.796e-05/0.004209, allocations: 23.91 kB / 0.8801 GB, free: 4.344 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 1.801e-05/0.004227, allocations: 4 kB / 0.8801 GB, free: 4.34 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 7.569e-05/0.004302, allocations: 27.91 kB / 0.8801 GB, free: 4.312 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 2.104e-05/0.004323, allocations: 8 kB / 0.8801 GB, free: 4.305 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 3.229e-05/0.004356, allocations: 15.92 kB / 0.8801 GB, free: 4.289 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0001405/0.004496, allocations: 48.47 kB / 0.8802 GB, free: 4.242 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 1.983e-06/0.004498, allocations: 1.25 kB / 0.8802 GB, free: 4.242 MB / 0.8386 GB Notification: Performance of FrontEnd: time 9.82e-07/0.004499, allocations: 0 / 0.8802 GB, free: 4.242 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.057e-06/0.004503, allocations: 3.938 kB / 0.8802 GB, free: 4.238 MB / 0.8386 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.0005516/0.005055, allocations: 393.6 kB / 0.8806 GB, free: 3.816 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.045e-05/0.005095, allocations: 8.031 kB / 0.8806 GB, free: 3.809 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001049/0.0052, allocations: 6 kB / 0.8806 GB, free: 3.805 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.048e-05/0.005291, allocations: 116.6 kB / 0.8807 GB, free: 3.664 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.449e-05/0.005305, allocations: 5.906 kB / 0.8807 GB, free: 3.66 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.569e-05/0.005321, allocations: 12.3 kB / 0.8807 GB, free: 3.648 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001258/0.005447, allocations: 58.94 kB / 0.8807 GB, free: 3.582 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.878e-06/0.005457, allocations: 192 / 0.8807 GB, free: 3.582 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.02e-05/0.005467, allocations: 9.562 kB / 0.8808 GB, free: 3.574 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.274e-06/0.005474, allocations: 384 / 0.8808 GB, free: 3.574 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.606e-05/0.00551, allocations: 7.938 kB / 0.8808 GB, free: 3.566 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003265/0.005837, allocations: 272.2 kB / 0.881 GB, free: 3.266 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 8.403e-05/0.005921, allocations: 50.98 kB / 0.8811 GB, free: 3.203 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.305e-05/0.005944, allocations: 11.69 kB / 0.8811 GB, free: 3.188 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.915e-05/0.005963, allocations: 0 / 0.8811 GB, free: 3.188 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.962e-05/0.006042, allocations: 65.11 kB / 0.8811 GB, free: 3.109 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=6): time 1.022e-06/0.006043, allocations: 0 / 0.8811 GB, free: 3.109 MB / 0.8386 GB Notification: Performance of matching and sorting (n=6): time 0.0001933/0.006237, allocations: 85.56 kB / 0.8812 GB, free: 3.02 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.919e-05/0.006276, allocations: 51.41 kB / 0.8813 GB, free: 2.957 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.64e-05/0.006352, allocations: 165.9 kB / 0.8814 GB, free: 2.777 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.344e-05/0.006366, allocations: 29.7 kB / 0.8815 GB, free: 2.742 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.572e-05/0.006411, allocations: 130.9 kB / 0.8816 GB, free: 2.609 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.746e-05/0.006429, allocations: 15.91 kB / 0.8816 GB, free: 2.594 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.529e-05/0.006464, allocations: 31.36 kB / 0.8816 GB, free: 2.555 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001123/0.006577, allocations: 496.1 kB / 0.8821 GB, free: 2.059 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.115e-05/0.006598, allocations: 7.984 kB / 0.8821 GB, free: 2.051 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.811e-05/0.006636, allocations: 46.8 kB / 0.8822 GB, free: 1.988 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.35e-05/0.006699, allocations: 62.67 kB / 0.8822 GB, free: 1.91 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.006701, allocations: 0 / 0.8822 GB, free: 1.91 MB / 0.8386 GB Notification: Performance of matching and sorting (n=8) (initialization): time 9.492e-05/0.006796, allocations: 81.52 kB / 0.8823 GB, free: 1.824 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.458e-05/0.006811, allocations: 7.938 kB / 0.8823 GB, free: 1.816 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.006816, allocations: 4 kB / 0.8823 GB, free: 1.812 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.483e-05/0.006831, allocations: 0 / 0.8823 GB, free: 1.812 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.623e-05/0.006897, allocations: 15.92 kB / 0.8823 GB, free: 1.797 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.021e-06/0.006903, allocations: 4 kB / 0.8823 GB, free: 1.793 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.554e-05/0.006929, allocations: 3.938 kB / 0.8823 GB, free: 1.789 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.206e-06/0.006937, allocations: 8 kB / 0.8823 GB, free: 1.781 MB / 0.8386 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.161e-05/0.007009, allocations: 160.6 kB / 0.8825 GB, free: 1.613 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.468e-06/0.007018, allocations: 8.031 kB / 0.8825 GB, free: 1.605 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001229/0.007141, allocations: 86 kB / 0.8826 GB, free: 1.512 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.007142, allocations: 0 / 0.8826 GB, free: 1.512 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.007146, allocations: 0 / 0.8826 GB, free: 1.512 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.007149, allocations: 0 / 0.8826 GB, free: 1.512 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002016/0.00735, allocations: 317.4 kB / 0.8829 GB, free: 1.16 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.007351, allocations: 0 / 0.8829 GB, free: 1.16 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.829e-05/0.00738, allocations: 8.625 kB / 0.8829 GB, free: 1.152 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.007381, allocations: 0 / 0.8829 GB, free: 1.152 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.644e-06/0.007389, allocations: 3.984 kB / 0.8829 GB, free: 1.148 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.00739, allocations: 0 / 0.8829 GB, free: 1.148 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.007392, allocations: 4 kB / 0.8829 GB, free: 1.145 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001056/0.007497, allocations: 215.9 kB / 0.8831 GB, free: 0.9141 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 6.973e-06/0.007504, allocations: 7.953 kB / 0.8831 GB, free: 0.9062 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.208e-05/0.007516, allocations: 4 kB / 0.8831 GB, free: 0.9023 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.104e-05/0.007558, allocations: 7.984 kB / 0.8831 GB, free: 0.8945 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.269e-05/0.00759, allocations: 7.922 kB / 0.8831 GB, free: 0.8867 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.026e-05/0.0076, allocations: 4 kB / 0.8831 GB, free: 0.8828 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 3.699e-05/0.007637, allocations: 127.2 kB / 0.8833 GB, free: 0.7578 MB / 0.8386 GB Notification: Performance of sort global known variables: time 6e-08/0.007638, allocations: 0 / 0.8833 GB, free: 0.7578 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0001595/0.007797, allocations: 12 kB / 0.8833 GB, free: 0.7461 MB / 0.8386 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.000119/0.007916, allocations: 103.2 kB / 0.8834 GB, free: 0.6367 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 9.876e-05/0.008015, allocations: 39.61 kB / 0.8834 GB, free: 0.5938 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.162e-06/0.008016, allocations: 0 / 0.8834 GB, free: 0.5938 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 6.964e-05/0.008086, allocations: 23.67 kB / 0.8834 GB, free: 0.5664 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001881/0.008274, allocations: 11.88 kB / 0.8834 GB, free: 0.5547 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000455/0.008729, allocations: 146.4 kB / 0.8836 GB, free: 392 kB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.997e-05/0.008769, allocations: 67.28 kB / 0.8836 GB, free: 304 kB / 0.8386 GB Notification: Performance of simCode: alias equations: time 1.967e-05/0.008788, allocations: 0 / 0.8836 GB, free: 304 kB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.236e-05/0.008811, allocations: 12.5 kB / 0.8837 GB, free: 292 kB / 0.8386 GB Notification: Performance of SimCode: time 1.052e-06/0.008812, allocations: 3.938 kB / 0.8837 GB, free: 288 kB / 0.8386 GB Notification: Performance of Templates: time 0.002476/0.01129, allocations: 0.8595 MB / 0.8845 GB, free: 15.44 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.makefile [Timeout 300] (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 & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.700071792118251]