Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.001121/0.001121, allocations: 91.92 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0015/0.0015, allocations: 179.2 kB / 16.92 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.458/1.458, allocations: 223.3 MB / 241 MB, free: 5.277 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.676/2.676, allocations: 437.8 MB / 0.7128 GB, free: 6.906 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003697/0.0003697, allocations: 8 kB / 0.8735 GB, free: 3.23 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7447/0.745, allocations: 153.8 MB / 1.024 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.0009791/0.7461, allocations: 489.4 kB / 1.024 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001423/0.7475, allocations: 1.054 MB / 1.025 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.487e-05/0.7476, allocations: 11.88 kB / 1.025 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.731e-05/0.7476, allocations: 4 kB / 1.025 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 8.634e-05/0.7477, allocations: 7.922 kB / 1.025 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.000283/0.748, allocations: 43.89 kB / 1.025 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 9.729e-05/0.7481, allocations: 63.84 kB / 1.025 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001006/0.7482, allocations: 20.16 kB / 1.025 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 8.07e-05/0.7483, allocations: 31.8 kB / 1.025 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 6.358e-05/0.7484, allocations: 31.89 kB / 1.025 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.721e-05/0.7484, allocations: 8 kB / 1.025 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 6.357e-05/0.7485, allocations: 11.98 kB / 1.025 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.904e-05/0.7485, allocations: 11.92 kB / 1.025 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 5.542e-05/0.7486, allocations: 53.56 kB / 1.025 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001006/0.7487, allocations: 55.88 kB / 1.026 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.7487, allocations: 0 / 1.026 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.794e-06/0.7487, allocations: 0 / 1.026 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.308e-06/0.7487, allocations: 0 / 1.026 GB, free: 13.91 MB / 0.7794 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.000532/0.7492, allocations: 373.2 kB / 1.026 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.877e-05/0.7493, allocations: 15.98 kB / 1.026 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.11e-05/0.7493, allocations: 4.844 kB / 1.026 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001319/0.7495, allocations: 180.2 kB / 1.026 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.8e-05/0.7495, allocations: 8.375 kB / 1.026 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.989e-05/0.7495, allocations: 4.375 kB / 1.026 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000209/0.7497, allocations: 74.16 kB / 1.026 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.7497, allocations: 7.938 kB / 1.026 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.848e-06/0.7498, allocations: 0 / 1.026 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.352e-06/0.7498, allocations: 4 kB / 1.026 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002081/0.75, allocations: 51.95 kB / 1.026 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006507/0.7506, allocations: 336.6 kB / 1.027 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000173/0.7508, allocations: 66.55 kB / 1.027 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001078/0.7509, allocations: 32.95 kB / 1.027 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.106e-05/0.751, allocations: 4 kB / 1.027 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002098/0.7512, allocations: 87.41 kB / 1.027 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.383e-06/0.7512, allocations: 3.938 kB / 1.027 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0004378/0.7517, allocations: 141.6 kB / 1.027 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.129e-05/0.7517, allocations: 55.41 kB / 1.027 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.15e-05/0.7518, allocations: 121.8 kB / 1.027 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.048e-05/0.7518, allocations: 29.7 kB / 1.027 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.101e-05/0.7519, allocations: 92.12 kB / 1.027 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.952e-05/0.7519, allocations: 11.81 kB / 1.027 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.358e-05/0.752, allocations: 21.7 kB / 1.027 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001058/0.7521, allocations: 318.8 kB / 1.028 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001331/0.7522, allocations: 43.97 kB / 1.028 GB, free: 11.65 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001392/0.7524, allocations: 81.86 kB / 1.028 GB, free: 11.55 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002614/0.7526, allocations: 121.9 kB / 1.028 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.245e-06/0.7526, allocations: 0 / 1.028 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003259/0.753, allocations: 141.5 kB / 1.028 GB, free: 11.26 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.625e-05/0.753, allocations: 8 kB / 1.028 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.753, allocations: 0 / 1.028 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.342e-05/0.753, allocations: 4 kB / 1.028 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001209/0.7532, allocations: 15.98 kB / 1.028 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.879e-06/0.7532, allocations: 7.984 kB / 1.028 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.94e-05/0.7533, allocations: 20 kB / 1.028 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.273e-05/0.7533, allocations: 4 kB / 1.028 GB, free: 11.2 MB / 0.7794 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.091e-05/0.7534, allocations: 126.2 kB / 1.028 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.464e-05/0.7534, allocations: 7.906 kB / 1.028 GB, free: 11.06 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.75e-05/0.7534, allocations: 12.38 kB / 1.028 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.7534, allocations: 0 / 1.028 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.456e-06/0.7535, allocations: 0 / 1.028 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.7535, allocations: 0 / 1.028 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004983/0.754, allocations: 394.3 kB / 1.028 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.754, allocations: 0 / 1.028 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.978e-05/0.754, allocations: 11.98 kB / 1.028 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.7541, allocations: 0 / 1.028 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.209e-05/0.7541, allocations: 15.98 kB / 1.028 GB, free: 10.58 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.276e-06/0.7541, allocations: 3.938 kB / 1.028 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.7541, allocations: 0 / 1.028 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000314/0.7544, allocations: 211.8 kB / 1.029 GB, free: 10.35 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.655e-05/0.7545, allocations: 77.11 kB / 1.029 GB, free: 10.26 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.608e-05/0.7545, allocations: 0 / 1.029 GB, free: 10.26 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.971e-05/0.7546, allocations: 19.86 kB / 1.029 GB, free: 10.24 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.626e-05/0.7546, allocations: 4 kB / 1.029 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.064e-06/0.7546, allocations: 4 kB / 1.029 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.929e-05/0.7547, allocations: 91.27 kB / 1.029 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7547, allocations: 3.938 kB / 1.029 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002565/0.755, allocations: 23.84 kB / 1.029 GB, free: 10.11 MB / 0.7794 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.0001561/0.7551, allocations: 115.2 kB / 1.029 GB, free: 9.992 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.000282/0.7554, allocations: 88.27 kB / 1.029 GB, free: 9.906 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.7554, allocations: 4.125 kB / 1.029 GB, free: 9.902 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001259/0.7556, allocations: 43.89 kB / 1.029 GB, free: 9.859 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002703/0.7558, allocations: 17.53 kB / 1.029 GB, free: 9.844 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003662/0.7562, allocations: 199.1 kB / 1.029 GB, free: 9.621 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002631/0.7565, allocations: 0.6893 MB / 1.03 GB, free: 8.906 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.248e-05/0.7565, allocations: 11.44 kB / 1.03 GB, free: 8.895 MB / 0.7794 GB Notification: Performance of SimCode: time 2.61e-07/0.7565, allocations: 0 / 1.03 GB, free: 8.895 MB / 0.7794 GB Notification: Performance of Templates: time 0.002595/0.7591, allocations: 1.026 MB / 1.031 GB, free: 7.879 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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