Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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.SampleTriggerPositiveStartTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001723/0.001723, allocations: 109.2 kB / 15.99 MB, free: 5.91 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.001629/0.001629, allocations: 195 kB / 16.91 MB, free: 5.754 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.496/1.496, allocations: 222.9 MB / 240.6 MB, free: 13.72 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.836/2.836, allocations: 482.4 MB / 0.755 GB, free: 7.172 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.002045/0.002045, allocations: 73.77 kB / 0.924 GB, free: 296 kB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.82/0.8221, allocations: 162.2 MB / 1.082 GB, free: 1.621 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.001978/0.8241, allocations: 0.8105 MB / 1.083 GB, free: 1.098 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00119/0.8253, allocations: 1.074 MB / 1.084 GB, free: 312 kB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.647e-05/0.8253, allocations: 0 / 1.084 GB, free: 312 kB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.415e-05/0.8254, allocations: 2.297 kB / 1.084 GB, free: 312 kB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.251e-05/0.8255, allocations: 8.625 kB / 1.084 GB, free: 304 kB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002761/0.8258, allocations: 45.06 kB / 1.084 GB, free: 280 kB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 9.817e-05/0.8259, allocations: 68.42 kB / 1.084 GB, free: 248 kB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 9.831e-05/0.826, allocations: 23.55 kB / 1.084 GB, free: 232 kB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 7.285e-05/0.8261, allocations: 34.27 kB / 1.084 GB, free: 212 kB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.324e-05/0.8261, allocations: 40.7 kB / 1.084 GB, free: 188 kB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.671e-05/0.8261, allocations: 5.719 kB / 1.084 GB, free: 188 kB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 6.757e-05/0.8262, allocations: 15.94 kB / 1.085 GB, free: 188 kB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.129e-05/0.8262, allocations: 14.36 kB / 1.085 GB, free: 180 kB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.616e-05/0.8263, allocations: 30.91 kB / 1.085 GB, free: 160 kB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001117/0.8264, allocations: 58.14 kB / 1.085 GB, free: 140 kB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.8264, allocations: 2.078 kB / 1.085 GB, free: 140 kB / 0.8262 GB Notification: Performance of FrontEnd: time 2.575e-06/0.8264, allocations: 0 / 1.085 GB, free: 140 kB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.755e-06/0.8264, allocations: 0 / 1.085 GB, free: 140 kB / 0.8262 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.0005915/0.827, allocations: 377 kB / 1.085 GB, free: 15.76 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/0.8271, allocations: 10.53 kB / 1.085 GB, free: 15.76 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.118e-05/0.8271, allocations: 8.375 kB / 1.085 GB, free: 15.76 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001654/0.8273, allocations: 176.9 kB / 1.085 GB, free: 15.55 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.958e-05/0.8273, allocations: 7.625 kB / 1.085 GB, free: 15.55 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.103e-05/0.8274, allocations: 8.438 kB / 1.085 GB, free: 15.54 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002214/0.8276, allocations: 64.5 kB / 1.085 GB, free: 15.5 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.357e-05/0.8276, allocations: 4.641 kB / 1.085 GB, free: 15.5 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.196e-05/0.8276, allocations: 4 kB / 1.085 GB, free: 15.5 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-06/0.8276, allocations: 1.594 kB / 1.085 GB, free: 15.5 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001824/0.8278, allocations: 44.27 kB / 1.085 GB, free: 15.49 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007047/0.8285, allocations: 330.8 kB / 1.086 GB, free: 15.18 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000166/0.8287, allocations: 55.64 kB / 1.086 GB, free: 15.15 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001038/0.8288, allocations: 36.48 kB / 1.086 GB, free: 15.13 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.485e-05/0.8289, allocations: 1.531 kB / 1.086 GB, free: 15.13 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002254/0.8291, allocations: 82.56 kB / 1.086 GB, free: 15.07 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=7): time 1.432e-06/0.8291, allocations: 4 kB / 1.086 GB, free: 15.06 MB / 0.8419 GB Notification: Performance of matching and sorting (n=7): time 0.0004684/0.8296, allocations: 123.5 kB / 1.086 GB, free: 15.01 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.263e-05/0.8296, allocations: 53.22 kB / 1.086 GB, free: 14.95 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001409/0.8298, allocations: 123.5 kB / 1.086 GB, free: 14.84 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.576e-05/0.8298, allocations: 27.17 kB / 1.086 GB, free: 14.81 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 7.555e-05/0.8299, allocations: 101 kB / 1.086 GB, free: 14.71 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 1.963e-05/0.8299, allocations: 10.66 kB / 1.086 GB, free: 14.7 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.53e-05/0.83, allocations: 35.53 kB / 1.086 GB, free: 14.68 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001777/0.8302, allocations: 322.8 kB / 1.087 GB, free: 14.36 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001105/0.8303, allocations: 30.98 kB / 1.087 GB, free: 14.35 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001527/0.8305, allocations: 74.88 kB / 1.087 GB, free: 14.28 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002445/0.8307, allocations: 110.1 kB / 1.087 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.8307, allocations: 0.625 kB / 1.087 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003491/0.8311, allocations: 134 kB / 1.087 GB, free: 14.13 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.176e-05/0.8311, allocations: 7.219 kB / 1.087 GB, free: 14.13 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.8311, allocations: 1.375 kB / 1.087 GB, free: 14.13 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.575e-05/0.8311, allocations: 7.031 kB / 1.087 GB, free: 14.13 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001344/0.8313, allocations: 16.77 kB / 1.087 GB, free: 14.13 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.227e-06/0.8313, allocations: 3.281 kB / 1.087 GB, free: 14.13 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.106e-05/0.8314, allocations: 16.23 kB / 1.087 GB, free: 14.12 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.685e-05/0.8314, allocations: 5.188 kB / 1.087 GB, free: 14.12 MB / 0.8419 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 0.0001147/0.8315, allocations: 124 kB / 1.087 GB, free: 14 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.818e-05/0.8316, allocations: 8.281 kB / 1.087 GB, free: 13.99 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.567e-05/0.8316, allocations: 11.3 kB / 1.087 GB, free: 13.98 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.8316, allocations: 4 kB / 1.087 GB, free: 13.98 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.299e-06/0.8316, allocations: 0.9062 kB / 1.087 GB, free: 13.98 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.8316, allocations: 0.9844 kB / 1.087 GB, free: 13.98 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005607/0.8322, allocations: 380.6 kB / 1.087 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.8322, allocations: 0 / 1.087 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.439e-05/0.8323, allocations: 7.703 kB / 1.087 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.827e-06/0.8323, allocations: 2.766 kB / 1.087 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.051e-05/0.8323, allocations: 5.406 kB / 1.087 GB, free: 13.63 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.8323, allocations: 3.938 kB / 1.087 GB, free: 13.63 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.407e-06/0.8323, allocations: 0 / 1.087 GB, free: 13.63 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003128/0.8326, allocations: 196.8 kB / 1.088 GB, free: 13.48 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 6.511e-05/0.8327, allocations: 86.2 kB / 1.088 GB, free: 13.38 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.138e-05/0.8327, allocations: 6.25 kB / 1.088 GB, free: 13.38 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.767e-05/0.8328, allocations: 21.72 kB / 1.088 GB, free: 13.36 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.313e-05/0.8329, allocations: 4.812 kB / 1.088 GB, free: 13.36 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.564e-06/0.8329, allocations: 2.984 kB / 1.088 GB, free: 13.36 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 7.298e-05/0.833, allocations: 90.98 kB / 1.088 GB, free: 13.28 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.51e-07/0.833, allocations: 0.5625 kB / 1.088 GB, free: 13.28 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002621/0.8332, allocations: 22.19 kB / 1.088 GB, free: 13.27 MB / 0.8419 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.0001888/0.8334, allocations: 104.4 kB / 1.088 GB, free: 13.19 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0003004/0.8337, allocations: 86.72 kB / 1.088 GB, free: 13.16 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.8338, allocations: 0 / 1.088 GB, free: 13.16 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001195/0.8339, allocations: 35.19 kB / 1.088 GB, free: 13.15 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002766/0.8342, allocations: 20.09 kB / 1.088 GB, free: 13.14 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004328/0.8346, allocations: 217 kB / 1.088 GB, free: 12.95 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003534/0.835, allocations: 0.6888 MB / 1.089 GB, free: 12.25 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.678e-05/0.835, allocations: 13.23 kB / 1.089 GB, free: 12.24 MB / 0.8419 GB Notification: Performance of SimCode: time 5.61e-07/0.835, allocations: 0 / 1.089 GB, free: 12.24 MB / 0.8419 GB Notification: Performance of Templates: time 0.002895/0.8379, allocations: 1.033 MB / 1.09 GB, free: 12.17 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.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