Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.SampleTriggerPositiveStartTime,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.SampleTriggerPositiveStartTime") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime,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.SampleTriggerPositiveStartTime") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001946/0.001946, allocations: 103.6 kB / 16.35 MB, free: 6.285 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.002237/0.002237, allocations: 193.5 kB / 17.29 MB, free: 5.863 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.386/1.386, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.293/2.293, allocations: 390.3 MB / 0.6655 GB, free: 0.6016 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001342/0.001342, allocations: 71.69 kB / 0.814 GB, free: 32.62 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3002/0.3016, allocations: 140.4 MB / 0.9511 GB, free: 8.047 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.002091/0.3037, allocations: 0.7612 MB / 0.9519 GB, free: 7.281 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001294/0.305, allocations: 1.072 MB / 0.9529 GB, free: 6.195 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.855e-05/0.3051, allocations: 0 / 0.9529 GB, free: 6.195 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.299e-05/0.3051, allocations: 7.922 kB / 0.9529 GB, free: 6.188 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 7.262e-05/0.3052, allocations: 15.88 kB / 0.9529 GB, free: 6.172 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003058/0.3055, allocations: 51.83 kB / 0.953 GB, free: 6.121 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001151/0.3057, allocations: 75.77 kB / 0.9531 GB, free: 6.047 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001116/0.3058, allocations: 16.17 kB / 0.9531 GB, free: 6.027 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 7.203e-05/0.3059, allocations: 27.92 kB / 0.9531 GB, free: 6 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 6.333e-05/0.3059, allocations: 31.84 kB / 0.9531 GB, free: 5.969 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.72e-05/0.3059, allocations: 11.94 kB / 0.9532 GB, free: 5.957 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 6.635e-05/0.306, allocations: 23.97 kB / 0.9532 GB, free: 5.934 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.171e-05/0.3061, allocations: 19.92 kB / 0.9532 GB, free: 5.914 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 3.944e-05/0.3061, allocations: 27.86 kB / 0.9532 GB, free: 5.887 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001364/0.3062, allocations: 79.75 kB / 0.9533 GB, free: 5.809 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.3062, allocations: 0 / 0.9533 GB, free: 5.809 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.543e-06/0.3063, allocations: 0 / 0.9533 GB, free: 5.809 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.3e-06/0.3063, allocations: 0 / 0.9533 GB, free: 5.809 MB / 0.7325 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.000557/0.3068, allocations: 384.2 kB / 0.9537 GB, free: 5.387 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.502e-05/0.3069, allocations: 8.031 kB / 0.9537 GB, free: 5.379 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.001e-05/0.3069, allocations: 4.938 kB / 0.9537 GB, free: 5.375 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000129/0.307, allocations: 184.1 kB / 0.9539 GB, free: 5.156 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.508e-05/0.3071, allocations: 8.375 kB / 0.9539 GB, free: 5.148 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.771e-05/0.3071, allocations: 4.375 kB / 0.9539 GB, free: 5.145 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001886/0.3073, allocations: 62.22 kB / 0.9539 GB, free: 5.078 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.083e-05/0.3073, allocations: 7.938 kB / 0.9539 GB, free: 5.07 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.447e-05/0.3073, allocations: 4 kB / 0.9539 GB, free: 5.066 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.89e-06/0.3073, allocations: 0 / 0.9539 GB, free: 5.066 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001669/0.3075, allocations: 47.94 kB / 0.954 GB, free: 5.02 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000692/0.3082, allocations: 328.6 kB / 0.9543 GB, free: 4.648 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001639/0.3084, allocations: 50.56 kB / 0.9543 GB, free: 4.59 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.842e-05/0.3085, allocations: 36.89 kB / 0.9544 GB, free: 4.551 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.539e-05/0.3085, allocations: 4 kB / 0.9544 GB, free: 4.547 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002241/0.3087, allocations: 79.41 kB / 0.9545 GB, free: 4.457 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 1.733e-06/0.3088, allocations: 0 / 0.9545 GB, free: 4.457 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.0004129/0.3092, allocations: 129.5 kB / 0.9546 GB, free: 4.324 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.72e-05/0.3092, allocations: 55.41 kB / 0.9546 GB, free: 4.258 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001136/0.3093, allocations: 121.8 kB / 0.9548 GB, free: 4.129 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.083e-05/0.3094, allocations: 29.7 kB / 0.9548 GB, free: 4.094 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 6.77e-05/0.3095, allocations: 96.03 kB / 0.9549 GB, free: 3.996 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.215e-05/0.3095, allocations: 19.75 kB / 0.9549 GB, free: 3.977 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.905e-05/0.3095, allocations: 25.7 kB / 0.9549 GB, free: 3.945 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001238/0.3097, allocations: 322.8 kB / 0.9552 GB, free: 3.621 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001017/0.3098, allocations: 39.91 kB / 0.9553 GB, free: 3.582 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001234/0.3099, allocations: 69.98 kB / 0.9553 GB, free: 3.492 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002168/0.3101, allocations: 105.9 kB / 0.9554 GB, free: 3.367 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.519e-06/0.3101, allocations: 0 / 0.9554 GB, free: 3.367 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002885/0.3104, allocations: 137.4 kB / 0.9556 GB, free: 3.227 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.741e-05/0.3105, allocations: 4 kB / 0.9556 GB, free: 3.223 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.3105, allocations: 4 kB / 0.9556 GB, free: 3.219 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.49e-05/0.3105, allocations: 0 / 0.9556 GB, free: 3.219 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001256/0.3106, allocations: 19.98 kB / 0.9556 GB, free: 3.199 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.355e-06/0.3106, allocations: 0 / 0.9556 GB, free: 3.199 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.569e-05/0.3107, allocations: 19.89 kB / 0.9556 GB, free: 3.18 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.63e-05/0.3108, allocations: 8.219 kB / 0.9556 GB, free: 3.172 MB / 0.7325 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 9.475e-05/0.3109, allocations: 123.7 kB / 0.9557 GB, free: 3.043 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.48e-05/0.3109, allocations: 7.906 kB / 0.9557 GB, free: 3.035 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.227e-05/0.3109, allocations: 12.36 kB / 0.9557 GB, free: 3.023 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.502e-06/0.3109, allocations: 0 / 0.9557 GB, free: 3.023 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.997e-06/0.3109, allocations: 8 kB / 0.9558 GB, free: 3.016 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.3109, allocations: 0 / 0.9558 GB, free: 3.016 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004608/0.3114, allocations: 374.4 kB / 0.9561 GB, free: 2.594 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.3114, allocations: 0 / 0.9561 GB, free: 2.594 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.95e-05/0.3115, allocations: 8 kB / 0.9561 GB, free: 2.586 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.3115, allocations: 0 / 0.9561 GB, free: 2.586 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.087e-05/0.3115, allocations: 4 kB / 0.9561 GB, free: 2.582 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.841e-06/0.3115, allocations: 7.922 kB / 0.9561 GB, free: 2.574 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.3115, allocations: 0 / 0.9561 GB, free: 2.574 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002653/0.3118, allocations: 203.4 kB / 0.9563 GB, free: 2.359 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.617e-05/0.3118, allocations: 84.95 kB / 0.9564 GB, free: 2.258 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.714e-05/0.3119, allocations: 3.984 kB / 0.9564 GB, free: 2.254 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.427e-05/0.312, allocations: 7.938 kB / 0.9564 GB, free: 2.246 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.79e-05/0.312, allocations: 7.984 kB / 0.9564 GB, free: 2.238 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.726e-06/0.312, allocations: 11.94 kB / 0.9564 GB, free: 2.227 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 5.489e-05/0.3121, allocations: 91.27 kB / 0.9565 GB, free: 2.137 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3121, allocations: 0 / 0.9565 GB, free: 2.137 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002511/0.3124, allocations: 16 kB / 0.9565 GB, free: 2.121 MB / 0.7325 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.0001647/0.3125, allocations: 108.2 kB / 0.9566 GB, free: 2.004 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002607/0.3128, allocations: 75.88 kB / 0.9567 GB, free: 1.93 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.3128, allocations: 3.938 kB / 0.9567 GB, free: 1.926 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001054/0.3129, allocations: 40.8 kB / 0.9568 GB, free: 1.887 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002697/0.3132, allocations: 16 kB / 0.9568 GB, free: 1.871 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000389/0.3136, allocations: 158.4 kB / 0.9569 GB, free: 1.688 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002459/0.3138, allocations: 0.6922 MB / 0.9576 GB, free: 0.9688 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 3.218e-05/0.3139, allocations: 4 kB / 0.9576 GB, free: 0.9648 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.933e-05/0.3139, allocations: 15.42 kB / 0.9576 GB, free: 0.9492 MB / 0.7325 GB Notification: Performance of SimCode: time 2.61e-07/0.3139, allocations: 4 kB / 0.9576 GB, free: 0.9453 MB / 0.7325 GB Notification: Performance of Templates: time 0.003564/0.3175, allocations: 0.9779 MB / 0.9586 GB, free: 12 kB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.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