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.001685/0.001685, allocations: 109.2 kB / 18.94 MB, free: 2.949 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.001869/0.001869, allocations: 218.9 kB / 22.26 MB, free: 5.121 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.643/1.643, allocations: 230.6 MB / 256 MB, free: 7.992 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.631/3.631, allocations: 0.49 GB / 0.7951 GB, free: 33.24 MB / 0.6231 GB " [Timeout remaining time 176] 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.002169/0.002169, allocations: 65.92 kB / 1.154 GB, free: 25.49 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4487/0.4508, allocations: 176.1 MB / 1.326 GB, free: 1.457 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.002622/0.4534, allocations: 0.7685 MB / 1.327 GB, free: 0.6953 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002075/0.4555, allocations: 1.205 MB / 1.328 GB, free: 15.48 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.135e-05/0.4556, allocations: 0 / 1.328 GB, free: 15.48 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 4.171e-05/0.4556, allocations: 3.938 kB / 1.328 GB, free: 15.47 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 9.801e-05/0.4557, allocations: 19.86 kB / 1.328 GB, free: 15.45 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006531/0.4564, allocations: 147.5 kB / 1.328 GB, free: 15.31 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002234/0.4566, allocations: 119.8 kB / 1.329 GB, free: 15.2 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001246/0.4567, allocations: 16.17 kB / 1.329 GB, free: 15.18 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001476/0.4569, allocations: 55.89 kB / 1.329 GB, free: 15.12 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001162/0.457, allocations: 47.81 kB / 1.329 GB, free: 15.07 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.863e-05/0.457, allocations: 12 kB / 1.329 GB, free: 15.06 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 9.486e-05/0.4571, allocations: 35.92 kB / 1.329 GB, free: 15.03 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.39e-05/0.4571, allocations: 7.984 kB / 1.329 GB, free: 15.02 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 7.851e-05/0.4572, allocations: 51.78 kB / 1.329 GB, free: 14.97 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002391/0.4575, allocations: 123.5 kB / 1.329 GB, free: 14.85 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.359e-06/0.4575, allocations: 0 / 1.329 GB, free: 14.85 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.953e-06/0.4575, allocations: 7.938 kB / 1.329 GB, free: 14.84 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.043e-05/0.4575, allocations: 0 / 1.329 GB, free: 14.84 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.0006945/0.4582, allocations: 343.8 kB / 1.329 GB, free: 14.47 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.738e-05/0.4582, allocations: 12.03 kB / 1.329 GB, free: 14.46 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001121/0.4583, allocations: 8.891 kB / 1.329 GB, free: 14.45 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001269/0.4585, allocations: 122.4 kB / 1.329 GB, free: 14.3 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.695e-05/0.4585, allocations: 4.375 kB / 1.329 GB, free: 14.3 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.766e-05/0.4585, allocations: 12.31 kB / 1.329 GB, free: 14.29 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002219/0.4587, allocations: 82.2 kB / 1.329 GB, free: 14.2 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.111e-05/0.4587, allocations: 3.938 kB / 1.329 GB, free: 14.2 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.212e-05/0.4587, allocations: 0 / 1.329 GB, free: 14.2 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.4588, allocations: 0 / 1.329 GB, free: 14.2 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000185/0.4589, allocations: 47.95 kB / 1.329 GB, free: 14.15 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005735/0.4595, allocations: 315.7 kB / 1.33 GB, free: 13.8 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001904/0.4597, allocations: 50.55 kB / 1.33 GB, free: 13.74 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001064/0.4598, allocations: 36.95 kB / 1.33 GB, free: 13.7 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.337e-05/0.4598, allocations: 0 / 1.33 GB, free: 13.7 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002909/0.4601, allocations: 95.33 kB / 1.33 GB, free: 13.6 MB / 1.029 GB Notification: Performance of pre-optimization done (n=8): time 1.353e-06/0.4601, allocations: 0 / 1.33 GB, free: 13.6 MB / 1.029 GB Notification: Performance of matching and sorting (n=8): time 0.0004923/0.4606, allocations: 149.6 kB / 1.33 GB, free: 13.45 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.766e-05/0.4607, allocations: 51.41 kB / 1.33 GB, free: 13.38 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000139/0.4608, allocations: 129.8 kB / 1.33 GB, free: 13.25 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.832e-05/0.4608, allocations: 33.7 kB / 1.33 GB, free: 13.21 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 8.815e-05/0.4609, allocations: 96.09 kB / 1.33 GB, free: 13.11 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.336e-05/0.461, allocations: 23.78 kB / 1.33 GB, free: 13.09 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.2e-05/0.4611, allocations: 37.7 kB / 1.33 GB, free: 13.04 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001987/0.4613, allocations: 326.7 kB / 1.331 GB, free: 12.71 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001632/0.4614, allocations: 51.97 kB / 1.331 GB, free: 12.66 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002157/0.4616, allocations: 93.11 kB / 1.331 GB, free: 12.55 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003013/0.4619, allocations: 142.8 kB / 1.331 GB, free: 12.39 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.4619, allocations: 4 kB / 1.331 GB, free: 12.39 MB / 1.029 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004841/0.4624, allocations: 219.2 kB / 1.331 GB, free: 12.16 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001237/0.4626, allocations: 33.7 kB / 1.331 GB, free: 12.12 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.4626, allocations: 4 kB / 1.331 GB, free: 12.12 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.079e-05/0.4626, allocations: 4 kB / 1.331 GB, free: 12.11 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001159/0.4627, allocations: 19.92 kB / 1.331 GB, free: 12.09 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.228e-06/0.4627, allocations: 12.41 kB / 1.331 GB, free: 12.08 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002073/0.4629, allocations: 31.95 kB / 1.331 GB, free: 12.05 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.194e-05/0.4629, allocations: 8 kB / 1.331 GB, free: 12.04 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.0001342/0.4631, allocations: 134.2 kB / 1.331 GB, free: 11.9 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.424e-05/0.4631, allocations: 3.953 kB / 1.331 GB, free: 11.9 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003347/0.4634, allocations: 133.9 kB / 1.332 GB, free: 11.76 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.484e-06/0.4634, allocations: 0 / 1.332 GB, free: 11.76 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.4634, allocations: 0 / 1.332 GB, free: 11.76 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.4634, allocations: 0 / 1.332 GB, free: 11.76 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005722/0.464, allocations: 349.5 kB / 1.332 GB, free: 11.37 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.464, allocations: 7.938 kB / 1.332 GB, free: 11.36 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.228e-05/0.4641, allocations: 11.92 kB / 1.332 GB, free: 11.35 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/0.4641, allocations: 4 kB / 1.332 GB, free: 11.34 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.049e-05/0.4641, allocations: 4 kB / 1.332 GB, free: 11.34 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.4641, allocations: 0 / 1.332 GB, free: 11.34 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.4641, allocations: 3.938 kB / 1.332 GB, free: 11.34 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003414/0.4644, allocations: 207.5 kB / 1.332 GB, free: 11.12 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.634e-05/0.4644, allocations: 11.95 kB / 1.332 GB, free: 11.11 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.654e-05/0.4645, allocations: 0 / 1.332 GB, free: 11.11 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.39e-05/0.4645, allocations: 11.98 kB / 1.332 GB, free: 11.09 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.885e-05/0.4646, allocations: 15.92 kB / 1.332 GB, free: 11.08 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.071e-06/0.4646, allocations: 0 / 1.332 GB, free: 11.08 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.549e-05/0.4647, allocations: 95.27 kB / 1.332 GB, free: 10.98 MB / 1.029 GB Notification: Performance of sort global known variables: time 6e-08/0.4647, allocations: 0 / 1.332 GB, free: 10.98 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002768/0.4649, allocations: 24 kB / 1.332 GB, free: 10.96 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.0001686/0.4651, allocations: 103.2 kB / 1.332 GB, free: 10.85 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004112/0.4655, allocations: 167.3 kB / 1.333 GB, free: 10.68 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.4655, allocations: 0 / 1.333 GB, free: 10.68 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001226/0.4657, allocations: 35.97 kB / 1.333 GB, free: 10.64 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002915/0.4659, allocations: 17.47 kB / 1.333 GB, free: 10.62 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004505/0.4664, allocations: 187.3 kB / 1.333 GB, free: 10.42 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003768/0.4668, allocations: 0.6924 MB / 1.334 GB, free: 9.699 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.216e-05/0.4668, allocations: 4 kB / 1.334 GB, free: 9.695 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.785e-05/0.4668, allocations: 15.38 kB / 1.334 GB, free: 9.68 MB / 1.029 GB Notification: Performance of SimCode: time 5.31e-07/0.4668, allocations: 0 / 1.334 GB, free: 9.68 MB / 1.029 GB Notification: Performance of Templates: time 0.005047/0.4719, allocations: 1.472 MB / 1.335 GB, free: 8.223 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/jenkins/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.04308516299352]