Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.SampleTriggerNegativeStartTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006432/0.006432, allocations: 100 kB / 15.73 MB, free: 6.062 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.001438/0.001438, allocations: 198.6 kB / 16.68 MB, free: 5.973 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.387/1.387, allocations: 222.9 MB / 240.4 MB, free: 4.168 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.735/2.735, allocations: 469.8 MB / 0.7425 GB, free: 7.301 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001309/0.001309, allocations: 63.91 kB / 1.065 GB, free: 13.05 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3883/0.3896, allocations: 159.1 MB / 1.221 GB, free: 13.8 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime): time 0.002269/0.3919, allocations: 0.7572 MB / 1.221 GB, free: 13.04 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.00147/0.3933, allocations: 1.073 MB / 1.222 GB, free: 11.96 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.6e-05/0.3934, allocations: 3.938 kB / 1.222 GB, free: 11.95 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.789e-05/0.3934, allocations: 7.938 kB / 1.222 GB, free: 11.95 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 9.013e-05/0.3935, allocations: 19.86 kB / 1.222 GB, free: 11.93 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003329/0.3939, allocations: 47.83 kB / 1.222 GB, free: 11.88 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001531/0.394, allocations: 71.83 kB / 1.223 GB, free: 11.81 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001218/0.3941, allocations: 12.17 kB / 1.223 GB, free: 11.79 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 8.481e-05/0.3942, allocations: 31.86 kB / 1.223 GB, free: 11.76 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 6.767e-05/0.3943, allocations: 31.91 kB / 1.223 GB, free: 11.73 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.578e-05/0.3943, allocations: 7.984 kB / 1.223 GB, free: 11.72 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 6.69e-05/0.3944, allocations: 19.98 kB / 1.223 GB, free: 11.7 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.515e-05/0.3944, allocations: 19.92 kB / 1.223 GB, free: 11.68 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 4.131e-05/0.3944, allocations: 31.86 kB / 1.223 GB, free: 11.65 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001594/0.3946, allocations: 79.62 kB / 1.223 GB, free: 11.57 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.3946, allocations: 0 / 1.223 GB, free: 11.57 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.653e-06/0.3946, allocations: 0 / 1.223 GB, free: 11.57 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.502e-06/0.3946, allocations: 0 / 1.223 GB, free: 11.57 MB / 0.9825 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.0005524/0.3952, allocations: 383.1 kB / 1.223 GB, free: 11.15 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.72e-05/0.3952, allocations: 8.031 kB / 1.223 GB, free: 11.14 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.246e-05/0.3952, allocations: 12.88 kB / 1.223 GB, free: 11.13 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000129/0.3954, allocations: 180.2 kB / 1.223 GB, free: 10.92 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.586e-05/0.3954, allocations: 8.375 kB / 1.223 GB, free: 10.91 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.934e-05/0.3954, allocations: 4.375 kB / 1.223 GB, free: 10.91 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002035/0.3956, allocations: 70.16 kB / 1.223 GB, free: 10.83 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.036e-05/0.3956, allocations: 3.938 kB / 1.223 GB, free: 10.83 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.311e-05/0.3956, allocations: 4 kB / 1.223 GB, free: 10.82 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.355e-06/0.3956, allocations: 0 / 1.223 GB, free: 10.82 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000204/0.3958, allocations: 39.95 kB / 1.223 GB, free: 10.79 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006339/0.3965, allocations: 324.7 kB / 1.224 GB, free: 10.42 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001647/0.3966, allocations: 50.55 kB / 1.224 GB, free: 10.36 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.682e-05/0.3967, allocations: 32.95 kB / 1.224 GB, free: 10.32 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.935e-05/0.3968, allocations: 8 kB / 1.224 GB, free: 10.32 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002044/0.397, allocations: 83.27 kB / 1.224 GB, free: 10.22 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=7): time 1.202e-06/0.397, allocations: 96 / 1.224 GB, free: 10.22 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7): time 0.0004018/0.3974, allocations: 121.6 kB / 1.224 GB, free: 10.1 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.984e-05/0.3974, allocations: 63.39 kB / 1.224 GB, free: 10.02 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.097e-05/0.3975, allocations: 121.8 kB / 1.224 GB, free: 9.895 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.842e-05/0.3975, allocations: 29.7 kB / 1.224 GB, free: 9.859 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.597e-05/0.3976, allocations: 92.06 kB / 1.224 GB, free: 9.766 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.957e-05/0.3976, allocations: 15.91 kB / 1.224 GB, free: 9.75 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.9e-05/0.3977, allocations: 29.7 kB / 1.224 GB, free: 9.715 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001212/0.3978, allocations: 322.8 kB / 1.225 GB, free: 9.391 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001091/0.3979, allocations: 27.97 kB / 1.225 GB, free: 9.363 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001248/0.398, allocations: 81.86 kB / 1.225 GB, free: 9.262 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002224/0.3982, allocations: 105.9 kB / 1.225 GB, free: 9.137 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.3982, allocations: 0 / 1.225 GB, free: 9.137 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002789/0.3985, allocations: 133.5 kB / 1.225 GB, free: 9 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.363e-05/0.3985, allocations: 8 kB / 1.225 GB, free: 8.992 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.94e-06/0.3985, allocations: 0 / 1.225 GB, free: 8.992 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.843e-05/0.3986, allocations: 11.92 kB / 1.225 GB, free: 8.98 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001268/0.3987, allocations: 15.98 kB / 1.225 GB, free: 8.965 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.307e-06/0.3987, allocations: 4 kB / 1.225 GB, free: 8.961 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.776e-05/0.3988, allocations: 7.953 kB / 1.225 GB, free: 8.953 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.511e-05/0.3988, allocations: 7.984 kB / 1.225 GB, free: 8.945 MB / 0.9825 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.763e-05/0.3989, allocations: 136.1 kB / 1.225 GB, free: 8.805 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.82e-05/0.3989, allocations: 7.953 kB / 1.225 GB, free: 8.797 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.668e-05/0.3989, allocations: 8.375 kB / 1.225 GB, free: 8.781 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.3989, allocations: 0 / 1.225 GB, free: 8.781 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.361e-06/0.3989, allocations: 0 / 1.225 GB, free: 8.781 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.399, allocations: 0 / 1.225 GB, free: 8.781 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004427/0.3994, allocations: 382.4 kB / 1.226 GB, free: 8.352 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.3994, allocations: 0 / 1.226 GB, free: 8.352 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.194e-05/0.3994, allocations: 7.984 kB / 1.226 GB, free: 8.344 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.3994, allocations: 0 / 1.226 GB, free: 8.344 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.201e-05/0.3995, allocations: 8 kB / 1.226 GB, free: 8.336 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.354e-06/0.3995, allocations: 3.938 kB / 1.226 GB, free: 8.332 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.3995, allocations: 0 / 1.226 GB, free: 8.332 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002652/0.3997, allocations: 203.4 kB / 1.226 GB, free: 8.117 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.868e-05/0.3998, allocations: 85.06 kB / 1.226 GB, free: 8.016 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.585e-05/0.3998, allocations: 0 / 1.226 GB, free: 8.016 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.372e-05/0.3999, allocations: 15.92 kB / 1.226 GB, free: 8 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.324e-05/0.3999, allocations: 7.938 kB / 1.226 GB, free: 7.992 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.374e-06/0.3999, allocations: 3.984 kB / 1.226 GB, free: 7.988 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.776e-05/0.4, allocations: 91.22 kB / 1.226 GB, free: 7.898 MB / 0.9825 GB Notification: Performance of sort global known variables: time 9e-08/0.4, allocations: 3.938 kB / 1.226 GB, free: 7.895 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002492/0.4002, allocations: 23.98 kB / 1.226 GB, free: 7.871 MB / 0.9825 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.0001718/0.4004, allocations: 107.2 kB / 1.226 GB, free: 7.758 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002748/0.4007, allocations: 79.86 kB / 1.226 GB, free: 7.68 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.4007, allocations: 0 / 1.226 GB, free: 7.68 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001051/0.4008, allocations: 32.83 kB / 1.226 GB, free: 7.648 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002683/0.401, allocations: 15.98 kB / 1.226 GB, free: 7.633 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003509/0.4014, allocations: 170.1 kB / 1.226 GB, free: 7.438 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002543/0.4017, allocations: 0.6896 MB / 1.227 GB, free: 6.723 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.259e-05/0.4017, allocations: 8 kB / 1.227 GB, free: 6.715 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.764e-05/0.4017, allocations: 11.44 kB / 1.227 GB, free: 6.703 MB / 0.9825 GB Notification: Performance of SimCode: time 3.31e-07/0.4017, allocations: 4 kB / 1.227 GB, free: 6.699 MB / 0.9825 GB Notification: Performance of Templates: time 0.003428/0.4051, allocations: 0.9671 MB / 1.228 GB, free: 5.773 MB / 0.9825 GB make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.makefile (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.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