Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001843/0.001843, allocations: 79.86 kB / 19.18 MB, free: 2.527 MB / 14.72 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.002138/0.002138, allocations: 165.3 kB / 22.46 MB, free: 5.359 MB / 14.72 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.493/1.493, allocations: 177.1 MB / 202.8 MB, free: 9.176 MB / 190.1 MB " [Timeout remaining time 178] 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 2.922/2.922, allocations: 377.8 MB / 0.6221 GB, free: 12.62 MB / 0.5919 GB " [Timeout remaining time 176] 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.Discrete.Validation.Sampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sampler1.u|sampler1.y",fileNamePrefix="Buildings_12_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_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.365e-06/2.365e-06, allocations: 0 / 0.9814 GB, free: 10.96 MB / 0.8887 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.888e-05/3.125e-05, allocations: 2.281 kB / 0.9814 GB, free: 10.96 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001797/0.001828, allocations: 0.6624 MB / 0.9821 GB, free: 10.29 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001603/0.003431, allocations: 1.085 MB / 0.9831 GB, free: 9.195 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.704e-05/0.003478, allocations: 0 / 0.9831 GB, free: 9.195 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 3.218e-05/0.003511, allocations: 3.938 kB / 0.9831 GB, free: 9.191 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 6.495e-05/0.003576, allocations: 3.938 kB / 0.9831 GB, free: 9.188 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003413/0.003917, allocations: 47.77 kB / 0.9832 GB, free: 9.141 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001119/0.004029, allocations: 55.84 kB / 0.9832 GB, free: 9.086 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001257/0.004155, allocations: 4 kB / 0.9832 GB, free: 9.082 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001086/0.004263, allocations: 35.89 kB / 0.9833 GB, free: 9.047 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 6.156e-05/0.004325, allocations: 11.98 kB / 0.9833 GB, free: 9.035 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.075e-05/0.004345, allocations: 4 kB / 0.9833 GB, free: 9.031 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 7.772e-05/0.004423, allocations: 19.98 kB / 0.9833 GB, free: 9.012 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 3.013e-05/0.004453, allocations: 7.984 kB / 0.9833 GB, free: 9.004 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 4.706e-05/0.0045, allocations: 19.86 kB / 0.9833 GB, free: 8.984 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.000184/0.004684, allocations: 75.7 kB / 0.9834 GB, free: 8.91 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.004688, allocations: 0 / 0.9834 GB, free: 8.91 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.022e-06/0.004689, allocations: 4 kB / 0.9834 GB, free: 8.906 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 5.37e-06/0.004694, allocations: 0 / 0.9834 GB, free: 8.906 MB / 0.8887 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.0006771/0.005371, allocations: 290.2 kB / 0.9837 GB, free: 8.59 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.515e-05/0.005417, allocations: 12.03 kB / 0.9837 GB, free: 8.578 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.708e-05/0.005514, allocations: 0.9375 kB / 0.9837 GB, free: 8.578 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001185/0.005632, allocations: 117.7 kB / 0.9838 GB, free: 8.438 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.513e-05/0.005647, allocations: 4.375 kB / 0.9838 GB, free: 8.434 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.107e-05/0.005658, allocations: 384 / 0.9838 GB, free: 8.434 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002235/0.005882, allocations: 70.23 kB / 0.9839 GB, free: 8.359 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.917e-06/0.005891, allocations: 192 / 0.9839 GB, free: 8.359 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.159e-05/0.005902, allocations: 384 / 0.9839 GB, free: 8.359 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.138e-06/0.005906, allocations: 384 / 0.9839 GB, free: 8.359 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002286/0.006135, allocations: 51.83 kB / 0.9839 GB, free: 8.309 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004697/0.006605, allocations: 212.5 kB / 0.9841 GB, free: 8.07 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001825/0.006787, allocations: 50.55 kB / 0.9842 GB, free: 8.012 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001035/0.006891, allocations: 32.95 kB / 0.9842 GB, free: 7.977 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 2.398e-05/0.006915, allocations: 4 kB / 0.9842 GB, free: 7.973 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002456/0.00716, allocations: 79.25 kB / 0.9843 GB, free: 7.883 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=6): time 1.663e-06/0.007162, allocations: 0 / 0.9843 GB, free: 7.883 MB / 0.8887 GB Notification: Performance of matching and sorting (n=6): time 0.0004483/0.00761, allocations: 125.6 kB / 0.9844 GB, free: 7.754 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.483e-05/0.007665, allocations: 51.41 kB / 0.9844 GB, free: 7.691 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001061/0.007771, allocations: 109.8 kB / 0.9846 GB, free: 7.574 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 2.211e-05/0.007793, allocations: 25.7 kB / 0.9846 GB, free: 7.543 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 7.047e-05/0.007864, allocations: 92.12 kB / 0.9847 GB, free: 7.449 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 3.295e-05/0.007897, allocations: 11.84 kB / 0.9847 GB, free: 7.438 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.614e-05/0.007943, allocations: 21.72 kB / 0.9847 GB, free: 7.41 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001608/0.008104, allocations: 322.8 kB / 0.985 GB, free: 7.086 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001002/0.008204, allocations: 23.98 kB / 0.985 GB, free: 7.062 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001281/0.008332, allocations: 47.41 kB / 0.9851 GB, free: 7.004 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002308/0.008563, allocations: 87.33 kB / 0.9852 GB, free: 6.906 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.008565, allocations: 0 / 0.9852 GB, free: 6.906 MB / 0.8887 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002761/0.008841, allocations: 101.5 kB / 0.9853 GB, free: 6.801 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 2.025e-05/0.008861, allocations: 15.88 kB / 0.9853 GB, free: 6.785 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.67e-06/0.008867, allocations: 4.094 kB / 0.9853 GB, free: 6.781 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.929e-05/0.008886, allocations: 0 / 0.9853 GB, free: 6.781 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001134/0.008999, allocations: 15.98 kB / 0.9853 GB, free: 6.766 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.097e-06/0.009008, allocations: 3.938 kB / 0.9853 GB, free: 6.762 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.378e-05/0.009072, allocations: 4 kB / 0.9853 GB, free: 6.758 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.364e-05/0.009086, allocations: 7.984 kB / 0.9853 GB, free: 6.75 MB / 0.8887 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 0.0001039/0.00919, allocations: 117.8 kB / 0.9854 GB, free: 6.625 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.617e-05/0.009206, allocations: 7.938 kB / 0.9854 GB, free: 6.617 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003057/0.009512, allocations: 106.5 kB / 0.9855 GB, free: 6.508 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.009518, allocations: 4 kB / 0.9855 GB, free: 6.504 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.009523, allocations: 0 / 0.9855 GB, free: 6.504 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.009527, allocations: 64 / 0.9855 GB, free: 6.504 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000489/0.01002, allocations: 302.2 kB / 0.9858 GB, free: 6.172 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.592e-06/0.01002, allocations: 3.984 kB / 0.9858 GB, free: 6.168 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.923e-05/0.01008, allocations: 8 kB / 0.9858 GB, free: 6.16 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.01008, allocations: 0 / 0.9858 GB, free: 6.16 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.888e-06/0.01009, allocations: 0 / 0.9858 GB, free: 6.16 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.0101, allocations: 7.984 kB / 0.9858 GB, free: 6.152 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.0101, allocations: 0 / 0.9858 GB, free: 6.152 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003145/0.01041, allocations: 195.4 kB / 0.986 GB, free: 5.945 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 1.438e-05/0.01043, allocations: 7.953 kB / 0.986 GB, free: 5.938 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.808e-05/0.01044, allocations: 3.984 kB / 0.986 GB, free: 5.934 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.463e-05/0.01054, allocations: 4 kB / 0.986 GB, free: 5.93 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.805e-05/0.01059, allocations: 11.98 kB / 0.986 GB, free: 5.918 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.172e-05/0.0106, allocations: 0 / 0.986 GB, free: 5.918 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 5.07e-05/0.01065, allocations: 87.27 kB / 0.9861 GB, free: 5.832 MB / 0.8887 GB Notification: Performance of sort global known variables: time 7e-08/0.01065, allocations: 0 / 0.9861 GB, free: 5.832 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.0002452/0.01089, allocations: 19.94 kB / 0.9862 GB, free: 5.812 MB / 0.8887 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 0.0001729/0.01107, allocations: 95.78 kB / 0.9862 GB, free: 5.711 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.0002727/0.01134, allocations: 63.89 kB / 0.9863 GB, free: 5.648 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.01134, allocations: 0 / 0.9863 GB, free: 5.648 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0001192/0.01146, allocations: 40.09 kB / 0.9863 GB, free: 5.609 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000267/0.01173, allocations: 7.938 kB / 0.9863 GB, free: 5.602 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003936/0.01212, allocations: 137.2 kB / 0.9865 GB, free: 5.441 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.902e-05/0.01219, allocations: 67.28 kB / 0.9865 GB, free: 5.355 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 3.206e-05/0.01222, allocations: 7.984 kB / 0.9866 GB, free: 5.348 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.289e-05/0.01226, allocations: 12.5 kB / 0.9866 GB, free: 5.336 MB / 0.8887 GB Notification: Performance of SimCode: time 3.71e-07/0.01226, allocations: 0 / 0.9866 GB, free: 5.336 MB / 0.8887 GB Notification: Performance of Templates: time 0.003928/0.01618, allocations: 0.8364 MB / 0.9874 GB, free: 4.523 MB / 0.8887 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.314699172973633]