Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_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_latest_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.001543/0.001543, allocations: 105.4 kB / 15.99 MB, free: 6.348 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.001763/0.001763, allocations: 198.9 kB / 16.91 MB, free: 6.188 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.785/1.785, allocations: 222.9 MB / 240.6 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.632/2.632, allocations: 469.4 MB / 0.7423 GB, free: 3.812 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001417/0.001417, allocations: 68.14 kB / 0.9083 GB, free: 14.46 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3047/0.3061, allocations: 159.1 MB / 1.064 GB, free: 15.34 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.002368/0.3085, allocations: 0.8103 MB / 1.065 GB, free: 14.52 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001447/0.31, allocations: 1.077 MB / 1.066 GB, free: 13.43 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.515e-05/0.3101, allocations: 4 kB / 1.066 GB, free: 13.43 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.902e-05/0.3101, allocations: 3.938 kB / 1.066 GB, free: 13.43 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 7.785e-05/0.3102, allocations: 3.938 kB / 1.066 GB, free: 13.42 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.000361/0.3106, allocations: 43.95 kB / 1.066 GB, free: 13.38 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001139/0.3107, allocations: 79.72 kB / 1.066 GB, free: 13.3 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001321/0.3108, allocations: 16.19 kB / 1.066 GB, free: 13.28 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 9.89e-05/0.3109, allocations: 27.91 kB / 1.066 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 8.172e-05/0.311, allocations: 35.84 kB / 1.066 GB, free: 13.22 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 2.133e-05/0.3111, allocations: 4 kB / 1.066 GB, free: 13.21 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 8.009e-05/0.3111, allocations: 19.98 kB / 1.066 GB, free: 13.2 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 2.462e-05/0.3112, allocations: 11.98 kB / 1.066 GB, free: 13.18 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 5.683e-05/0.3112, allocations: 39.78 kB / 1.066 GB, free: 13.14 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001227/0.3114, allocations: 47.91 kB / 1.066 GB, free: 13.1 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.3114, allocations: 0 / 1.066 GB, free: 13.1 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.374e-06/0.3114, allocations: 4 kB / 1.066 GB, free: 13.09 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 6.822e-06/0.3114, allocations: 0 / 1.066 GB, free: 13.09 MB / 0.8419 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.0005598/0.312, allocations: 379.5 kB / 1.066 GB, free: 12.68 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.285e-05/0.312, allocations: 8.625 kB / 1.066 GB, free: 12.67 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.335e-05/0.3121, allocations: 12.84 kB / 1.066 GB, free: 12.66 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001285/0.3122, allocations: 176.2 kB / 1.066 GB, free: 12.45 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.601e-05/0.3122, allocations: 4.375 kB / 1.066 GB, free: 12.44 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.894e-05/0.3123, allocations: 4.375 kB / 1.066 GB, free: 12.44 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002093/0.3125, allocations: 74.22 kB / 1.067 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.192e-05/0.3125, allocations: 3.938 kB / 1.067 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.202e-05/0.3125, allocations: 0 / 1.067 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/0.3125, allocations: 0 / 1.067 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001798/0.3127, allocations: 51.83 kB / 1.067 GB, free: 12.3 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000665/0.3134, allocations: 320.7 kB / 1.067 GB, free: 11.94 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001741/0.3136, allocations: 54.66 kB / 1.067 GB, free: 11.88 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001031/0.3137, allocations: 36.89 kB / 1.067 GB, free: 11.84 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.725e-05/0.3137, allocations: 4 kB / 1.067 GB, free: 11.84 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002337/0.314, allocations: 75.38 kB / 1.067 GB, free: 11.75 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=7): time 1.453e-06/0.314, allocations: 0 / 1.067 GB, free: 11.75 MB / 0.8419 GB Notification: Performance of matching and sorting (n=7): time 0.0004316/0.3144, allocations: 133.5 kB / 1.067 GB, free: 11.61 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.808e-05/0.3145, allocations: 55.41 kB / 1.067 GB, free: 11.55 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001012/0.3146, allocations: 117.8 kB / 1.067 GB, free: 11.42 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.121e-05/0.3146, allocations: 41.64 kB / 1.067 GB, free: 11.38 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 5.492e-05/0.3147, allocations: 92.03 kB / 1.067 GB, free: 11.28 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.212e-05/0.3147, allocations: 19.75 kB / 1.068 GB, free: 11.26 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.355e-05/0.3148, allocations: 29.7 kB / 1.068 GB, free: 11.23 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001047/0.3149, allocations: 322.8 kB / 1.068 GB, free: 10.9 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001122/0.315, allocations: 27.98 kB / 1.068 GB, free: 10.88 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001378/0.3151, allocations: 77.97 kB / 1.068 GB, free: 10.78 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002264/0.3154, allocations: 105.9 kB / 1.068 GB, free: 10.65 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.3154, allocations: 0 / 1.068 GB, free: 10.65 MB / 0.8419 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003207/0.3157, allocations: 133.6 kB / 1.068 GB, free: 10.52 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.726e-05/0.3157, allocations: 8 kB / 1.068 GB, free: 10.51 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.3157, allocations: 0 / 1.068 GB, free: 10.51 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.592e-05/0.3158, allocations: 7.984 kB / 1.068 GB, free: 10.5 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001334/0.3159, allocations: 19.98 kB / 1.068 GB, free: 10.48 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.836e-06/0.3159, allocations: 3.938 kB / 1.068 GB, free: 10.48 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.718e-05/0.316, allocations: 11.98 kB / 1.068 GB, free: 10.46 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.435e-05/0.316, allocations: 4 kB / 1.068 GB, free: 10.46 MB / 0.8419 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.827e-05/0.3161, allocations: 124.3 kB / 1.068 GB, free: 10.33 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.528e-05/0.3162, allocations: 7.906 kB / 1.068 GB, free: 10.32 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.446e-05/0.3162, allocations: 12.36 kB / 1.068 GB, free: 10.31 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.3162, allocations: 4 kB / 1.068 GB, free: 10.31 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.561e-06/0.3162, allocations: 0 / 1.068 GB, free: 10.31 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.3162, allocations: 0 / 1.068 GB, free: 10.31 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004624/0.3167, allocations: 374.3 kB / 1.069 GB, free: 9.887 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.367e-06/0.3167, allocations: 7.984 kB / 1.069 GB, free: 9.879 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.49e-05/0.3168, allocations: 8 kB / 1.069 GB, free: 9.871 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.905e-06/0.3168, allocations: 0 / 1.069 GB, free: 9.871 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.598e-06/0.3168, allocations: 0 / 1.069 GB, free: 9.871 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.431e-06/0.3168, allocations: 7.938 kB / 1.069 GB, free: 9.863 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.3168, allocations: 7.922 kB / 1.069 GB, free: 9.855 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002904/0.3171, allocations: 195.8 kB / 1.069 GB, free: 9.648 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 3.958e-05/0.3172, allocations: 88.95 kB / 1.069 GB, free: 9.543 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.85e-05/0.3172, allocations: 7.922 kB / 1.069 GB, free: 9.535 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.568e-05/0.3173, allocations: 7.938 kB / 1.069 GB, free: 9.527 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.721e-05/0.3173, allocations: 7.984 kB / 1.069 GB, free: 9.52 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.302e-06/0.3174, allocations: 4 kB / 1.069 GB, free: 9.516 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 5.479e-05/0.3174, allocations: 91.92 kB / 1.069 GB, free: 9.426 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3174, allocations: 0 / 1.069 GB, free: 9.426 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002725/0.3177, allocations: 20 kB / 1.069 GB, free: 9.406 MB / 0.8419 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.0001589/0.3179, allocations: 111.6 kB / 1.069 GB, free: 9.289 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002876/0.3182, allocations: 83.88 kB / 1.069 GB, free: 9.207 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3182, allocations: 0 / 1.069 GB, free: 9.207 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001175/0.3183, allocations: 35.97 kB / 1.069 GB, free: 9.172 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002772/0.3186, allocations: 23.05 kB / 1.069 GB, free: 9.152 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003793/0.319, allocations: 199.8 kB / 1.07 GB, free: 8.922 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002381/0.3192, allocations: 0.6892 MB / 1.07 GB, free: 8.207 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.525e-05/0.3193, allocations: 15.44 kB / 1.07 GB, free: 8.191 MB / 0.8419 GB Notification: Performance of SimCode: time 2.2e-07/0.3193, allocations: 0 / 1.07 GB, free: 8.191 MB / 0.8419 GB Notification: Performance of Templates: time 0.002904/0.3222, allocations: 1.046 MB / 1.071 GB, free: 7.152 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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:samTri.y,samTri1.y,time,triggeredSampler.u,triggeredSampler.y,triggeredSampler1.u,triggeredSampler1.y