Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.0006921/0.0006921, allocations: 76.5 kB / 19.93 MB, free: 4.633 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.0007796/0.0007796, allocations: 174.3 kB / 23.21 MB, free: 1.352 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.9088/0.9088, allocations: 177.1 MB / 203.5 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.791/1.791, allocations: 377.8 MB / 0.6228 GB, free: 8.676 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/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_12_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_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.983e-06/1.983e-06, allocations: 0 / 0.9822 GB, free: 2.086 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.77e-05/1.969e-05, allocations: 2.281 kB / 0.9822 GB, free: 2.082 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.001213/0.001233, allocations: 0.7401 MB / 0.9829 GB, free: 1.344 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.001061/0.002294, allocations: 1.092 MB / 0.984 GB, free: 244 kB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.366e-05/0.002338, allocations: 0 / 0.984 GB, free: 244 kB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 2.921e-05/0.002367, allocations: 7.875 kB / 0.984 GB, free: 236 kB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 6.958e-05/0.002437, allocations: 19.91 kB / 0.984 GB, free: 216 kB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002881/0.002725, allocations: 55.52 kB / 0.9841 GB, free: 164 kB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 0.0001014/0.002826, allocations: 71.72 kB / 0.9841 GB, free: 92 kB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001003/0.002926, allocations: 16.17 kB / 0.9842 GB, free: 72 kB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 7.916e-05/0.003006, allocations: 39.95 kB / 0.9842 GB, free: 32 kB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 4.808e-05/0.003054, allocations: 31.89 kB / 0.9842 GB, free: 0 / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 2.624e-05/0.00308, allocations: 4.047 kB / 0.9842 GB, free: 15.99 MB / 0.948 GB Notification: Performance of NFFlatten.collectFunctions: time 4.994e-05/0.00313, allocations: 15.94 kB / 0.9842 GB, free: 15.98 MB / 0.948 GB Notification: Performance of NFScalarize.scalarize: time 2.294e-05/0.003153, allocations: 19.92 kB / 0.9843 GB, free: 15.96 MB / 0.948 GB Notification: Performance of NFVerifyModel.verify: time 3.017e-05/0.003183, allocations: 19.98 kB / 0.9843 GB, free: 15.94 MB / 0.948 GB Notification: Performance of NFConvertDAE.convert: time 0.0001391/0.003322, allocations: 87.67 kB / 0.9844 GB, free: 15.86 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 1.934e-06/0.003324, allocations: 0 / 0.9844 GB, free: 15.86 MB / 0.948 GB Notification: Performance of FrontEnd: time 7.72e-07/0.003325, allocations: 0 / 0.9844 GB, free: 15.86 MB / 0.948 GB Notification: Performance of Transformations before backend: time 3.827e-06/0.003329, allocations: 0 / 0.9844 GB, free: 15.86 MB / 0.948 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.0004044/0.003733, allocations: 310 kB / 0.9847 GB, free: 15.52 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.61e-05/0.003769, allocations: 8.031 kB / 0.9847 GB, free: 15.52 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.528e-05/0.003804, allocations: 8.891 kB / 0.9847 GB, free: 15.51 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.249e-05/0.003887, allocations: 121.7 kB / 0.9848 GB, free: 15.36 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.217e-05/0.003899, allocations: 4.375 kB / 0.9848 GB, free: 15.36 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.171e-05/0.003911, allocations: 8.375 kB / 0.9848 GB, free: 15.35 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000138/0.004049, allocations: 74.16 kB / 0.9849 GB, free: 15.27 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.516e-06/0.004057, allocations: 192 / 0.9849 GB, free: 15.27 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.307e-06/0.004067, allocations: 384 / 0.9849 GB, free: 15.27 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.951e-06/0.004073, allocations: 4.125 kB / 0.9849 GB, free: 15.27 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.394e-05/0.004166, allocations: 47.89 kB / 0.9849 GB, free: 15.22 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004279/0.004594, allocations: 260.4 kB / 0.9852 GB, free: 14.94 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001172/0.004712, allocations: 54.55 kB / 0.9852 GB, free: 14.88 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.028e-05/0.004762, allocations: 28.97 kB / 0.9853 GB, free: 14.84 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 2.03e-05/0.004782, allocations: 3.938 kB / 0.9853 GB, free: 14.84 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001217/0.004904, allocations: 79.33 kB / 0.9853 GB, free: 14.75 MB / 0.948 GB Notification: Performance of pre-optimization done (n=7): time 1.143e-06/0.004905, allocations: 96 / 0.9853 GB, free: 14.75 MB / 0.948 GB Notification: Performance of matching and sorting (n=7): time 0.0002731/0.005178, allocations: 133.6 kB / 0.9855 GB, free: 14.61 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.444e-05/0.005212, allocations: 55.41 kB / 0.9855 GB, free: 14.55 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.609e-05/0.005289, allocations: 121.8 kB / 0.9856 GB, free: 14.42 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.369e-05/0.005302, allocations: 29.7 kB / 0.9857 GB, free: 14.38 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 4.582e-05/0.005348, allocations: 92.12 kB / 0.9857 GB, free: 14.29 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 1.724e-05/0.005365, allocations: 15.89 kB / 0.9858 GB, free: 14.27 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.516e-05/0.0054, allocations: 25.72 kB / 0.9858 GB, free: 14.24 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 8.687e-05/0.005487, allocations: 322.8 kB / 0.9861 GB, free: 13.92 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.829e-05/0.005546, allocations: 27.97 kB / 0.9861 GB, free: 13.89 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.703e-05/0.005623, allocations: 77.92 kB / 0.9862 GB, free: 13.79 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001261/0.005749, allocations: 105.9 kB / 0.9863 GB, free: 13.67 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.005751, allocations: 4 kB / 0.9863 GB, free: 13.66 MB / 0.948 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001699/0.005921, allocations: 137.3 kB / 0.9864 GB, free: 13.52 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.303e-05/0.005934, allocations: 8 kB / 0.9864 GB, free: 13.52 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.005939, allocations: 0 / 0.9864 GB, free: 13.52 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.148e-05/0.00595, allocations: 7.938 kB / 0.9864 GB, free: 13.51 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.546e-05/0.006026, allocations: 16.2 kB / 0.9865 GB, free: 13.49 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.651e-06/0.006031, allocations: 4 kB / 0.9865 GB, free: 13.49 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.263e-05/0.006074, allocations: 23.88 kB / 0.9865 GB, free: 13.46 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.381e-05/0.006088, allocations: 4 kB / 0.9865 GB, free: 13.46 MB / 0.948 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.614e-05/0.006154, allocations: 117.8 kB / 0.9866 GB, free: 13.34 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.053e-05/0.006164, allocations: 15.88 kB / 0.9866 GB, free: 13.32 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.174e-05/0.006186, allocations: 8.438 kB / 0.9866 GB, free: 13.31 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.006188, allocations: 4 kB / 0.9866 GB, free: 13.31 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.006192, allocations: 0 / 0.9866 GB, free: 13.31 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.006196, allocations: 0 / 0.9866 GB, free: 13.31 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002695/0.006466, allocations: 318.1 kB / 0.9869 GB, free: 12.96 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.006466, allocations: 0 / 0.9869 GB, free: 12.96 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.283e-05/0.006489, allocations: 7.984 kB / 0.9869 GB, free: 12.95 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.072e-06/0.00649, allocations: 0 / 0.9869 GB, free: 12.95 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.786e-06/0.006499, allocations: 8 kB / 0.987 GB, free: 12.95 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.923e-06/0.006501, allocations: 4 kB / 0.987 GB, free: 12.94 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.006502, allocations: 400 / 0.987 GB, free: 12.94 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001498/0.006652, allocations: 211.4 kB / 0.9872 GB, free: 12.72 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 7.444e-06/0.006659, allocations: 7.891 kB / 0.9872 GB, free: 12.71 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.073e-05/0.00667, allocations: 0 / 0.9872 GB, free: 12.71 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.063e-05/0.006711, allocations: 7.984 kB / 0.9872 GB, free: 12.7 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.198e-05/0.006753, allocations: 19.91 kB / 0.9872 GB, free: 12.68 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.751e-06/0.006758, allocations: 0 / 0.9872 GB, free: 12.68 MB / 0.948 GB Notification: Performance of sorting global known variables: time 3.916e-05/0.006798, allocations: 95.27 kB / 0.9873 GB, free: 12.59 MB / 0.948 GB Notification: Performance of sort global known variables: time 5e-08/0.006798, allocations: 0 / 0.9873 GB, free: 12.59 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001695/0.006967, allocations: 15.94 kB / 0.9873 GB, free: 12.57 MB / 0.948 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.000115/0.007082, allocations: 108.2 kB / 0.9874 GB, free: 12.46 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0001568/0.007239, allocations: 75.88 kB / 0.9875 GB, free: 12.39 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.142e-06/0.00724, allocations: 3.938 kB / 0.9875 GB, free: 12.38 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 6.229e-05/0.007302, allocations: 31.92 kB / 0.9875 GB, free: 12.35 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001843/0.007487, allocations: 15.92 kB / 0.9875 GB, free: 12.34 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002897/0.007776, allocations: 187.7 kB / 0.9877 GB, free: 12.12 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.031e-05/0.007827, allocations: 75.58 kB / 0.9878 GB, free: 12.02 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.529e-05/0.007852, allocations: 12.5 kB / 0.9878 GB, free: 12.01 MB / 0.948 GB Notification: Performance of SimCode: time 8.01e-07/0.007853, allocations: 0 / 0.9878 GB, free: 12.01 MB / 0.948 GB Notification: Performance of Templates: time 0.001853/0.009706, allocations: 1.067 MB / 0.9888 GB, free: 10.95 MB / 0.948 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] "" Variables in the reference:time,samTri.y,triggeredSampler.u,triggeredSampler.y,samTri1.y,triggeredSampler1.u,triggeredSampler1.y Variables in the result:samTri.y,samTri1.y,time,triggeredSampler.u,triggeredSampler.y,triggeredSampler1.u,triggeredSampler1.y [Calling sys.exit(0), Time elapsed: 6.57369991671294]