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.00149/0.00149, allocations: 92.2 kB / 20.19 MB, free: 4.363 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.001173/0.001173, allocations: 173 kB / 23.49 MB, free: 1.062 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.043/1.043, allocations: 177.1 MB / 203.8 MB, free: 5.633 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.364/2.364, allocations: 429.5 MB / 0.6736 GB, free: 4.035 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 6.161e-06/6.161e-06, allocations: 0 / 0.8782 GB, free: 6.656 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 5.157e-05/5.773e-05, allocations: 5.125 kB / 0.8782 GB, free: 6.652 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.002113/0.002171, allocations: 0.7649 MB / 0.879 GB, free: 5.91 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001693/0.003864, allocations: 1.114 MB / 0.88 GB, free: 4.785 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.803e-05/0.003932, allocations: 0 / 0.88 GB, free: 4.785 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 4.482e-05/0.003977, allocations: 12.8 kB / 0.8801 GB, free: 4.773 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 9.606e-05/0.004073, allocations: 8.969 kB / 0.8801 GB, free: 4.766 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004188/0.004492, allocations: 52.86 kB / 0.8801 GB, free: 4.715 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0001414/0.004633, allocations: 75.7 kB / 0.8802 GB, free: 4.641 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001318/0.004765, allocations: 17.23 kB / 0.8802 GB, free: 4.621 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001027/0.004868, allocations: 39.97 kB / 0.8802 GB, free: 4.582 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 7.487e-05/0.004943, allocations: 31.83 kB / 0.8803 GB, free: 4.551 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 2.16e-05/0.004964, allocations: 8.938 kB / 0.8803 GB, free: 4.543 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 7.287e-05/0.005037, allocations: 15.98 kB / 0.8803 GB, free: 4.527 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 3.234e-05/0.00507, allocations: 16.7 kB / 0.8803 GB, free: 4.512 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 4.174e-05/0.005111, allocations: 19.97 kB / 0.8803 GB, free: 4.492 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0001757/0.005287, allocations: 59.8 kB / 0.8804 GB, free: 4.434 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 6.642e-06/0.005294, allocations: 7.562 kB / 0.8804 GB, free: 4.43 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.663e-06/0.005295, allocations: 0 / 0.8804 GB, free: 4.43 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 6.813e-06/0.005302, allocations: 0 / 0.8804 GB, free: 4.43 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.0005147/0.005817, allocations: 400.4 kB / 0.8808 GB, free: 4.004 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.427e-05/0.005871, allocations: 8.031 kB / 0.8808 GB, free: 3.996 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.318e-05/0.005934, allocations: 8.922 kB / 0.8808 GB, free: 3.988 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001193/0.006054, allocations: 128.4 kB / 0.8809 GB, free: 3.836 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.479e-05/0.006069, allocations: 384 / 0.8809 GB, free: 3.836 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.528e-05/0.006084, allocations: 8.375 kB / 0.8809 GB, free: 3.828 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001728/0.006257, allocations: 67.56 kB / 0.881 GB, free: 3.754 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.624e-06/0.006264, allocations: 0.7812 kB / 0.881 GB, free: 3.754 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.112e-05/0.006275, allocations: 384 / 0.881 GB, free: 3.754 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.528e-06/0.006285, allocations: 4.875 kB / 0.881 GB, free: 3.75 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.557e-05/0.00632, allocations: 15.92 kB / 0.881 GB, free: 3.734 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005253/0.006846, allocations: 304.6 kB / 0.8813 GB, free: 3.402 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001257/0.006971, allocations: 44.67 kB / 0.8813 GB, free: 3.348 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.102e-05/0.007002, allocations: 23.75 kB / 0.8814 GB, free: 3.32 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.658e-05/0.007029, allocations: 3.938 kB / 0.8814 GB, free: 3.316 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001225/0.007151, allocations: 73.03 kB / 0.8814 GB, free: 3.23 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 2.204e-06/0.007154, allocations: 0 / 0.8814 GB, free: 3.23 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7): time 0.0002487/0.007402, allocations: 77.64 kB / 0.8815 GB, free: 3.148 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.984e-05/0.007462, allocations: 59.33 kB / 0.8816 GB, free: 3.078 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001129/0.007575, allocations: 181.9 kB / 0.8817 GB, free: 2.883 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.247e-05/0.007588, allocations: 25.7 kB / 0.8818 GB, free: 2.852 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.764e-05/0.007655, allocations: 146.8 kB / 0.8819 GB, free: 2.703 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.13e-05/0.007677, allocations: 11.84 kB / 0.8819 GB, free: 2.691 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.402e-05/0.007731, allocations: 39.36 kB / 0.882 GB, free: 2.645 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.000143/0.007874, allocations: 0.4884 MB / 0.8824 GB, free: 2.145 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.493e-05/0.007908, allocations: 12 kB / 0.8824 GB, free: 2.133 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.645e-05/0.007975, allocations: 73.8 kB / 0.8825 GB, free: 2.031 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001079/0.008083, allocations: 93.67 kB / 0.8826 GB, free: 1.91 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.008086, allocations: 0 / 0.8826 GB, free: 1.91 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001603/0.008246, allocations: 109.4 kB / 0.8827 GB, free: 1.797 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.893e-05/0.008265, allocations: 4 kB / 0.8827 GB, free: 1.793 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.037e-06/0.008274, allocations: 8 kB / 0.8827 GB, free: 1.785 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.823e-05/0.008293, allocations: 0 / 0.8827 GB, free: 1.785 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001331/0.008426, allocations: 23.92 kB / 0.8827 GB, free: 1.762 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.695e-06/0.008433, allocations: 0 / 0.8827 GB, free: 1.762 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.13e-05/0.008475, allocations: 11.95 kB / 0.8828 GB, free: 1.75 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.21e-05/0.008487, allocations: 4 kB / 0.8828 GB, free: 1.746 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 9.783e-05/0.008585, allocations: 175.3 kB / 0.8829 GB, free: 1.566 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.85e-05/0.008603, allocations: 7.938 kB / 0.8829 GB, free: 1.559 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.726e-05/0.00864, allocations: 8.438 kB / 0.8829 GB, free: 1.547 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.008644, allocations: 0 / 0.8829 GB, free: 1.547 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.008649, allocations: 0 / 0.8829 GB, free: 1.547 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.008656, allocations: 4 kB / 0.8829 GB, free: 1.543 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003807/0.009037, allocations: 341.2 kB / 0.8833 GB, free: 1.168 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/0.009039, allocations: 0 / 0.8833 GB, free: 1.168 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.857e-05/0.009088, allocations: 11.98 kB / 0.8833 GB, free: 1.156 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.937e-06/0.009092, allocations: 0 / 0.8833 GB, free: 1.156 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.037e-06/0.009101, allocations: 11.94 kB / 0.8833 GB, free: 1.145 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.009102, allocations: 0 / 0.8833 GB, free: 1.145 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.009104, allocations: 0 / 0.8833 GB, free: 1.145 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000155/0.00926, allocations: 219.8 kB / 0.8835 GB, free: 0.9102 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.378e-05/0.009273, allocations: 11.94 kB / 0.8835 GB, free: 0.8984 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.751e-05/0.009291, allocations: 7.984 kB / 0.8835 GB, free: 0.8906 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.743e-05/0.009338, allocations: 4 kB / 0.8835 GB, free: 0.8867 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.116e-05/0.009379, allocations: 3.984 kB / 0.8835 GB, free: 0.8828 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.624e-06/0.009387, allocations: 4 kB / 0.8835 GB, free: 0.8789 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 4.96e-05/0.009437, allocations: 135.2 kB / 0.8837 GB, free: 0.7461 MB / 0.8386 GB Notification: Performance of sort global known variables: time 6e-08/0.009437, allocations: 0 / 0.8837 GB, free: 0.7461 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.000204/0.009641, allocations: 16 kB / 0.8837 GB, free: 0.7305 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: 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.0001929/0.009834, allocations: 108.2 kB / 0.8838 GB, free: 0.6172 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.00015/0.009984, allocations: 51.59 kB / 0.8838 GB, free: 0.5625 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.009986, allocations: 3.938 kB / 0.8838 GB, free: 0.5586 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 4.486e-05/0.01003, allocations: 27.66 kB / 0.8839 GB, free: 0.5273 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002714/0.0103, allocations: 12.38 kB / 0.8839 GB, free: 0.5156 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004552/0.01076, allocations: 170.6 kB / 0.884 GB, free: 324 kB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.507e-05/0.0108, allocations: 59.34 kB / 0.8841 GB, free: 244 kB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.442e-05/0.01084, allocations: 8 kB / 0.8841 GB, free: 236 kB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.344e-05/0.01087, allocations: 16.48 kB / 0.8841 GB, free: 220 kB / 0.8386 GB Notification: Performance of SimCode: time 2.635e-06/0.01087, allocations: 0 / 0.8841 GB, free: 220 kB / 0.8386 GB Notification: Performance of Templates: time 0.003672/0.01455, allocations: 1.044 MB / 0.8851 GB, free: 15.2 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: 6.042997420066968]