Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.SampleTriggerPositiveStartTime,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.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_9_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.001624/0.001624, allocations: 106.7 kB / 16.41 MB, free: 6.484 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.001783/0.001783, allocations: 189.5 kB / 17.34 MB, free: 5.762 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.375/1.375, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.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.199/2.199, allocations: 390.2 MB / 0.6655 GB, free: 0.6484 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001442/0.001442, allocations: 67.89 kB / 0.9516 GB, free: 7.641 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8853/0.8868, allocations: 140.4 MB / 1.089 GB, free: 5.523 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.002004/0.8889, allocations: 0.7429 MB / 1.089 GB, free: 5.051 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001466/0.8903, allocations: 1.078 MB / 1.09 GB, free: 4.254 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.73e-05/0.8904, allocations: 0.875 kB / 1.09 GB, free: 4.254 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.598e-05/0.8905, allocations: 4.594 kB / 1.09 GB, free: 4.25 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 9.185e-05/0.8906, allocations: 11.22 kB / 1.09 GB, free: 4.242 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003432/0.8909, allocations: 54.56 kB / 1.09 GB, free: 4.211 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.000133/0.8911, allocations: 74.3 kB / 1.091 GB, free: 4.176 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001224/0.8912, allocations: 15.12 kB / 1.091 GB, free: 4.168 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 8.015e-05/0.8913, allocations: 30.05 kB / 1.091 GB, free: 4.152 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.026e-05/0.8914, allocations: 33.52 kB / 1.091 GB, free: 4.137 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.887e-05/0.8914, allocations: 6.375 kB / 1.091 GB, free: 4.137 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.275e-05/0.8915, allocations: 20.25 kB / 1.091 GB, free: 4.133 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.132e-05/0.8915, allocations: 18.19 kB / 1.091 GB, free: 4.121 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.208e-05/0.8916, allocations: 34.5 kB / 1.091 GB, free: 4.098 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001777/0.8917, allocations: 87.02 kB / 1.091 GB, free: 4.059 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.8918, allocations: 1.156 kB / 1.091 GB, free: 4.059 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.703e-06/0.8918, allocations: 0 / 1.091 GB, free: 4.059 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.62e-06/0.8918, allocations: 0 / 1.091 GB, free: 4.059 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.000523/0.8923, allocations: 372.9 kB / 1.091 GB, free: 3.691 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.832e-05/0.8924, allocations: 9.609 kB / 1.091 GB, free: 3.691 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.125e-05/0.8924, allocations: 8.469 kB / 1.091 GB, free: 3.688 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.105e-05/0.8925, allocations: 173.7 kB / 1.091 GB, free: 3.484 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.674e-05/0.8925, allocations: 7.125 kB / 1.091 GB, free: 3.48 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.002e-05/0.8925, allocations: 8.578 kB / 1.091 GB, free: 3.477 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000211/0.8928, allocations: 68.45 kB / 1.091 GB, free: 3.434 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.013e-05/0.8928, allocations: 3.938 kB / 1.091 GB, free: 3.43 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.309e-05/0.8928, allocations: 5.281 kB / 1.091 GB, free: 3.426 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.8928, allocations: 1.5 kB / 1.091 GB, free: 3.426 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000191/0.893, allocations: 44.17 kB / 1.091 GB, free: 3.418 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006339/0.8936, allocations: 326.2 kB / 1.092 GB, free: 3.117 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001666/0.8938, allocations: 55.5 kB / 1.092 GB, free: 3.082 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001107/0.8939, allocations: 28.78 kB / 1.092 GB, free: 3.07 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.47e-05/0.894, allocations: 1.719 kB / 1.092 GB, free: 3.07 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002139/0.8942, allocations: 90.47 kB / 1.092 GB, free: 3 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.663e-06/0.8942, allocations: 3.938 kB / 1.092 GB, free: 2.996 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.000433/0.8946, allocations: 131.4 kB / 1.092 GB, free: 2.938 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.188e-05/0.8947, allocations: 53.14 kB / 1.092 GB, free: 2.875 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.814e-05/0.8948, allocations: 127.2 kB / 1.092 GB, free: 2.762 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.436e-05/0.8948, allocations: 32.12 kB / 1.092 GB, free: 2.727 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.896e-05/0.8948, allocations: 91.53 kB / 1.092 GB, free: 2.637 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.997e-05/0.8949, allocations: 20.36 kB / 1.092 GB, free: 2.621 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.475e-05/0.8949, allocations: 30.75 kB / 1.092 GB, free: 2.598 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.846e-05/0.895, allocations: 322.9 kB / 1.093 GB, free: 2.277 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001162/0.8951, allocations: 30.64 kB / 1.093 GB, free: 2.27 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001497/0.8953, allocations: 75.08 kB / 1.093 GB, free: 2.203 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002456/0.8955, allocations: 110.4 kB / 1.093 GB, free: 2.121 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.8955, allocations: 0 / 1.093 GB, free: 2.121 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000355/0.8959, allocations: 131.1 kB / 1.093 GB, free: 2.059 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.139e-05/0.8959, allocations: 8.688 kB / 1.093 GB, free: 2.059 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.135e-06/0.8959, allocations: 2.156 kB / 1.093 GB, free: 2.059 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.933e-05/0.896, allocations: 6.344 kB / 1.093 GB, free: 2.055 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001475/0.8961, allocations: 25.42 kB / 1.093 GB, free: 2.047 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.406e-06/0.8961, allocations: 2.938 kB / 1.093 GB, free: 2.047 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.595e-05/0.8962, allocations: 11.81 kB / 1.093 GB, free: 2.043 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.881e-05/0.8963, allocations: 5.172 kB / 1.093 GB, free: 2.043 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 7.6e-05/0.8963, allocations: 127.9 kB / 1.093 GB, free: 1.914 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.645e-05/0.8964, allocations: 6.938 kB / 1.093 GB, free: 1.91 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.819e-05/0.8964, allocations: 11.3 kB / 1.093 GB, free: 1.902 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-06/0.8964, allocations: 0.7188 kB / 1.093 GB, free: 1.902 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.8964, allocations: 0.625 kB / 1.093 GB, free: 1.902 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.8964, allocations: 5.344 kB / 1.093 GB, free: 1.898 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000439/0.8969, allocations: 371.5 kB / 1.094 GB, free: 1.566 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.8969, allocations: 4.812 kB / 1.094 GB, free: 1.562 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.292e-05/0.8969, allocations: 9.281 kB / 1.094 GB, free: 1.562 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.8969, allocations: 0 / 1.094 GB, free: 1.562 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.049e-05/0.897, allocations: 6.078 kB / 1.094 GB, free: 1.559 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.897, allocations: 3.938 kB / 1.094 GB, free: 1.555 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.897, allocations: 0.9688 kB / 1.094 GB, free: 1.555 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002605/0.8972, allocations: 198.9 kB / 1.094 GB, free: 1.402 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.514e-05/0.8973, allocations: 83.75 kB / 1.094 GB, free: 1.305 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.56e-05/0.8973, allocations: 1.875 kB / 1.094 GB, free: 1.305 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.059e-05/0.8974, allocations: 10.05 kB / 1.094 GB, free: 1.301 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.373e-05/0.8974, allocations: 9.188 kB / 1.094 GB, free: 1.297 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.925e-06/0.8974, allocations: 2.859 kB / 1.094 GB, free: 1.297 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.994e-05/0.8975, allocations: 95.81 kB / 1.094 GB, free: 1.215 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.11e-07/0.8975, allocations: 0 / 1.094 GB, free: 1.215 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002671/0.8978, allocations: 13.8 kB / 1.094 GB, free: 1.215 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.000163/0.8979, allocations: 116.4 kB / 1.094 GB, free: 1.117 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002978/0.8982, allocations: 74.11 kB / 1.094 GB, free: 1.102 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.8982, allocations: 0 / 1.094 GB, free: 1.102 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001228/0.8984, allocations: 36.61 kB / 1.094 GB, free: 1.094 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002785/0.8987, allocations: 20.03 kB / 1.094 GB, free: 1.082 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003781/0.899, allocations: 192.8 kB / 1.094 GB, free: 0.9062 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001342/0.8992, allocations: 0.6884 MB / 1.095 GB, free: 216 kB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.447e-05/0.8992, allocations: 13.05 kB / 1.095 GB, free: 208 kB / 0.8575 GB Notification: Performance of SimCode: time 2.3e-07/0.8992, allocations: 0 / 1.095 GB, free: 208 kB / 0.8575 GB Notification: Performance of Templates: time 0.003271/0.9025, allocations: 1.049 MB / 1.096 GB, free: 120 kB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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