Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.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.0009776/0.0009776, allocations: 81.86 kB / 19.87 MB, free: 4.621 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.0009164/0.0009164, allocations: 169.7 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.9111/0.9111, 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.366/2.366, allocations: 438.1 MB / 0.682 GB, free: 14.16 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.Logical.Sources.Validation.SampleTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.043e-06/2.043e-06, allocations: 0 / 0.8898 GB, free: 9.754 MB / 0.8542 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.346e-05/2.551e-05, allocations: 5.125 kB / 0.8898 GB, free: 9.75 MB / 0.8542 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.001456/0.001482, allocations: 0.7594 MB / 0.8905 GB, free: 8.992 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.001273/0.002755, allocations: 1.108 MB / 0.8916 GB, free: 7.871 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.629e-05/0.002801, allocations: 0 / 0.8916 GB, free: 7.871 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 3.277e-05/0.002834, allocations: 7.922 kB / 0.8916 GB, free: 7.863 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 7.747e-05/0.002912, allocations: 15.88 kB / 0.8916 GB, free: 7.848 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002583/0.00317, allocations: 47.77 kB / 0.8916 GB, free: 7.801 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 9.245e-05/0.003262, allocations: 79.69 kB / 0.8917 GB, free: 7.723 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 9.326e-05/0.003356, allocations: 20.12 kB / 0.8917 GB, free: 7.699 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 8.694e-05/0.003443, allocations: 39.94 kB / 0.8918 GB, free: 7.66 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 4.039e-05/0.003483, allocations: 23.92 kB / 0.8918 GB, free: 7.637 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 1.575e-05/0.003499, allocations: 8 kB / 0.8918 GB, free: 7.629 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 5.489e-05/0.003554, allocations: 19.98 kB / 0.8918 GB, free: 7.609 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 2.358e-05/0.003577, allocations: 19.91 kB / 0.8918 GB, free: 7.59 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 2.72e-05/0.003604, allocations: 19.98 kB / 0.8919 GB, free: 7.57 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 0.000113/0.003717, allocations: 63.72 kB / 0.8919 GB, free: 7.508 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 1.813e-06/0.003719, allocations: 0 / 0.8919 GB, free: 7.508 MB / 0.8542 GB Notification: Performance of FrontEnd: time 9.12e-07/0.00372, allocations: 0 / 0.8919 GB, free: 7.508 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 3.346e-06/0.003723, allocations: 0 / 0.8919 GB, free: 7.508 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0003697/0.004093, allocations: 404.3 kB / 0.8923 GB, free: 7.078 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.998e-05/0.004133, allocations: 16.56 kB / 0.8923 GB, free: 7.062 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.188e-05/0.004165, allocations: 12.88 kB / 0.8923 GB, free: 7.051 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.011e-05/0.004245, allocations: 120.5 kB / 0.8925 GB, free: 6.906 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.411e-05/0.004259, allocations: 12.36 kB / 0.8925 GB, free: 6.895 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.117e-05/0.00427, allocations: 4.375 kB / 0.8925 GB, free: 6.891 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001045/0.004375, allocations: 66.88 kB / 0.8925 GB, free: 6.816 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.062e-06/0.004381, allocations: 192 / 0.8925 GB, free: 6.816 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.444e-06/0.004388, allocations: 384 / 0.8925 GB, free: 6.816 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.835e-06/0.004396, allocations: 8.125 kB / 0.8925 GB, free: 6.809 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.888e-05/0.004415, allocations: 7.984 kB / 0.8926 GB, free: 6.801 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003576/0.004773, allocations: 284.3 kB / 0.8928 GB, free: 6.496 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 7.257e-05/0.004845, allocations: 43.05 kB / 0.8929 GB, free: 6.441 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.657e-05/0.004862, allocations: 15.67 kB / 0.8929 GB, free: 6.422 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 2.046e-05/0.004882, allocations: 4 kB / 0.8929 GB, free: 6.418 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.384e-05/0.004956, allocations: 73.06 kB / 0.893 GB, free: 6.332 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=7): time 1.142e-06/0.004957, allocations: 0 / 0.893 GB, free: 6.332 MB / 0.8542 GB Notification: Performance of matching and sorting (n=7): time 0.0001509/0.005108, allocations: 77.7 kB / 0.893 GB, free: 6.25 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.331e-05/0.005141, allocations: 55.41 kB / 0.8931 GB, free: 6.184 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.455e-05/0.005226, allocations: 185.8 kB / 0.8933 GB, free: 5.984 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 1.174e-05/0.005238, allocations: 25.7 kB / 0.8933 GB, free: 5.953 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 5.092e-05/0.005289, allocations: 138.9 kB / 0.8934 GB, free: 5.812 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 1.908e-05/0.005308, allocations: 27.81 kB / 0.8934 GB, free: 5.785 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.674e-05/0.005344, allocations: 31.36 kB / 0.8935 GB, free: 5.746 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001181/0.005462, allocations: 0.4884 MB / 0.8939 GB, free: 5.246 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.828e-05/0.005481, allocations: 11.98 kB / 0.894 GB, free: 5.234 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.379e-05/0.005525, allocations: 73.67 kB / 0.894 GB, free: 5.133 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.68e-05/0.005601, allocations: 93.73 kB / 0.8941 GB, free: 5.012 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.005603, allocations: 0 / 0.8941 GB, free: 5.012 MB / 0.8542 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001011/0.005704, allocations: 101.4 kB / 0.8942 GB, free: 4.906 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.449e-05/0.005719, allocations: 4 kB / 0.8942 GB, free: 4.902 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.005723, allocations: 0 / 0.8942 GB, free: 4.902 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.295e-05/0.005736, allocations: 4 kB / 0.8942 GB, free: 4.898 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.187e-05/0.005808, allocations: 20.2 kB / 0.8942 GB, free: 4.879 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.619e-06/0.005813, allocations: 4 kB / 0.8942 GB, free: 4.875 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.191e-05/0.005845, allocations: 11.94 kB / 0.8943 GB, free: 4.863 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.047e-05/0.005855, allocations: 4 kB / 0.8943 GB, free: 4.859 MB / 0.8542 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 8 (triggeredSampler1.y,$PRE.triggeredSampler1.y,triggeredSampler.y,$PRE.triggeredSampler.y,samTri.y,$whenCondition1,samTri1.y,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.913e-05/0.005924, allocations: 166.9 kB / 0.8944 GB, free: 4.688 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.155e-05/0.005936, allocations: 11.89 kB / 0.8944 GB, free: 4.676 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.448e-05/0.00596, allocations: 16.42 kB / 0.8944 GB, free: 4.66 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.005962, allocations: 0 / 0.8944 GB, free: 4.66 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.034e-06/0.005964, allocations: 0 / 0.8944 GB, free: 4.66 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.005967, allocations: 0 / 0.8944 GB, free: 4.66 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001979/0.006165, allocations: 321.9 kB / 0.8948 GB, free: 4.312 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.006166, allocations: 0 / 0.8948 GB, free: 4.312 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.678e-05/0.006183, allocations: 7.984 kB / 0.8948 GB, free: 4.305 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.412e-06/0.006184, allocations: 0 / 0.8948 GB, free: 4.305 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.288e-06/0.006189, allocations: 0 / 0.8948 GB, free: 4.305 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.006191, allocations: 4 kB / 0.8948 GB, free: 4.301 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.006192, allocations: 0 / 0.8948 GB, free: 4.301 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001068/0.006299, allocations: 227.8 kB / 0.895 GB, free: 4.059 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 6.332e-06/0.006305, allocations: 3.953 kB / 0.895 GB, free: 4.055 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.989e-06/0.006315, allocations: 3.984 kB / 0.895 GB, free: 4.051 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.252e-05/0.006348, allocations: 8 kB / 0.895 GB, free: 4.043 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.143e-05/0.006379, allocations: 19.97 kB / 0.895 GB, free: 4.023 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.406e-06/0.006382, allocations: 0 / 0.895 GB, free: 4.023 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 3.995e-05/0.006422, allocations: 131.2 kB / 0.8951 GB, free: 3.895 MB / 0.8542 GB Notification: Performance of sort global known variables: time 6e-08/0.006422, allocations: 3.938 kB / 0.8951 GB, free: 3.891 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0001619/0.006584, allocations: 16 kB / 0.8952 GB, free: 3.875 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: 6 (samTri1.y,samTri.y,$whenCondition2,$whenCondition1,triggeredSampler.y,triggeredSampler1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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.000106/0.00669, allocations: 99.25 kB / 0.8953 GB, free: 3.77 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 8.817e-05/0.006779, allocations: 51.58 kB / 0.8953 GB, free: 3.715 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.042e-06/0.00678, allocations: 448 / 0.8953 GB, free: 3.715 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 2.927e-05/0.006809, allocations: 27.61 kB / 0.8953 GB, free: 3.684 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000173/0.006982, allocations: 11.94 kB / 0.8953 GB, free: 3.672 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002259/0.007208, allocations: 167.3 kB / 0.8955 GB, free: 3.477 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.22e-05/0.00724, allocations: 63.34 kB / 0.8956 GB, free: 3.395 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 2.112e-05/0.007261, allocations: 4 kB / 0.8956 GB, free: 3.391 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.213e-05/0.007313, allocations: 78.19 kB / 0.8956 GB, free: 3.312 MB / 0.8542 GB Notification: Performance of SimCode: time 5.21e-07/0.007314, allocations: 4 kB / 0.8956 GB, free: 3.309 MB / 0.8542 GB Notification: Performance of Templates: time 0.002494/0.009808, allocations: 1.137 MB / 0.8968 GB, free: 2.195 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.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.098401153925806]