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.001034/0.001034, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001259/0.001259, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.516/1.516, allocations: 223.3 MB / 240 MB, free: 5.426 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.833/2.833, allocations: 437.7 MB / 0.7117 GB, free: 7.035 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004414/0.0004415, allocations: 8 kB / 0.8722 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7967/0.7972, allocations: 153.8 MB / 1.022 GB, free: 188 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.001146/0.7984, allocations: 477.4 kB / 1.023 GB, free: 15.72 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001396/0.7998, allocations: 1.046 MB / 1.024 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.628e-05/0.7999, allocations: 0 / 1.024 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.108e-05/0.7999, allocations: 3.938 kB / 1.024 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 8.428e-05/0.8, allocations: 7.938 kB / 1.024 GB, free: 14.65 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003141/0.8003, allocations: 43.89 kB / 1.024 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001018/0.8004, allocations: 63.78 kB / 1.024 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001255/0.8006, allocations: 28.14 kB / 1.024 GB, free: 14.51 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 8.001e-05/0.8006, allocations: 19.92 kB / 1.024 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 7.496e-05/0.8007, allocations: 27.91 kB / 1.024 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.542e-05/0.8007, allocations: 0 / 1.024 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 6.763e-05/0.8008, allocations: 23.92 kB / 1.024 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.847e-05/0.8008, allocations: 7.984 kB / 1.024 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 4.656e-05/0.8009, allocations: 33.64 kB / 1.024 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001073/0.801, allocations: 59.88 kB / 1.024 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.801, allocations: 0 / 1.024 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.325e-06/0.801, allocations: 0 / 1.024 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.807e-06/0.801, allocations: 4 kB / 1.024 GB, free: 14.33 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.0005482/0.8016, allocations: 365.2 kB / 1.025 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 6.437e-05/0.8017, allocations: 20.5 kB / 1.025 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.202e-05/0.8017, allocations: 11.84 kB / 1.025 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001227/0.8018, allocations: 167 kB / 1.025 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.632e-05/0.8019, allocations: 4 kB / 1.025 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.618e-05/0.8019, allocations: 8 kB / 1.025 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002007/0.8021, allocations: 81.55 kB / 1.025 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.634e-06/0.8021, allocations: 0 / 1.025 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.107e-05/0.8021, allocations: 0 / 1.025 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.884e-06/0.8021, allocations: 4 kB / 1.025 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001645/0.8023, allocations: 55.95 kB / 1.025 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000611/0.8029, allocations: 332.6 kB / 1.025 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001718/0.8031, allocations: 58.55 kB / 1.025 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.615e-05/0.8032, allocations: 40.95 kB / 1.025 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.538e-05/0.8033, allocations: 0 / 1.025 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002138/0.8035, allocations: 83.38 kB / 1.025 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.383e-06/0.8035, allocations: 0 / 1.025 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0004182/0.8039, allocations: 153.6 kB / 1.026 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.693e-05/0.804, allocations: 55.39 kB / 1.026 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001011/0.8041, allocations: 121.8 kB / 1.026 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.248e-05/0.8041, allocations: 25.7 kB / 1.026 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.152e-05/0.8042, allocations: 96.03 kB / 1.026 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.076e-05/0.8042, allocations: 11.81 kB / 1.026 GB, free: 12.47 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.535e-06/0.8042, allocations: 4 kB / 1.026 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001255/0.8043, allocations: 326.8 kB / 1.026 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001142/0.8045, allocations: 31.98 kB / 1.026 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001281/0.8046, allocations: 81.92 kB / 1.026 GB, free: 12 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001081/0.8047, allocations: 43.91 kB / 1.026 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.8047, allocations: 8 kB / 1.026 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002935/0.805, allocations: 133.4 kB / 1.026 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.905e-05/0.8051, allocations: 8.219 kB / 1.026 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.8051, allocations: 4 kB / 1.026 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.382e-05/0.8051, allocations: 0 / 1.026 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001232/0.8052, allocations: 31.91 kB / 1.026 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.775e-06/0.8052, allocations: 4 kB / 1.026 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.575e-05/0.8053, allocations: 8 kB / 1.026 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.531e-05/0.8053, allocations: 4 kB / 1.026 GB, free: 11.76 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 ($PRE.triggeredSampler1.y,triggeredSampler1.y,$PRE.triggeredSampler.y,triggeredSampler.y,$whenCondition1,samTri.y,$whenCondition2,samTri1.y) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001086/0.8054, allocations: 130.8 kB / 1.027 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.392e-05/0.8055, allocations: 11.84 kB / 1.027 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.979e-05/0.8055, allocations: 8.375 kB / 1.027 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.8055, allocations: 4 kB / 1.027 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.8055, allocations: 0 / 1.027 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.8055, allocations: 0 / 1.027 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004764/0.806, allocations: 390.4 kB / 1.027 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.806, allocations: 0 / 1.027 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.318e-05/0.8061, allocations: 15.98 kB / 1.027 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.744e-06/0.8061, allocations: 0 / 1.027 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.665e-06/0.8061, allocations: 0 / 1.027 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.277e-06/0.8061, allocations: 3.938 kB / 1.027 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.8061, allocations: 0 / 1.027 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000265/0.8064, allocations: 215.4 kB / 1.027 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.643e-05/0.8064, allocations: 85.02 kB / 1.027 GB, free: 10.81 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.489e-05/0.8065, allocations: 0 / 1.027 GB, free: 10.81 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.963e-05/0.8065, allocations: 11.98 kB / 1.027 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.464e-05/0.8066, allocations: 8 kB / 1.027 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.434e-06/0.8066, allocations: 4 kB / 1.027 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.517e-05/0.8067, allocations: 91.92 kB / 1.027 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.21e-07/0.8067, allocations: 3.938 kB / 1.027 GB, free: 10.69 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002503/0.8069, allocations: 12 kB / 1.027 GB, free: 10.68 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001691/0.8071, allocations: 115.5 kB / 1.028 GB, free: 10.56 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002649/0.8074, allocations: 95.81 kB / 1.028 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.8074, allocations: 0 / 1.028 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001062/0.8075, allocations: 36.89 kB / 1.028 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002799/0.8078, allocations: 25.98 kB / 1.028 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003472/0.8081, allocations: 165.4 kB / 1.028 GB, free: 10.22 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002352/0.8084, allocations: 0.6888 MB / 1.029 GB, free: 9.508 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.696e-05/0.8084, allocations: 7.984 kB / 1.029 GB, free: 9.5 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.78e-05/0.8085, allocations: 15.38 kB / 1.029 GB, free: 9.484 MB / 0.7794 GB Notification: Performance of SimCode: time 2.61e-07/0.8085, allocations: 0 / 1.029 GB, free: 9.484 MB / 0.7794 GB Notification: Performance of Templates: time 0.003445/0.8119, allocations: 0.8444 MB / 1.029 GB, free: 8.648 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/jenkins/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: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