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.00144/0.00144, allocations: 81.55 kB / 19.87 MB, free: 4.617 MB / 18.57 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.001211/0.001211, allocations: 169 kB / 23.27 MB, free: 1.219 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.9786/0.9786, allocations: 177.1 MB / 203.7 MB, free: 5.496 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.383/2.383, allocations: 438.1 MB / 0.682 GB, free: 14.17 MB / 0.6511 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 2.635e-06/2.635e-06, allocations: 0 / 0.8897 GB, free: 9.777 MB / 0.8542 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.433e-05/1.696e-05, allocations: 5.266 kB / 0.8897 GB, free: 9.773 MB / 0.8542 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001153/0.00117, allocations: 0.6855 MB / 0.8904 GB, free: 9.09 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.001161/0.002331, allocations: 1.1 MB / 0.8915 GB, free: 7.977 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.227e-05/0.002373, allocations: 0 / 0.8915 GB, free: 7.977 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 2.503e-05/0.002398, allocations: 3.938 kB / 0.8915 GB, free: 7.973 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 5.731e-05/0.002455, allocations: 7.922 kB / 0.8915 GB, free: 7.965 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002373/0.002693, allocations: 51.7 kB / 0.8915 GB, free: 7.914 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 7.073e-05/0.002763, allocations: 43.86 kB / 0.8916 GB, free: 7.871 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 7.339e-05/0.002837, allocations: 19.97 kB / 0.8916 GB, free: 7.852 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 7.187e-05/0.002909, allocations: 23.98 kB / 0.8916 GB, free: 7.828 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 3.863e-05/0.002947, allocations: 23.91 kB / 0.8916 GB, free: 7.805 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 1.428e-05/0.002962, allocations: 4 kB / 0.8916 GB, free: 7.801 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 5.319e-05/0.003015, allocations: 15.98 kB / 0.8917 GB, free: 7.785 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 1.904e-05/0.003034, allocations: 11.98 kB / 0.8917 GB, free: 7.773 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 2.299e-05/0.003057, allocations: 19.92 kB / 0.8917 GB, free: 7.754 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 9.678e-05/0.003154, allocations: 47.81 kB / 0.8917 GB, free: 7.707 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 1.693e-06/0.003155, allocations: 0 / 0.8917 GB, free: 7.707 MB / 0.8542 GB Notification: Performance of FrontEnd: time 4.81e-07/0.003156, allocations: 0 / 0.8917 GB, free: 7.707 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 3.727e-06/0.00316, allocations: 4 kB / 0.8917 GB, free: 7.703 MB / 0.8542 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.0003465/0.003506, allocations: 400.4 kB / 0.8921 GB, free: 7.273 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.207e-05/0.003538, allocations: 8.625 kB / 0.8921 GB, free: 7.266 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.062e-05/0.003609, allocations: 4.938 kB / 0.8921 GB, free: 7.262 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.294e-05/0.003672, allocations: 112.6 kB / 0.8922 GB, free: 7.125 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.694e-06/0.003679, allocations: 384 / 0.8922 GB, free: 7.125 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.268e-06/0.003689, allocations: 8.375 kB / 0.8922 GB, free: 7.117 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.78e-05/0.003776, allocations: 62.94 kB / 0.8923 GB, free: 7.047 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.961e-06/0.003782, allocations: 192 / 0.8923 GB, free: 7.047 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.825e-06/0.00379, allocations: 8.359 kB / 0.8923 GB, free: 7.039 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.686e-06/0.003794, allocations: 384 / 0.8923 GB, free: 7.039 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.491e-05/0.003819, allocations: 19.88 kB / 0.8923 GB, free: 7.02 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002427/0.004062, allocations: 256.4 kB / 0.8926 GB, free: 6.742 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 5.639e-05/0.004118, allocations: 35.05 kB / 0.8926 GB, free: 6.695 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.428e-05/0.004132, allocations: 11.69 kB / 0.8926 GB, free: 6.68 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 1.657e-05/0.004149, allocations: 4 kB / 0.8926 GB, free: 6.676 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.859e-05/0.004207, allocations: 65.11 kB / 0.8927 GB, free: 6.598 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=6): time 9.62e-07/0.004208, allocations: 0 / 0.8927 GB, free: 6.598 MB / 0.8542 GB Notification: Performance of matching and sorting (n=6): time 0.0001264/0.004335, allocations: 73.58 kB / 0.8928 GB, free: 6.52 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.65e-05/0.004361, allocations: 55.41 kB / 0.8928 GB, free: 6.453 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.218e-05/0.004423, allocations: 165.9 kB / 0.893 GB, free: 6.273 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 9.939e-06/0.004433, allocations: 25.7 kB / 0.893 GB, free: 6.242 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 4.247e-05/0.004476, allocations: 138.9 kB / 0.8931 GB, free: 6.102 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 1.479e-05/0.004491, allocations: 11.89 kB / 0.8931 GB, free: 6.09 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.9e-05/0.00452, allocations: 27.38 kB / 0.8932 GB, free: 6.055 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 9.843e-05/0.004618, allocations: 0.4884 MB / 0.8936 GB, free: 5.555 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.219e-05/0.00463, allocations: 7.938 kB / 0.8936 GB, free: 5.547 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.092e-05/0.004661, allocations: 46.72 kB / 0.8937 GB, free: 5.484 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.927e-05/0.00471, allocations: 54.69 kB / 0.8937 GB, free: 5.414 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.004712, allocations: 4 kB / 0.8937 GB, free: 5.41 MB / 0.8542 GB Notification: Performance of matching and sorting (n=8) (initialization): time 7.407e-05/0.004786, allocations: 69.56 kB / 0.8938 GB, free: 5.336 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.248e-05/0.004799, allocations: 4 kB / 0.8938 GB, free: 5.332 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.004805, allocations: 7.938 kB / 0.8938 GB, free: 5.324 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.188e-06/0.004814, allocations: 0 / 0.8938 GB, free: 5.324 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.414e-05/0.004868, allocations: 12 kB / 0.8938 GB, free: 5.312 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.797e-06/0.004872, allocations: 7.922 kB / 0.8938 GB, free: 5.305 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.308e-05/0.004895, allocations: 12.03 kB / 0.8939 GB, free: 5.293 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.37e-06/0.0049, allocations: 7.938 kB / 0.8939 GB, free: 5.285 MB / 0.8542 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.338e-05/0.004964, allocations: 168 kB / 0.894 GB, free: 5.113 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.097e-06/0.004973, allocations: 8.453 kB / 0.894 GB, free: 5.105 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.726e-05/0.00506, allocations: 70.05 kB / 0.8941 GB, free: 5.031 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.005061, allocations: 64 / 0.8941 GB, free: 5.031 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.414e-06/0.005064, allocations: 4 kB / 0.8941 GB, free: 5.027 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.005067, allocations: 0 / 0.8941 GB, free: 5.027 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001617/0.005229, allocations: 294 kB / 0.8944 GB, free: 4.707 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.21e-07/0.005229, allocations: 0 / 0.8944 GB, free: 4.707 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.369e-05/0.005253, allocations: 15.98 kB / 0.8944 GB, free: 4.691 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.946e-06/0.005256, allocations: 7.938 kB / 0.8944 GB, free: 4.684 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.238e-06/0.00526, allocations: 0 / 0.8944 GB, free: 4.684 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.01e-07/0.005261, allocations: 0 / 0.8944 GB, free: 4.684 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.6e-07/0.005261, allocations: 0 / 0.8944 GB, free: 4.684 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.116e-05/0.005352, allocations: 215.8 kB / 0.8946 GB, free: 4.453 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 5.46e-06/0.005358, allocations: 4 kB / 0.8946 GB, free: 4.449 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.043e-05/0.005368, allocations: 11.92 kB / 0.8946 GB, free: 4.438 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.833e-05/0.005406, allocations: 4 kB / 0.8946 GB, free: 4.434 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.543e-05/0.005432, allocations: 7.984 kB / 0.8946 GB, free: 4.426 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.243e-06/0.005439, allocations: 0 / 0.8946 GB, free: 4.426 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 3.093e-05/0.00547, allocations: 127.2 kB / 0.8948 GB, free: 4.301 MB / 0.8542 GB Notification: Performance of sort global known variables: time 5e-08/0.00547, allocations: 0 / 0.8948 GB, free: 4.301 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0001479/0.005618, allocations: 16 kB / 0.8948 GB, free: 4.285 MB / 0.8542 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 8.421e-05/0.005702, allocations: 99.23 kB / 0.8949 GB, free: 4.18 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 7.24e-05/0.005775, allocations: 35.61 kB / 0.8949 GB, free: 4.141 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 8.92e-07/0.005775, allocations: 4 kB / 0.8949 GB, free: 4.137 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 2.594e-05/0.005801, allocations: 23.92 kB / 0.8949 GB, free: 4.109 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001645/0.005966, allocations: 16.19 kB / 0.8949 GB, free: 4.094 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003291/0.006295, allocations: 150.1 kB / 0.8951 GB, free: 3.918 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.155e-05/0.006327, allocations: 59.34 kB / 0.8951 GB, free: 3.84 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 1.927e-05/0.006346, allocations: 4 kB / 0.8951 GB, free: 3.836 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.562e-05/0.006391, allocations: 82.19 kB / 0.8952 GB, free: 3.754 MB / 0.8542 GB Notification: Performance of SimCode: time 5.01e-07/0.006392, allocations: 0 / 0.8952 GB, free: 3.754 MB / 0.8542 GB Notification: Performance of Templates: time 0.002172/0.008564, allocations: 0.9265 MB / 0.8961 GB, free: 2.84 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.328143464867026]