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.00765/0.007651, allocations: 101.1 kB / 15.73 MB, free: 6.047 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.001273/0.001273, allocations: 190.4 kB / 16.67 MB, free: 5.98 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.483/1.483, allocations: 222.9 MB / 240.4 MB, free: 4.191 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.724/2.724, allocations: 390.2 MB / 0.6648 GB, free: 216 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001222/0.001222, allocations: 68.09 kB / 0.9509 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3384/0.3396, allocations: 140.4 MB / 1.088 GB, free: 1.527 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.002195/0.3419, allocations: 0.7505 MB / 1.089 GB, free: 0.7773 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001464/0.3434, allocations: 1.079 MB / 1.09 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.555e-05/0.3435, allocations: 0 / 1.09 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.97e-05/0.3435, allocations: 7.922 kB / 1.09 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 8.557e-05/0.3436, allocations: 11.88 kB / 1.09 GB, free: 15.66 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003547/0.344, allocations: 55.83 kB / 1.09 GB, free: 15.61 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001226/0.3441, allocations: 75.77 kB / 1.09 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001267/0.3442, allocations: 16.17 kB / 1.09 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 8.881e-05/0.3443, allocations: 35.84 kB / 1.09 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.969e-05/0.3444, allocations: 27.86 kB / 1.09 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.884e-05/0.3444, allocations: 8 kB / 1.09 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.267e-05/0.3445, allocations: 23.92 kB / 1.09 GB, free: 15.42 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.426e-05/0.3445, allocations: 11.97 kB / 1.09 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.413e-05/0.3446, allocations: 35.8 kB / 1.09 GB, free: 15.38 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.00016/0.3448, allocations: 83.75 kB / 1.09 GB, free: 15.29 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.3448, allocations: 0 / 1.09 GB, free: 15.29 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.064e-06/0.3448, allocations: 0 / 1.09 GB, free: 15.29 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.763e-06/0.3448, allocations: 0 / 1.09 GB, free: 15.29 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.0005964/0.3454, allocations: 384.8 kB / 1.09 GB, free: 14.87 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.502e-05/0.3454, allocations: 8.031 kB / 1.09 GB, free: 14.86 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.195e-05/0.3455, allocations: 8.844 kB / 1.09 GB, free: 14.86 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001429/0.3457, allocations: 172.3 kB / 1.091 GB, free: 14.65 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.243e-05/0.3457, allocations: 12.36 kB / 1.091 GB, free: 14.64 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.671e-05/0.3457, allocations: 8.375 kB / 1.091 GB, free: 14.63 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002054/0.3459, allocations: 66.22 kB / 1.091 GB, free: 14.56 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/0.3459, allocations: 3.938 kB / 1.091 GB, free: 14.55 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.082e-05/0.346, allocations: 0 / 1.091 GB, free: 14.55 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.538e-06/0.346, allocations: 0 / 1.091 GB, free: 14.55 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001759/0.3461, allocations: 47.89 kB / 1.091 GB, free: 14.51 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006857/0.3468, allocations: 328.7 kB / 1.091 GB, free: 14.14 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001738/0.347, allocations: 54.55 kB / 1.091 GB, free: 14.07 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001003/0.3471, allocations: 28.97 kB / 1.091 GB, free: 14.04 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.151e-05/0.3472, allocations: 96 / 1.091 GB, free: 14.04 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002267/0.3474, allocations: 83.31 kB / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.203e-06/0.3474, allocations: 0 / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0004475/0.3479, allocations: 129.5 kB / 1.091 GB, free: 13.82 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.294e-05/0.3479, allocations: 51.41 kB / 1.091 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001214/0.3481, allocations: 121.8 kB / 1.092 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.293e-05/0.3481, allocations: 33.64 kB / 1.092 GB, free: 13.59 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.506e-05/0.3482, allocations: 100 kB / 1.092 GB, free: 13.48 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.178e-05/0.3482, allocations: 15.75 kB / 1.092 GB, free: 13.47 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.245e-05/0.3482, allocations: 33.64 kB / 1.092 GB, free: 13.43 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001048/0.3484, allocations: 322.8 kB / 1.092 GB, free: 13.11 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001088/0.3485, allocations: 27.97 kB / 1.092 GB, free: 13.08 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001402/0.3486, allocations: 77.98 kB / 1.092 GB, free: 12.98 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002273/0.3489, allocations: 101.9 kB / 1.092 GB, free: 12.86 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.3489, allocations: 3.938 kB / 1.092 GB, free: 12.86 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003085/0.3492, allocations: 141.5 kB / 1.092 GB, free: 12.71 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.657e-05/0.3492, allocations: 8 kB / 1.092 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-06/0.3492, allocations: 0 / 1.092 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.628e-05/0.3492, allocations: 4 kB / 1.092 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001317/0.3494, allocations: 15.98 kB / 1.092 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.618e-06/0.3494, allocations: 0 / 1.092 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.796e-05/0.3495, allocations: 19.92 kB / 1.092 GB, free: 12.66 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.457e-05/0.3495, allocations: 4 kB / 1.092 GB, free: 12.66 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.443e-05/0.3496, allocations: 123.7 kB / 1.093 GB, free: 12.53 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.437e-05/0.3496, allocations: 7.906 kB / 1.093 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.881e-05/0.3497, allocations: 12.36 kB / 1.093 GB, free: 12.51 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.3497, allocations: 0 / 1.093 GB, free: 12.51 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.3497, allocations: 4 kB / 1.093 GB, free: 12.51 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.3497, allocations: 0 / 1.093 GB, free: 12.51 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004612/0.3501, allocations: 382.2 kB / 1.093 GB, free: 12.08 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.3502, allocations: 0 / 1.093 GB, free: 12.08 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.501e-05/0.3502, allocations: 12 kB / 1.093 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.3502, allocations: 0 / 1.093 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.123e-05/0.3502, allocations: 3.984 kB / 1.093 GB, free: 12.06 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.779e-06/0.3503, allocations: 3.938 kB / 1.093 GB, free: 12.06 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.3503, allocations: 3.938 kB / 1.093 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002999/0.3506, allocations: 195.8 kB / 1.093 GB, free: 11.85 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.703e-05/0.3506, allocations: 89 kB / 1.093 GB, free: 11.74 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.953e-05/0.3507, allocations: 8 kB / 1.093 GB, free: 11.73 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.093e-05/0.3507, allocations: 3.938 kB / 1.093 GB, free: 11.73 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.86e-05/0.3508, allocations: 7.984 kB / 1.093 GB, free: 11.72 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.927e-06/0.3508, allocations: 4 kB / 1.093 GB, free: 11.72 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.487e-05/0.3509, allocations: 95.86 kB / 1.093 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3509, allocations: 0 / 1.093 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002573/0.3511, allocations: 16 kB / 1.093 GB, free: 11.61 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.0001867/0.3513, allocations: 115.2 kB / 1.093 GB, free: 11.49 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002942/0.3516, allocations: 75.95 kB / 1.094 GB, free: 11.41 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.3516, allocations: 0 / 1.094 GB, free: 11.41 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001201/0.3518, allocations: 39.91 kB / 1.094 GB, free: 11.38 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002809/0.3521, allocations: 12.42 kB / 1.094 GB, free: 11.36 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003709/0.3524, allocations: 162.2 kB / 1.094 GB, free: 11.18 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002712/0.3527, allocations: 0.6901 MB / 1.094 GB, free: 10.46 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 4.388e-05/0.3528, allocations: 15.92 kB / 1.094 GB, free: 10.45 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.04e-05/0.3528, allocations: 15.44 kB / 1.094 GB, free: 10.43 MB / 0.8575 GB Notification: Performance of SimCode: time 5.41e-07/0.3528, allocations: 0 / 1.094 GB, free: 10.43 MB / 0.8575 GB Notification: Performance of Templates: time 0.003572/0.3564, allocations: 0.9635 MB / 1.095 GB, free: 9.477 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