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.00805/0.00805, allocations: 96.7 kB / 15.73 MB, free: 6.055 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.001723/0.001723, allocations: 193.8 kB / 16.67 MB, free: 5.977 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.488/1.488, allocations: 222.9 MB / 240.4 MB, free: 4.297 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.469/2.469, allocations: 390.2 MB / 0.6648 GB, free: 184 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001415/0.001415, allocations: 64.05 kB / 0.9509 GB, free: 5.449 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3369/0.3383, allocations: 140.4 MB / 1.088 GB, free: 1.48 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.002119/0.3405, allocations: 0.7445 MB / 1.089 GB, free: 0.7344 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001569/0.3421, allocations: 1.075 MB / 1.09 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.31e-05/0.3422, allocations: 0 / 1.09 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.685e-05/0.3423, allocations: 3.938 kB / 1.09 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 9.054e-05/0.3423, allocations: 11.86 kB / 1.09 GB, free: 15.63 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003911/0.3427, allocations: 59.83 kB / 1.09 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001464/0.3429, allocations: 67.83 kB / 1.09 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001213/0.343, allocations: 16.19 kB / 1.09 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 9.319e-05/0.3431, allocations: 35.84 kB / 1.09 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.172e-05/0.3432, allocations: 27.91 kB / 1.09 GB, free: 15.42 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.941e-05/0.3432, allocations: 4 kB / 1.09 GB, free: 15.42 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.668e-05/0.3433, allocations: 23.86 kB / 1.09 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.649e-05/0.3433, allocations: 19.97 kB / 1.09 GB, free: 15.38 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.22e-05/0.3434, allocations: 31.86 kB / 1.09 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001768/0.3436, allocations: 83.62 kB / 1.09 GB, free: 15.26 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.3436, allocations: 0 / 1.09 GB, free: 15.26 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.863e-06/0.3436, allocations: 3.938 kB / 1.09 GB, free: 15.26 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.215e-06/0.3436, allocations: 0 / 1.09 GB, free: 15.26 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.0005884/0.3442, allocations: 387.2 kB / 1.09 GB, free: 14.83 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.795e-05/0.3443, allocations: 8.031 kB / 1.09 GB, free: 14.82 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.53e-05/0.3443, allocations: 8.891 kB / 1.09 GB, free: 14.82 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001387/0.3445, allocations: 172.3 kB / 1.091 GB, free: 14.61 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.356e-05/0.3445, allocations: 4.375 kB / 1.091 GB, free: 14.61 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.315e-05/0.3445, allocations: 8.375 kB / 1.091 GB, free: 14.6 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002114/0.3447, allocations: 70.16 kB / 1.091 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.294e-05/0.3447, allocations: 7.922 kB / 1.091 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.143e-05/0.3448, allocations: 0 / 1.091 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-06/0.3448, allocations: 4 kB / 1.091 GB, free: 14.51 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001715/0.3449, allocations: 43.95 kB / 1.091 GB, free: 14.47 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006548/0.3456, allocations: 332.6 kB / 1.091 GB, free: 14.09 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001634/0.3458, allocations: 46.56 kB / 1.091 GB, free: 14.04 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001022/0.3459, allocations: 32.95 kB / 1.091 GB, free: 14 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.577e-05/0.3459, allocations: 4 kB / 1.091 GB, free: 14 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002304/0.3462, allocations: 91.38 kB / 1.091 GB, free: 13.9 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.452e-06/0.3462, allocations: 0 / 1.091 GB, free: 13.9 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0004172/0.3466, allocations: 121.6 kB / 1.091 GB, free: 13.77 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.444e-05/0.3466, allocations: 55.41 kB / 1.091 GB, free: 13.71 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001231/0.3468, allocations: 129.8 kB / 1.092 GB, free: 13.57 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.995e-05/0.3468, allocations: 25.7 kB / 1.092 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.185e-05/0.3469, allocations: 96.08 kB / 1.092 GB, free: 13.44 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.53e-05/0.3469, allocations: 15.89 kB / 1.092 GB, free: 13.43 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.031e-05/0.347, allocations: 37.64 kB / 1.092 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001221/0.3471, allocations: 322.8 kB / 1.092 GB, free: 13.06 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001061/0.3472, allocations: 23.98 kB / 1.092 GB, free: 13.04 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001431/0.3474, allocations: 81.92 kB / 1.092 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000228/0.3476, allocations: 105.9 kB / 1.092 GB, free: 12.81 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.3476, allocations: 4 kB / 1.092 GB, free: 12.8 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003216/0.3479, allocations: 141.5 kB / 1.092 GB, free: 12.66 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.643e-05/0.348, allocations: 5.25 kB / 1.092 GB, free: 12.66 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.715e-06/0.348, allocations: 4 kB / 1.092 GB, free: 12.65 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.416e-05/0.348, allocations: 0 / 1.092 GB, free: 12.65 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001244/0.3481, allocations: 15.98 kB / 1.092 GB, free: 12.64 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.238e-05/0.3482, allocations: 7.938 kB / 1.092 GB, free: 12.63 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.157e-05/0.3483, allocations: 11.92 kB / 1.092 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.523e-05/0.3483, allocations: 4 kB / 1.092 GB, free: 12.61 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 9.741e-05/0.3484, allocations: 133.8 kB / 1.093 GB, free: 12.47 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.497e-05/0.3484, allocations: 3.953 kB / 1.093 GB, free: 12.47 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.752e-05/0.3484, allocations: 8.375 kB / 1.093 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.3484, allocations: 3.984 kB / 1.093 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.3485, allocations: 0 / 1.093 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.3485, allocations: 0 / 1.093 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004648/0.3489, allocations: 374.4 kB / 1.093 GB, free: 12.04 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.744e-06/0.3489, allocations: 4 kB / 1.093 GB, free: 12.03 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.16e-05/0.349, allocations: 7.984 kB / 1.093 GB, free: 12.02 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.759e-06/0.349, allocations: 4 kB / 1.093 GB, free: 12.02 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.586e-06/0.349, allocations: 0 / 1.093 GB, free: 12.02 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.349, allocations: 3.938 kB / 1.093 GB, free: 12.02 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.349, allocations: 0 / 1.093 GB, free: 12.02 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003156/0.3494, allocations: 203.4 kB / 1.093 GB, free: 11.8 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.715e-05/0.3494, allocations: 85.06 kB / 1.093 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.325e-05/0.3494, allocations: 0 / 1.093 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.809e-05/0.3495, allocations: 19.86 kB / 1.093 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.138e-05/0.3496, allocations: 7.984 kB / 1.093 GB, free: 11.67 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.412e-06/0.3496, allocations: 0 / 1.093 GB, free: 11.67 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 7.251e-05/0.3497, allocations: 95.27 kB / 1.093 GB, free: 11.58 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3497, allocations: 0 / 1.093 GB, free: 11.58 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.000262/0.35, allocations: 19.94 kB / 1.093 GB, free: 11.56 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.0001727/0.3501, allocations: 103.2 kB / 1.093 GB, free: 11.45 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002899/0.3504, allocations: 75.88 kB / 1.094 GB, free: 11.38 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3504, allocations: 0 / 1.094 GB, free: 11.38 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001295/0.3506, allocations: 43.91 kB / 1.094 GB, free: 11.33 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002806/0.3509, allocations: 10.62 kB / 1.094 GB, free: 11.32 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003956/0.3513, allocations: 158.1 kB / 1.094 GB, free: 11.14 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003181/0.3516, allocations: 0.6885 MB / 1.094 GB, free: 10.43 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.931e-05/0.3517, allocations: 8 kB / 1.094 GB, free: 10.42 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.129e-05/0.3517, allocations: 19.42 kB / 1.094 GB, free: 10.4 MB / 0.8575 GB Notification: Performance of SimCode: time 4.71e-07/0.3517, allocations: 0 / 1.094 GB, free: 10.4 MB / 0.8575 GB Notification: Performance of Templates: time 0.003894/0.3556, allocations: 0.978 MB / 1.095 GB, free: 9.434 MB / 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/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