Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.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.002129/0.002129, allocations: 104.4 kB / 19.7 MB, free: 2.125 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.002254/0.002254, allocations: 213.5 kB / 22.99 MB, free: 4.945 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.47/1.47, allocations: 230.6 MB / 256.8 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.154/3.154, allocations: 0.4893 GB / 0.7951 GB, free: 35.73 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002202/0.002202, allocations: 63 kB / 1.154 GB, free: 25.54 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3435/0.3457, allocations: 176.1 MB / 1.326 GB, free: 1.91 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.002231/0.348, allocations: 0.7393 MB / 1.327 GB, free: 1.176 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001751/0.3497, allocations: 1.186 MB / 1.328 GB, free: 15.98 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.417e-05/0.3498, allocations: 0 / 1.328 GB, free: 15.98 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 3.932e-05/0.3498, allocations: 3.938 kB / 1.328 GB, free: 15.97 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 8.527e-05/0.3499, allocations: 23.86 kB / 1.328 GB, free: 15.95 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005632/0.3505, allocations: 138.1 kB / 1.328 GB, free: 15.82 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002171/0.3507, allocations: 127.7 kB / 1.328 GB, free: 15.7 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001085/0.3508, allocations: 16.17 kB / 1.328 GB, free: 15.68 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001148/0.3509, allocations: 51.84 kB / 1.328 GB, free: 15.62 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001128/0.351, allocations: 47.75 kB / 1.329 GB, free: 15.58 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 3.156e-05/0.351, allocations: 8 kB / 1.329 GB, free: 15.57 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001106/0.3512, allocations: 27.98 kB / 1.329 GB, free: 15.54 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 3.275e-05/0.3512, allocations: 23.92 kB / 1.329 GB, free: 15.52 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 6.914e-05/0.3513, allocations: 35.91 kB / 1.329 GB, free: 15.48 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002249/0.3515, allocations: 131.5 kB / 1.329 GB, free: 15.36 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.3515, allocations: 0 / 1.329 GB, free: 15.36 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.403e-06/0.3515, allocations: 0 / 1.329 GB, free: 15.36 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.58e-06/0.3515, allocations: 0 / 1.329 GB, free: 15.36 MB / 1.029 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006667/0.3522, allocations: 343.7 kB / 1.329 GB, free: 14.98 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.781e-05/0.3522, allocations: 8.031 kB / 1.329 GB, free: 14.98 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001048/0.3523, allocations: 12.89 kB / 1.329 GB, free: 14.96 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001338/0.3524, allocations: 122.4 kB / 1.329 GB, free: 14.82 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.968e-05/0.3525, allocations: 16.38 kB / 1.329 GB, free: 14.8 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.971e-05/0.3525, allocations: 8.375 kB / 1.329 GB, free: 14.8 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002149/0.3527, allocations: 74.22 kB / 1.329 GB, free: 14.72 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.181e-05/0.3527, allocations: 3.938 kB / 1.329 GB, free: 14.71 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.043e-05/0.3527, allocations: 0 / 1.329 GB, free: 14.71 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.509e-06/0.3527, allocations: 0 / 1.329 GB, free: 14.71 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001944/0.3529, allocations: 51.89 kB / 1.329 GB, free: 14.66 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005089/0.3534, allocations: 264.4 kB / 1.33 GB, free: 14.38 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001815/0.3536, allocations: 62.58 kB / 1.33 GB, free: 14.3 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001012/0.3537, allocations: 32.94 kB / 1.33 GB, free: 14.27 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.119e-05/0.3537, allocations: 0 / 1.33 GB, free: 14.27 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002371/0.354, allocations: 91.34 kB / 1.33 GB, free: 14.17 MB / 1.029 GB Notification: Performance of pre-optimization done (n=8): time 1.443e-06/0.354, allocations: 0 / 1.33 GB, free: 14.17 MB / 1.029 GB Notification: Performance of matching and sorting (n=8): time 0.0004683/0.3544, allocations: 153.8 kB / 1.33 GB, free: 14.01 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.176e-05/0.3545, allocations: 55.34 kB / 1.33 GB, free: 13.95 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001146/0.3546, allocations: 129.8 kB / 1.33 GB, free: 13.81 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.174e-05/0.3546, allocations: 33.7 kB / 1.33 GB, free: 13.77 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 7.252e-05/0.3547, allocations: 92.09 kB / 1.33 GB, free: 13.68 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.926e-05/0.3547, allocations: 27.77 kB / 1.33 GB, free: 13.65 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.553e-05/0.3548, allocations: 37.7 kB / 1.33 GB, free: 13.61 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001589/0.355, allocations: 326.8 kB / 1.331 GB, free: 13.28 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001934/0.3552, allocations: 81.66 kB / 1.331 GB, free: 13.19 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002094/0.3554, allocations: 126.8 kB / 1.331 GB, free: 13.04 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003011/0.3557, allocations: 142.8 kB / 1.331 GB, free: 12.88 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.3557, allocations: 0 / 1.331 GB, free: 12.88 MB / 1.029 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000512/0.3562, allocations: 252.8 kB / 1.331 GB, free: 12.61 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 4.082e-05/0.3562, allocations: 33.7 kB / 1.331 GB, free: 12.57 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.06e-06/0.3562, allocations: 0 / 1.331 GB, free: 12.57 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.673e-05/0.3562, allocations: 0 / 1.331 GB, free: 12.57 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001023/0.3563, allocations: 23.92 kB / 1.331 GB, free: 12.55 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.255e-06/0.3564, allocations: 4 kB / 1.331 GB, free: 12.55 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002164/0.3566, allocations: 36.11 kB / 1.331 GB, free: 12.51 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.941e-05/0.3566, allocations: 4 kB / 1.331 GB, free: 12.51 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 (triSam1.y,$PRE.triSam1.y,triSam.y,$PRE.triSam.y,booPul.y,$PRE.booPul.y,$whenCondition3,$whenCondition1,$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): 10 * Array equations: 0 * Algorithm blocks: 1 * 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.0001175/0.3567, allocations: 136.2 kB / 1.331 GB, free: 12.37 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.869e-05/0.3567, allocations: 11.94 kB / 1.331 GB, free: 12.36 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003217/0.357, allocations: 118 kB / 1.332 GB, free: 12.23 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.3571, allocations: 0 / 1.332 GB, free: 12.23 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.3571, allocations: 4 kB / 1.332 GB, free: 12.23 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.985e-06/0.3571, allocations: 0 / 1.332 GB, free: 12.23 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004401/0.3575, allocations: 326.1 kB / 1.332 GB, free: 11.87 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.3575, allocations: 0 / 1.332 GB, free: 11.87 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.511e-05/0.3576, allocations: 11.98 kB / 1.332 GB, free: 11.86 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.3576, allocations: 0 / 1.332 GB, free: 11.86 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.096e-05/0.3576, allocations: 4 kB / 1.332 GB, free: 11.86 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.3576, allocations: 0 / 1.332 GB, free: 11.86 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.3576, allocations: 0 / 1.332 GB, free: 11.86 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003385/0.3579, allocations: 227.4 kB / 1.332 GB, free: 11.62 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.549e-05/0.3579, allocations: 11.94 kB / 1.332 GB, free: 11.61 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.917e-05/0.358, allocations: 4 kB / 1.332 GB, free: 11.6 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.85e-05/0.358, allocations: 4 kB / 1.332 GB, free: 11.6 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.799e-05/0.3581, allocations: 7.922 kB / 1.332 GB, free: 11.59 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.061e-05/0.3581, allocations: 8 kB / 1.332 GB, free: 11.58 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.182e-05/0.3582, allocations: 95.2 kB / 1.332 GB, free: 11.49 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3582, allocations: 3.938 kB / 1.332 GB, free: 11.48 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002709/0.3584, allocations: 20 kB / 1.332 GB, free: 11.46 MB / 1.029 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 ($whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triSam.y,triSam1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001481/0.3586, allocations: 115.2 kB / 1.332 GB, free: 11.34 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004316/0.359, allocations: 189 kB / 1.333 GB, free: 11.14 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.043e-06/0.359, allocations: 0 / 1.333 GB, free: 11.14 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001337/0.3591, allocations: 39.91 kB / 1.333 GB, free: 11.1 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002881/0.3594, allocations: 24.23 kB / 1.333 GB, free: 11.08 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004298/0.3599, allocations: 196.9 kB / 1.333 GB, free: 10.86 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.428e-05/0.3599, allocations: 75.27 kB / 1.333 GB, free: 10.76 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.189e-05/0.36, allocations: 11.44 kB / 1.333 GB, free: 10.75 MB / 1.029 GB Notification: Performance of SimCode: time 4.61e-07/0.36, allocations: 4 kB / 1.333 GB, free: 10.75 MB / 1.029 GB Notification: Performance of Templates: time 0.003269/0.3632, allocations: 1.329 MB / 1.334 GB, free: 9.426 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.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: 10.994375265203416]