Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008393/0.0008396, allocations: 97.64 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.006635/0.006635, allocations: 169.7 kB / 16.27 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.509/1.509, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.492/2.492, allocations: 390.9 MB / 0.6663 GB, free: 2.332 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003694/0.0003694, allocations: 12 kB / 0.816 GB, free: 13.18 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7966/0.797, allocations: 142.4 MB / 0.9551 GB, free: 7.773 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.001488/0.7986, allocations: 479.5 kB / 0.9555 GB, free: 7.41 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002156/0.8008, allocations: 1.065 MB / 0.9566 GB, free: 6.551 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.399e-05/0.8009, allocations: 0.9062 kB / 0.9566 GB, free: 6.551 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.077e-05/0.8009, allocations: 3.938 kB / 0.9566 GB, free: 6.547 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001166/0.801, allocations: 14.2 kB / 0.9566 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004001/0.8014, allocations: 44.34 kB / 0.9566 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001432/0.8016, allocations: 68.45 kB / 0.9567 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001621/0.8018, allocations: 19.08 kB / 0.9567 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001151/0.8019, allocations: 21.73 kB / 0.9567 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.842e-05/0.802, allocations: 28.47 kB / 0.9568 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.554e-05/0.802, allocations: 2.812 kB / 0.9568 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001217/0.8022, allocations: 17.05 kB / 0.9568 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.882e-05/0.8022, allocations: 18.55 kB / 0.9568 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 8.687e-05/0.8023, allocations: 49.75 kB / 0.9568 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000205/0.8025, allocations: 72.7 kB / 0.9569 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 9.508e-06/0.8025, allocations: 1.031 kB / 0.9569 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of FrontEnd: time 3.467e-06/0.8025, allocations: 0 / 0.9569 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 9.007e-06/0.8026, allocations: 0 / 0.9569 GB, free: 6.293 MB / 0.7169 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.0007734/0.8033, allocations: 374.4 kB / 0.9573 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 6.304e-05/0.8034, allocations: 14.28 kB / 0.9573 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.573e-05/0.8035, allocations: 8.031 kB / 0.9573 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001207/0.8036, allocations: 180.1 kB / 0.9575 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.594e-05/0.8036, allocations: 2.062 kB / 0.9575 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.495e-05/0.8037, allocations: 5.188 kB / 0.9575 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002529/0.8039, allocations: 75 kB / 0.9575 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.27e-05/0.8039, allocations: 3.938 kB / 0.9575 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.624e-05/0.804, allocations: 0 / 0.9575 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.175e-06/0.804, allocations: 9.875 kB / 0.9576 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001969/0.8042, allocations: 54.2 kB / 0.9576 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006841/0.8049, allocations: 326.6 kB / 0.9579 GB, free: 5.273 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001823/0.8051, allocations: 65.42 kB / 0.958 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001087/0.8052, allocations: 36.53 kB / 0.958 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.619e-05/0.8052, allocations: 1.469 kB / 0.958 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002282/0.8055, allocations: 82.72 kB / 0.9581 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 3.456e-06/0.8055, allocations: 3.984 kB / 0.9581 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004589/0.8059, allocations: 158.7 kB / 0.9582 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.995e-05/0.806, allocations: 56.5 kB / 0.9583 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.555e-05/0.8061, allocations: 133.4 kB / 0.9584 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.416e-05/0.8061, allocations: 27.05 kB / 0.9585 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.373e-05/0.8061, allocations: 87.05 kB / 0.9585 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.846e-05/0.8062, allocations: 14.34 kB / 0.9586 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.881e-05/0.8062, allocations: 21.89 kB / 0.9586 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.581e-05/0.8063, allocations: 320.1 kB / 0.9589 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001173/0.8064, allocations: 37.62 kB / 0.9589 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000132/0.8065, allocations: 74.7 kB / 0.959 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002332/0.8068, allocations: 125.2 kB / 0.9591 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.8068, allocations: 0 / 0.9591 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002986/0.8071, allocations: 143.6 kB / 0.9592 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.8071, allocations: 6.094 kB / 0.9592 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.673e-06/0.8071, allocations: 1.719 kB / 0.9592 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.822e-05/0.8071, allocations: 6.766 kB / 0.9593 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001269/0.8073, allocations: 22.27 kB / 0.9593 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.947e-06/0.8073, allocations: 2.062 kB / 0.9593 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.659e-05/0.8074, allocations: 11.88 kB / 0.9593 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.529e-05/0.8074, allocations: 9.672 kB / 0.9593 GB, free: 4.094 MB / 0.7169 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 7.328e-05/0.8075, allocations: 126.6 kB / 0.9594 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.258e-05/0.8075, allocations: 7.125 kB / 0.9594 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.812e-05/0.8075, allocations: 10 kB / 0.9594 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.8075, allocations: 0 / 0.9594 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.66e-06/0.8075, allocations: 1.469 kB / 0.9594 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.8076, allocations: 0 / 0.9594 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004341/0.808, allocations: 390.4 kB / 0.9598 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.808, allocations: 9.312 kB / 0.9598 GB, free: 3.574 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.602e-05/0.8081, allocations: 10.86 kB / 0.9598 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.8081, allocations: 1.375 kB / 0.9598 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.568e-06/0.8081, allocations: 0 / 0.9598 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/0.8081, allocations: 9.312 kB / 0.9598 GB, free: 3.562 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.8081, allocations: 3.938 kB / 0.9598 GB, free: 3.559 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002942/0.8084, allocations: 202.5 kB / 0.96 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.756e-05/0.8085, allocations: 87.77 kB / 0.9601 GB, free: 3.297 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.707e-05/0.8085, allocations: 0 / 0.9601 GB, free: 3.297 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.66e-05/0.8086, allocations: 18.8 kB / 0.9601 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.693e-05/0.8086, allocations: 6.734 kB / 0.9601 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.283e-06/0.8086, allocations: 1.375 kB / 0.9601 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.304e-05/0.8087, allocations: 88.91 kB / 0.9602 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8087, allocations: 0 / 0.9602 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000262/0.809, allocations: 21.73 kB / 0.9602 GB, free: 3.195 MB / 0.7169 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.0001712/0.8091, allocations: 103.9 kB / 0.9603 GB, free: 3.102 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003015/0.8094, allocations: 98.73 kB / 0.9604 GB, free: 3.059 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.205e-06/0.8095, allocations: 448 / 0.9604 GB, free: 3.059 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001233/0.8096, allocations: 40.73 kB / 0.9605 GB, free: 3.043 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002818/0.8099, allocations: 10.89 kB / 0.9605 GB, free: 3.039 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003505/0.8102, allocations: 184.8 kB / 0.9607 GB, free: 2.875 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001152/0.8104, allocations: 0.6852 MB / 0.9613 GB, free: 2.176 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.502e-05/0.8104, allocations: 15.83 kB / 0.9614 GB, free: 2.164 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.478e-05/0.8104, allocations: 11.56 kB / 0.9614 GB, free: 2.156 MB / 0.7169 GB Notification: Performance of SimCode: time 8.52e-07/0.8104, allocations: 0 / 0.9614 GB, free: 2.156 MB / 0.7169 GB Notification: Performance of Templates: time 0.00343/0.8139, allocations: 0.8572 MB / 0.9622 GB, free: 1.727 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,samTri.y,triggeredSampler.u,triggeredSampler.y,samTri1.y,triggeredSampler1.u,triggeredSampler1.y Variables in the result:ramp.duration,ramp.height,ramp.offset,ramp.startTime,samTri.period,samTri.shift,samTri.t0,samTri.y,samTri1.period,samTri1.shift,samTri1.t0,samTri1.y,time,triggeredSampler.u,triggeredSampler.y,triggeredSampler.y_start,triggeredSampler1.u,triggeredSampler1.y,triggeredSampler1.y_start