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.001251/0.001251, allocations: 88.22 kB / 19.65 MB, free: 272 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.001999/0.001999, allocations: 173 kB / 23.02 MB, free: 1.543 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 1.045/1.045, allocations: 177.1 MB / 203.4 MB, free: 5.625 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.249/2.249, 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.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 3.296e-06/3.296e-06, allocations: 0 / 0.8782 GB, free: 6.285 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.153e-05/3.482e-05, allocations: 7.953 kB / 0.8782 GB, free: 6.281 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.002472/0.002507, allocations: 0.7579 MB / 0.8789 GB, free: 5.543 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001642/0.004149, allocations: 1.123 MB / 0.88 GB, free: 4.41 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.832e-05/0.004207, allocations: 1.438 kB / 0.88 GB, free: 4.41 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 4.229e-05/0.00425, allocations: 7.875 kB / 0.88 GB, free: 4.402 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 8.946e-05/0.004339, allocations: 8.375 kB / 0.8801 GB, free: 4.395 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004035/0.004743, allocations: 60.97 kB / 0.8801 GB, free: 4.336 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0001432/0.004886, allocations: 71.77 kB / 0.8802 GB, free: 4.266 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001315/0.005017, allocations: 20.11 kB / 0.8802 GB, free: 4.242 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001124/0.00513, allocations: 40.81 kB / 0.8802 GB, free: 4.203 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 6.758e-05/0.005197, allocations: 27.95 kB / 0.8803 GB, free: 4.176 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 2.207e-05/0.005219, allocations: 4 kB / 0.8803 GB, free: 4.172 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 6.886e-05/0.005288, allocations: 13.34 kB / 0.8803 GB, free: 4.16 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 3.222e-05/0.00532, allocations: 27.84 kB / 0.8803 GB, free: 4.133 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 4.008e-05/0.005361, allocations: 19.92 kB / 0.8803 GB, free: 4.113 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0001661/0.005527, allocations: 57.39 kB / 0.8804 GB, free: 4.059 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.00553, allocations: 0 / 0.8804 GB, free: 4.059 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.293e-06/0.005532, allocations: 3.938 kB / 0.8804 GB, free: 4.055 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 5.681e-06/0.005537, allocations: 0 / 0.8804 GB, free: 4.055 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0005428/0.00608, allocations: 405.7 kB / 0.8808 GB, free: 3.625 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.365e-05/0.006124, allocations: 8.031 kB / 0.8808 GB, free: 3.617 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.827e-05/0.006182, allocations: 8.938 kB / 0.8808 GB, free: 3.609 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000118/0.0063, allocations: 124.4 kB / 0.8809 GB, free: 3.461 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.93e-05/0.006319, allocations: 13.42 kB / 0.8809 GB, free: 3.449 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2e-05/0.006339, allocations: 4.375 kB / 0.8809 GB, free: 3.445 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001788/0.006518, allocations: 66.34 kB / 0.881 GB, free: 3.375 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.264e-05/0.006531, allocations: 192 / 0.881 GB, free: 3.375 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.334e-05/0.006544, allocations: 4.359 kB / 0.881 GB, free: 3.371 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.177e-05/0.006556, allocations: 8.125 kB / 0.881 GB, free: 3.363 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.619e-05/0.006602, allocations: 15.94 kB / 0.881 GB, free: 3.348 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005816/0.007184, allocations: 295.7 kB / 0.8813 GB, free: 3.023 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001243/0.007308, allocations: 43.05 kB / 0.8813 GB, free: 2.969 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.665e-05/0.007345, allocations: 16.41 kB / 0.8814 GB, free: 2.949 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.847e-05/0.007373, allocations: 8.016 kB / 0.8814 GB, free: 2.941 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001111/0.007484, allocations: 69 kB / 0.8814 GB, free: 2.859 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 1.934e-06/0.007486, allocations: 0 / 0.8814 GB, free: 2.859 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7): time 0.0002752/0.007761, allocations: 85.61 kB / 0.8815 GB, free: 2.77 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.857e-05/0.00781, allocations: 55.41 kB / 0.8816 GB, free: 2.703 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001279/0.007938, allocations: 181.9 kB / 0.8817 GB, free: 2.508 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.829e-05/0.007956, allocations: 33.64 kB / 0.8818 GB, free: 2.469 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.863e-05/0.008025, allocations: 134.9 kB / 0.8819 GB, free: 2.332 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.502e-05/0.00805, allocations: 15.84 kB / 0.8819 GB, free: 2.316 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.26e-05/0.008112, allocations: 35.36 kB / 0.8819 GB, free: 2.273 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001534/0.008266, allocations: 0.4923 MB / 0.8824 GB, free: 1.77 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.577e-05/0.008311, allocations: 15.92 kB / 0.8824 GB, free: 1.754 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.513e-05/0.008387, allocations: 73.81 kB / 0.8825 GB, free: 1.652 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001239/0.008511, allocations: 89.73 kB / 0.8826 GB, free: 1.535 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.008514, allocations: 0 / 0.8826 GB, free: 1.535 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002073/0.008721, allocations: 109.4 kB / 0.8827 GB, free: 1.422 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.036e-05/0.008742, allocations: 10.19 kB / 0.8827 GB, free: 1.414 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.311e-06/0.008748, allocations: 0 / 0.8827 GB, free: 1.414 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.366e-05/0.008772, allocations: 4 kB / 0.8827 GB, free: 1.41 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001439/0.008916, allocations: 19.92 kB / 0.8827 GB, free: 1.391 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.229e-05/0.008928, allocations: 4 kB / 0.8827 GB, free: 1.387 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.309e-05/0.008991, allocations: 15.94 kB / 0.8828 GB, free: 1.371 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.461e-05/0.009006, allocations: 4 kB / 0.8828 GB, free: 1.367 MB / 0.8386 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 0.0001101/0.009116, allocations: 164.8 kB / 0.8829 GB, free: 1.195 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.014e-05/0.009136, allocations: 7.938 kB / 0.8829 GB, free: 1.188 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.134e-05/0.009177, allocations: 8.438 kB / 0.8829 GB, free: 1.176 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.479e-06/0.009182, allocations: 7.984 kB / 0.8829 GB, free: 1.168 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.009186, allocations: 0 / 0.8829 GB, free: 1.168 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.009191, allocations: 0 / 0.8829 GB, free: 1.168 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003817/0.009573, allocations: 345.2 kB / 0.8833 GB, free: 0.7891 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.155e-06/0.009575, allocations: 4 kB / 0.8833 GB, free: 0.7852 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.991e-05/0.009625, allocations: 4 kB / 0.8833 GB, free: 0.7812 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.009628, allocations: 0 / 0.8833 GB, free: 0.7812 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.898e-06/0.009638, allocations: 4 kB / 0.8833 GB, free: 0.7773 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.00964, allocations: 0 / 0.8833 GB, free: 0.7773 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.009642, allocations: 0 / 0.8833 GB, free: 0.7773 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001922/0.009834, allocations: 231.8 kB / 0.8835 GB, free: 0.5312 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.206e-05/0.009846, allocations: 3.953 kB / 0.8835 GB, free: 0.5273 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.91e-05/0.009865, allocations: 4 kB / 0.8835 GB, free: 0.5234 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.844e-05/0.009934, allocations: 4 kB / 0.8835 GB, free: 0.5195 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.655e-05/0.00998, allocations: 7.984 kB / 0.8835 GB, free: 0.5117 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.334e-06/0.009988, allocations: 0 / 0.8835 GB, free: 0.5117 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 6.481e-05/0.01005, allocations: 139.1 kB / 0.8836 GB, free: 384 kB / 0.8386 GB Notification: Performance of sort global known variables: time 1e-07/0.01005, allocations: 0 / 0.8836 GB, free: 384 kB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003236/0.01038, allocations: 24 kB / 0.8837 GB, free: 360 kB / 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: 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.0002294/0.01061, allocations: 104.2 kB / 0.8838 GB, free: 248 kB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001628/0.01077, allocations: 51.53 kB / 0.8838 GB, free: 192 kB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.01077, allocations: 0 / 0.8838 GB, free: 192 kB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 4.861e-05/0.01082, allocations: 23.67 kB / 0.8838 GB, free: 164 kB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003482/0.01117, allocations: 20.36 kB / 0.8839 GB, free: 144 kB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000698/0.01186, allocations: 163.3 kB / 0.884 GB, free: 15.95 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.813e-05/0.01191, allocations: 59.36 kB / 0.8841 GB, free: 15.87 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 3.927e-05/0.01195, allocations: 15.92 kB / 0.8841 GB, free: 15.86 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.913e-05/0.01199, allocations: 12.5 kB / 0.8841 GB, free: 15.84 MB / 0.8542 GB Notification: Performance of SimCode: time 8.41e-07/0.01199, allocations: 0 / 0.8841 GB, free: 15.84 MB / 0.8542 GB Notification: Performance of Templates: time 0.004026/0.01602, allocations: 1.036 MB / 0.8851 GB, free: 14.84 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.688129282090813]