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.001409/0.001409, allocations: 108.4 kB / 16.41 MB, free: 6.492 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.001398/0.001398, allocations: 185.5 kB / 17.34 MB, free: 5.762 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.362/1.362, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.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.256/2.256, allocations: 390.2 MB / 0.6655 GB, free: 0.6602 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001485/0.001486, allocations: 63.91 kB / 0.9516 GB, free: 7.656 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8363/0.8378, allocations: 140.4 MB / 1.089 GB, free: 5.531 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.001939/0.8397, allocations: 0.7599 MB / 1.089 GB, free: 5.043 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.00129/0.8411, allocations: 1.069 MB / 1.09 GB, free: 4.254 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.732e-05/0.8411, allocations: 0.875 kB / 1.09 GB, free: 4.254 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.115e-05/0.8412, allocations: 4.641 kB / 1.09 GB, free: 4.25 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.262e-05/0.8412, allocations: 15.78 kB / 1.09 GB, free: 4.238 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003167/0.8416, allocations: 58.25 kB / 1.09 GB, free: 4.203 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001221/0.8417, allocations: 70.45 kB / 1.091 GB, free: 4.172 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001182/0.8418, allocations: 18.72 kB / 1.091 GB, free: 4.16 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 7.577e-05/0.8419, allocations: 26.53 kB / 1.091 GB, free: 4.148 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.835e-05/0.842, allocations: 36.88 kB / 1.091 GB, free: 4.129 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.195e-05/0.842, allocations: 5.719 kB / 1.091 GB, free: 4.129 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.344e-05/0.8421, allocations: 20.39 kB / 1.091 GB, free: 4.125 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.296e-05/0.8421, allocations: 9.719 kB / 1.091 GB, free: 4.121 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.47e-05/0.8422, allocations: 35.2 kB / 1.091 GB, free: 4.098 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001725/0.8423, allocations: 83.03 kB / 1.091 GB, free: 4.062 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.8424, allocations: 0 / 1.091 GB, free: 4.062 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.603e-06/0.8424, allocations: 1.219 kB / 1.091 GB, free: 4.062 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.738e-06/0.8424, allocations: 0 / 1.091 GB, free: 4.062 MB / 0.8575 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.0005239/0.8429, allocations: 377.2 kB / 1.091 GB, free: 3.691 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.836e-05/0.8429, allocations: 9.812 kB / 1.091 GB, free: 3.691 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.407e-05/0.843, allocations: 7.906 kB / 1.091 GB, free: 3.688 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.414e-05/0.8431, allocations: 174.2 kB / 1.091 GB, free: 3.484 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.482e-05/0.8431, allocations: 6.969 kB / 1.091 GB, free: 3.48 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.829e-05/0.8431, allocations: 7.938 kB / 1.091 GB, free: 3.477 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001945/0.8433, allocations: 68.95 kB / 1.091 GB, free: 3.434 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.498e-06/0.8433, allocations: 3.938 kB / 1.091 GB, free: 3.43 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.297e-05/0.8434, allocations: 5.812 kB / 1.091 GB, free: 3.426 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.109e-06/0.8434, allocations: 1.156 kB / 1.091 GB, free: 3.426 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001747/0.8436, allocations: 43.86 kB / 1.091 GB, free: 3.418 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005879/0.8441, allocations: 331 kB / 1.092 GB, free: 3.113 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001603/0.8443, allocations: 50.98 kB / 1.092 GB, free: 3.082 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001013/0.8444, allocations: 33.23 kB / 1.092 GB, free: 3.066 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.568e-05/0.8445, allocations: 1.516 kB / 1.092 GB, free: 3.066 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001861/0.8447, allocations: 85.66 kB / 1.092 GB, free: 3 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.673e-06/0.8447, allocations: 0 / 1.092 GB, free: 3 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0004039/0.8451, allocations: 130.9 kB / 1.092 GB, free: 2.941 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.331e-05/0.8451, allocations: 58.2 kB / 1.092 GB, free: 2.875 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.591e-05/0.8452, allocations: 127 kB / 1.092 GB, free: 2.762 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.27e-05/0.8452, allocations: 27.28 kB / 1.092 GB, free: 2.73 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.853e-05/0.8453, allocations: 92.61 kB / 1.092 GB, free: 2.641 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.974e-05/0.8453, allocations: 15.47 kB / 1.092 GB, free: 2.629 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.098e-05/0.8453, allocations: 34.78 kB / 1.092 GB, free: 2.602 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.169e-05/0.8454, allocations: 323.2 kB / 1.093 GB, free: 2.281 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001119/0.8455, allocations: 27.42 kB / 1.093 GB, free: 2.277 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001344/0.8457, allocations: 74.2 kB / 1.093 GB, free: 2.211 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000227/0.8459, allocations: 110.2 kB / 1.093 GB, free: 2.129 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.8459, allocations: 0.5938 kB / 1.093 GB, free: 2.129 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003152/0.8462, allocations: 134.6 kB / 1.093 GB, free: 2.062 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.965e-05/0.8463, allocations: 6.312 kB / 1.093 GB, free: 2.062 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.8463, allocations: 2.766 kB / 1.093 GB, free: 2.062 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.184e-05/0.8463, allocations: 1.656 kB / 1.093 GB, free: 2.062 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001329/0.8464, allocations: 21.3 kB / 1.093 GB, free: 2.059 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.624e-06/0.8464, allocations: 3.016 kB / 1.093 GB, free: 2.059 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.418e-05/0.8465, allocations: 12.05 kB / 1.093 GB, free: 2.055 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.85e-05/0.8466, allocations: 13.84 kB / 1.093 GB, free: 2.047 MB / 0.8575 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.27e-05/0.8466, allocations: 127.1 kB / 1.093 GB, free: 1.918 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.485e-05/0.8467, allocations: 7.578 kB / 1.093 GB, free: 1.914 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.968e-05/0.8467, allocations: 10.64 kB / 1.093 GB, free: 1.906 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.468e-06/0.8467, allocations: 1.781 kB / 1.093 GB, free: 1.906 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.8467, allocations: 3.938 kB / 1.093 GB, free: 1.902 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.8467, allocations: 0.5156 kB / 1.093 GB, free: 1.902 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004222/0.8472, allocations: 372.1 kB / 1.094 GB, free: 1.57 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.522e-06/0.8472, allocations: 8.656 kB / 1.094 GB, free: 1.562 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.338e-05/0.8472, allocations: 8.828 kB / 1.094 GB, free: 1.562 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.804e-06/0.8472, allocations: 0 / 1.094 GB, free: 1.562 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.105e-06/0.8473, allocations: 1.688 kB / 1.094 GB, free: 1.562 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.986e-06/0.8473, allocations: 5.344 kB / 1.094 GB, free: 1.559 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.8473, allocations: 4.641 kB / 1.094 GB, free: 1.555 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002579/0.8475, allocations: 195.8 kB / 1.094 GB, free: 1.406 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.606e-05/0.8476, allocations: 83.48 kB / 1.094 GB, free: 1.309 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.656e-05/0.8476, allocations: 1.578 kB / 1.094 GB, free: 1.309 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.392e-05/0.8477, allocations: 14.3 kB / 1.094 GB, free: 1.301 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.659e-05/0.8477, allocations: 5.328 kB / 1.094 GB, free: 1.301 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.195e-06/0.8477, allocations: 2.297 kB / 1.094 GB, free: 1.301 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.111e-05/0.8478, allocations: 95.77 kB / 1.094 GB, free: 1.219 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8478, allocations: 0 / 1.094 GB, free: 1.219 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002581/0.848, allocations: 18 kB / 1.094 GB, free: 1.215 MB / 0.8575 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.0001449/0.8482, allocations: 115.1 kB / 1.094 GB, free: 1.117 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002885/0.8485, allocations: 78.02 kB / 1.094 GB, free: 1.098 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.8485, allocations: 1.062 kB / 1.094 GB, free: 1.098 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001221/0.8486, allocations: 38.77 kB / 1.094 GB, free: 1.086 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002775/0.8489, allocations: 23.2 kB / 1.094 GB, free: 1.074 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003433/0.8493, allocations: 185.5 kB / 1.094 GB, free: 0.9023 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001314/0.8494, allocations: 0.689 MB / 1.095 GB, free: 212 kB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.328e-05/0.8494, allocations: 15.98 kB / 1.095 GB, free: 200 kB / 0.8575 GB Notification: Performance of SimCode: time 2.4e-07/0.8494, allocations: 1.125 kB / 1.095 GB, free: 200 kB / 0.8575 GB Notification: Performance of Templates: time 0.003082/0.8525, allocations: 1.046 MB / 1.096 GB, free: 116 kB / 0.8575 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/jenkins1/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:samTri.y,samTri1.y,time,triggeredSampler.u,triggeredSampler.y,triggeredSampler1.u,triggeredSampler1.y