Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 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.SampleTriggerPositiveStartTime,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.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_11_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.001494/0.001494, allocations: 102.7 kB / 15.99 MB, free: 5.891 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.001421/0.001421, allocations: 192.7 kB / 16.91 MB, free: 5.746 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.368/1.368, allocations: 222.9 MB / 240.6 MB, free: 4.504 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.729/2.729, allocations: 469.8 MB / 0.7427 GB, free: 7.555 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001826/0.001826, allocations: 65.66 kB / 0.9087 GB, free: 34.59 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2859/0.2878, allocations: 159.2 MB / 1.064 GB, free: 14.6 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.002565/0.2904, allocations: 0.8127 MB / 1.065 GB, free: 13.79 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00141/0.2919, allocations: 1.077 MB / 1.066 GB, free: 12.7 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.532e-05/0.2919, allocations: 0 / 1.066 GB, free: 12.7 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.794e-05/0.292, allocations: 3.938 kB / 1.066 GB, free: 12.69 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.459e-05/0.2921, allocations: 11.92 kB / 1.066 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002802/0.2924, allocations: 43.89 kB / 1.066 GB, free: 12.64 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001044/0.2925, allocations: 67.84 kB / 1.066 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001074/0.2926, allocations: 20.17 kB / 1.066 GB, free: 12.55 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 7.153e-05/0.2927, allocations: 31.86 kB / 1.066 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 5.729e-05/0.2927, allocations: 31.84 kB / 1.066 GB, free: 12.48 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.919e-05/0.2928, allocations: 8 kB / 1.066 GB, free: 12.48 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 7.102e-05/0.2928, allocations: 23.92 kB / 1.066 GB, free: 12.45 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.044e-05/0.2929, allocations: 15.92 kB / 1.066 GB, free: 12.44 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.8e-05/0.2929, allocations: 35.84 kB / 1.066 GB, free: 12.4 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001087/0.293, allocations: 51.84 kB / 1.066 GB, free: 12.35 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.293, allocations: 0 / 1.066 GB, free: 12.35 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.233e-06/0.293, allocations: 4 kB / 1.066 GB, free: 12.35 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.799e-06/0.2931, allocations: 0 / 1.066 GB, free: 12.35 MB / 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.000632/0.2937, allocations: 387.5 kB / 1.067 GB, free: 11.92 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.429e-05/0.2937, allocations: 8.031 kB / 1.067 GB, free: 11.91 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.194e-05/0.2938, allocations: 8.844 kB / 1.067 GB, free: 11.91 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000174/0.294, allocations: 172.3 kB / 1.067 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.229e-05/0.294, allocations: 384 / 1.067 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.641e-05/0.294, allocations: 12.36 kB / 1.067 GB, free: 11.69 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001946/0.2942, allocations: 70.17 kB / 1.067 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.678e-06/0.2942, allocations: 3.938 kB / 1.067 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.154e-05/0.2942, allocations: 4 kB / 1.067 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.2942, allocations: 0 / 1.067 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001655/0.2944, allocations: 43.95 kB / 1.067 GB, free: 11.56 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006397/0.2951, allocations: 324.6 kB / 1.067 GB, free: 11.2 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001695/0.2952, allocations: 54.55 kB / 1.067 GB, free: 11.13 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.267e-05/0.2953, allocations: 28.97 kB / 1.067 GB, free: 11.1 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.336e-05/0.2954, allocations: 0 / 1.067 GB, free: 11.1 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002157/0.2956, allocations: 79.38 kB / 1.067 GB, free: 11.01 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.372e-06/0.2956, allocations: 0 / 1.067 GB, free: 11.01 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0004283/0.296, allocations: 141.5 kB / 1.068 GB, free: 10.87 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.796e-05/0.2961, allocations: 51.41 kB / 1.068 GB, free: 10.8 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001093/0.2962, allocations: 125.8 kB / 1.068 GB, free: 10.67 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.999e-05/0.2962, allocations: 29.7 kB / 1.068 GB, free: 10.64 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.139e-05/0.2963, allocations: 92.05 kB / 1.068 GB, free: 10.54 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.188e-05/0.2963, allocations: 19.75 kB / 1.068 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.537e-05/0.2964, allocations: 33.64 kB / 1.068 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001399/0.2965, allocations: 318.8 kB / 1.068 GB, free: 10.16 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001047/0.2967, allocations: 31.97 kB / 1.068 GB, free: 10.13 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001355/0.2968, allocations: 77.98 kB / 1.068 GB, free: 10.04 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002239/0.297, allocations: 113.8 kB / 1.068 GB, free: 9.902 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.297, allocations: 0 / 1.068 GB, free: 9.902 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000303/0.2973, allocations: 133.6 kB / 1.069 GB, free: 9.766 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.44e-05/0.2974, allocations: 8 kB / 1.069 GB, free: 9.758 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.732e-06/0.2974, allocations: 4 kB / 1.069 GB, free: 9.754 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.183e-05/0.2974, allocations: 0 / 1.069 GB, free: 9.754 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001292/0.2975, allocations: 23.92 kB / 1.069 GB, free: 9.73 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.65e-06/0.2975, allocations: 0 / 1.069 GB, free: 9.73 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.412e-05/0.2976, allocations: 11.98 kB / 1.069 GB, free: 9.719 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.813e-05/0.2977, allocations: 4 kB / 1.069 GB, free: 9.715 MB / 0.8262 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.000125/0.2978, allocations: 121.8 kB / 1.069 GB, free: 9.586 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.864e-05/0.2978, allocations: 15.84 kB / 1.069 GB, free: 9.57 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.062e-05/0.2979, allocations: 8.359 kB / 1.069 GB, free: 9.562 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.2979, allocations: 0 / 1.069 GB, free: 9.562 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.838e-06/0.2979, allocations: 0 / 1.069 GB, free: 9.562 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.888e-06/0.2979, allocations: 4 kB / 1.069 GB, free: 9.559 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006072/0.2985, allocations: 374.4 kB / 1.069 GB, free: 9.137 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.2985, allocations: 0 / 1.069 GB, free: 9.137 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.47e-05/0.2986, allocations: 15.94 kB / 1.069 GB, free: 9.121 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.2986, allocations: 0 / 1.069 GB, free: 9.121 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.458e-05/0.2986, allocations: 3.984 kB / 1.069 GB, free: 9.117 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.988e-06/0.2987, allocations: 3.938 kB / 1.069 GB, free: 9.113 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.2987, allocations: 0 / 1.069 GB, free: 9.113 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003696/0.299, allocations: 191.5 kB / 1.069 GB, free: 8.91 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.845e-05/0.2991, allocations: 92.94 kB / 1.069 GB, free: 8.801 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.278e-05/0.2991, allocations: 0 / 1.069 GB, free: 8.801 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001216/0.2993, allocations: 15.88 kB / 1.069 GB, free: 8.785 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.429e-05/0.2993, allocations: 7.984 kB / 1.069 GB, free: 8.777 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.083e-05/0.2994, allocations: 4 kB / 1.069 GB, free: 8.773 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.22e-05/0.2994, allocations: 91.27 kB / 1.07 GB, free: 8.684 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.6e-07/0.2995, allocations: 0 / 1.07 GB, free: 8.684 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003941/0.2999, allocations: 16 kB / 1.07 GB, free: 8.668 MB / 0.8262 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.0002056/0.3001, allocations: 116.2 kB / 1.07 GB, free: 8.547 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003806/0.3005, allocations: 75.88 kB / 1.07 GB, free: 8.473 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.3005, allocations: 0 / 1.07 GB, free: 8.473 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000165/0.3006, allocations: 39.97 kB / 1.07 GB, free: 8.434 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003818/0.301, allocations: 18.2 kB / 1.07 GB, free: 8.418 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004885/0.3015, allocations: 196.4 kB / 1.07 GB, free: 8.191 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003671/0.3019, allocations: 0.698 MB / 1.071 GB, free: 7.469 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.968e-05/0.302, allocations: 11.44 kB / 1.071 GB, free: 7.457 MB / 0.8262 GB Notification: Performance of SimCode: time 3.5e-07/0.302, allocations: 4 kB / 1.071 GB, free: 7.453 MB / 0.8262 GB Notification: Performance of Templates: time 0.003538/0.3055, allocations: 1.049 MB / 1.072 GB, free: 6.41 MB / 0.8262 GB make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.makefile (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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