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.001604/0.001604, allocations: 118.2 kB / 17.13 MB, free: 5.945 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.001755/0.001755, allocations: 209.5 kB / 20.09 MB, free: 2.996 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.499/1.499, allocations: 230.6 MB / 253.5 MB, free: 15.11 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 2.888/2.888, allocations: 0.49 GB / 0.7923 GB, free: 1.293 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.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: 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.002059/0.002059, allocations: 63.91 kB / 1.15 GB, free: 14.88 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9547/0.9568, allocations: 176.1 MB / 1.322 GB, free: 25.04 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.00165/0.9584, allocations: 0.7563 MB / 1.323 GB, free: 24.56 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001011/0.9594, allocations: 1.107 MB / 1.324 GB, free: 23.74 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.551e-05/0.9595, allocations: 2.719 kB / 1.324 GB, free: 23.74 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 3.106e-05/0.9595, allocations: 7.875 kB / 1.324 GB, free: 23.73 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 6.544e-05/0.9596, allocations: 18.16 kB / 1.324 GB, free: 23.72 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002629/0.9598, allocations: 44.91 kB / 1.324 GB, free: 23.7 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001003/0.9599, allocations: 79.38 kB / 1.324 GB, free: 23.66 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 9.244e-05/0.96, allocations: 13.92 kB / 1.324 GB, free: 23.65 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 6.416e-05/0.9601, allocations: 29.47 kB / 1.324 GB, free: 23.64 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 5.219e-05/0.9601, allocations: 37.17 kB / 1.324 GB, free: 23.62 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.569e-05/0.9601, allocations: 5.25 kB / 1.324 GB, free: 23.62 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 5.416e-05/0.9602, allocations: 18.7 kB / 1.324 GB, free: 23.61 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 1.804e-05/0.9602, allocations: 18.3 kB / 1.324 GB, free: 23.6 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 3.256e-05/0.9603, allocations: 30.78 kB / 1.324 GB, free: 23.58 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001213/0.9604, allocations: 81.95 kB / 1.324 GB, free: 23.55 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.9604, allocations: 0 / 1.324 GB, free: 23.55 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.533e-06/0.9604, allocations: 0 / 1.324 GB, free: 23.55 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.721e-06/0.9604, allocations: 3.125 kB / 1.324 GB, free: 23.55 MB / 1.061 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.0004603/0.9608, allocations: 376.3 kB / 1.325 GB, free: 23.18 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.367e-05/0.9609, allocations: 11.09 kB / 1.325 GB, free: 23.18 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.303e-05/0.9609, allocations: 11.61 kB / 1.325 GB, free: 23.17 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.386e-05/0.961, allocations: 174.5 kB / 1.325 GB, free: 22.96 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.253e-05/0.961, allocations: 7.406 kB / 1.325 GB, free: 22.96 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.372e-05/0.961, allocations: 3.312 kB / 1.325 GB, free: 22.96 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001788/0.9612, allocations: 66.5 kB / 1.325 GB, free: 22.92 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.435e-06/0.9612, allocations: 3.938 kB / 1.325 GB, free: 22.92 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.888e-06/0.9612, allocations: 4 kB / 1.325 GB, free: 22.91 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.977e-06/0.9612, allocations: 4 kB / 1.325 GB, free: 22.91 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001708/0.9614, allocations: 45.77 kB / 1.325 GB, free: 22.9 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005164/0.9619, allocations: 326 kB / 1.325 GB, free: 22.6 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001473/0.9621, allocations: 58.36 kB / 1.325 GB, free: 22.56 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.189e-05/0.9622, allocations: 30.22 kB / 1.325 GB, free: 22.55 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.783e-05/0.9622, allocations: 2.875 kB / 1.325 GB, free: 22.55 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001764/0.9624, allocations: 78.81 kB / 1.325 GB, free: 22.49 MB / 1.061 GB Notification: Performance of pre-optimization done (n=7): time 1.253e-06/0.9624, allocations: 0 / 1.325 GB, free: 22.49 MB / 1.061 GB Notification: Performance of matching and sorting (n=7): time 0.0004019/0.9628, allocations: 128.5 kB / 1.325 GB, free: 22.43 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.985e-05/0.9628, allocations: 62.28 kB / 1.326 GB, free: 22.36 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.976e-05/0.9629, allocations: 123.7 kB / 1.326 GB, free: 22.25 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.26e-05/0.9629, allocations: 28.98 kB / 1.326 GB, free: 22.22 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 3.411e-05/0.9629, allocations: 94.83 kB / 1.326 GB, free: 22.12 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.725e-05/0.9629, allocations: 18.41 kB / 1.326 GB, free: 22.11 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.487e-05/0.963, allocations: 32.23 kB / 1.326 GB, free: 22.09 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 5.155e-05/0.963, allocations: 326 kB / 1.326 GB, free: 21.76 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001085/0.9631, allocations: 27.31 kB / 1.326 GB, free: 21.76 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001184/0.9632, allocations: 71.86 kB / 1.326 GB, free: 21.7 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002076/0.9635, allocations: 111.3 kB / 1.326 GB, free: 21.61 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.9635, allocations: 4 kB / 1.326 GB, free: 21.61 MB / 1.061 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002796/0.9637, allocations: 132.2 kB / 1.326 GB, free: 21.55 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.251e-05/0.9637, allocations: 5.031 kB / 1.326 GB, free: 21.55 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.9638, allocations: 2.656 kB / 1.326 GB, free: 21.55 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.556e-05/0.9638, allocations: 0 / 1.326 GB, free: 21.55 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001223/0.9639, allocations: 20.59 kB / 1.326 GB, free: 21.54 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.102e-06/0.9639, allocations: 6.625 kB / 1.326 GB, free: 21.54 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.11e-05/0.964, allocations: 8.344 kB / 1.326 GB, free: 21.54 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.258e-05/0.964, allocations: 5.219 kB / 1.326 GB, free: 21.54 MB / 1.061 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.408e-05/0.9641, allocations: 126.2 kB / 1.327 GB, free: 21.41 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.297e-05/0.9641, allocations: 6.516 kB / 1.327 GB, free: 21.41 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.464e-05/0.9641, allocations: 10.91 kB / 1.327 GB, free: 21.4 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.864e-06/0.9641, allocations: 0 / 1.327 GB, free: 21.4 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.9641, allocations: 0 / 1.327 GB, free: 21.4 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.9641, allocations: 6.625 kB / 1.327 GB, free: 21.39 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003701/0.9645, allocations: 377.5 kB / 1.327 GB, free: 21.05 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.9645, allocations: 6.875 kB / 1.327 GB, free: 21.05 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.425e-05/0.9645, allocations: 10.62 kB / 1.327 GB, free: 21.05 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.9645, allocations: 2.75 kB / 1.327 GB, free: 21.05 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.704e-06/0.9645, allocations: 0 / 1.327 GB, free: 21.05 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.724e-06/0.9645, allocations: 3.938 kB / 1.327 GB, free: 21.04 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.9645, allocations: 3.469 kB / 1.327 GB, free: 21.04 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000241/0.9648, allocations: 204.2 kB / 1.327 GB, free: 20.89 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.019e-05/0.9648, allocations: 85.05 kB / 1.327 GB, free: 20.79 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.485e-05/0.9648, allocations: 2.75 kB / 1.327 GB, free: 20.79 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.433e-05/0.9649, allocations: 17.84 kB / 1.327 GB, free: 20.77 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.271e-05/0.9649, allocations: 5.984 kB / 1.327 GB, free: 20.77 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.382e-06/0.9649, allocations: 6.875 kB / 1.327 GB, free: 20.77 MB / 1.061 GB Notification: Performance of sorting global known variables: time 3.116e-05/0.965, allocations: 90.88 kB / 1.327 GB, free: 20.69 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/0.965, allocations: 0 / 1.327 GB, free: 20.69 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.000256/0.9652, allocations: 18.41 kB / 1.327 GB, free: 20.69 MB / 1.061 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.0001262/0.9654, allocations: 103.4 kB / 1.328 GB, free: 20.6 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002591/0.9656, allocations: 79.08 kB / 1.328 GB, free: 20.58 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.9656, allocations: 0 / 1.328 GB, free: 20.58 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001059/0.9657, allocations: 34.28 kB / 1.328 GB, free: 20.57 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002584/0.966, allocations: 9.922 kB / 1.328 GB, free: 20.57 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003215/0.9663, allocations: 202.4 kB / 1.328 GB, free: 20.39 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.764e-05/0.9664, allocations: 0.6908 MB / 1.328 GB, free: 19.69 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.202e-05/0.9664, allocations: 11.44 kB / 1.329 GB, free: 19.68 MB / 1.061 GB Notification: Performance of SimCode: time 3.21e-07/0.9664, allocations: 3.938 kB / 1.329 GB, free: 19.68 MB / 1.061 GB Notification: Performance of Templates: time 0.002707/0.9691, allocations: 1.046 MB / 1.33 GB, free: 19.59 MB / 1.061 GB " [Timeout remaining time 299] 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/jenkins1/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: 11.4442791879992]