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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001085/0.001085, allocations: 111.5 kB / 16.37 MB, free: 5.539 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.001074/0.001074, allocations: 192 kB / 17.31 MB, free: 5.18 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.401/1.401, 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.2-maint.9.1.x/package.mo): time 2.207/2.207, allocations: 390.3 MB / 0.6655 GB, free: 0.6016 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001924/0.001924, allocations: 66.44 kB / 0.8141 GB, free: 32.67 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2976/0.2995, allocations: 140.4 MB / 0.9511 GB, free: 8.027 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.002178/0.3018, allocations: 0.761 MB / 0.9519 GB, free: 7.266 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001312/0.3031, allocations: 1.076 MB / 0.9529 GB, free: 6.176 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.018e-05/0.3032, allocations: 0 / 0.9529 GB, free: 6.176 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.612e-05/0.3032, allocations: 7.875 kB / 0.953 GB, free: 6.168 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 7.379e-05/0.3033, allocations: 11.86 kB / 0.953 GB, free: 6.156 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003348/0.3036, allocations: 55.89 kB / 0.953 GB, free: 6.102 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001353/0.3038, allocations: 71.77 kB / 0.9531 GB, free: 6.031 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001203/0.3039, allocations: 16.19 kB / 0.9531 GB, free: 6.012 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 8.213e-05/0.304, allocations: 35.84 kB / 0.9531 GB, free: 5.977 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 6.279e-05/0.3041, allocations: 31.91 kB / 0.9532 GB, free: 5.945 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.675e-05/0.3041, allocations: 4 kB / 0.9532 GB, free: 5.941 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 7.516e-05/0.3042, allocations: 19.98 kB / 0.9532 GB, free: 5.922 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.338e-05/0.3042, allocations: 19.91 kB / 0.9532 GB, free: 5.902 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 4.239e-05/0.3043, allocations: 31.86 kB / 0.9532 GB, free: 5.871 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001441/0.3044, allocations: 79.69 kB / 0.9533 GB, free: 5.793 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.3044, allocations: 0 / 0.9533 GB, free: 5.793 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.325e-06/0.3044, allocations: 0 / 0.9533 GB, free: 5.793 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.981e-06/0.3044, allocations: 0 / 0.9533 GB, free: 5.793 MB / 0.7325 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.0005525/0.305, allocations: 391.1 kB / 0.9537 GB, free: 5.363 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.735e-05/0.305, allocations: 12.03 kB / 0.9537 GB, free: 5.352 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.799e-05/0.3051, allocations: 4.938 kB / 0.9537 GB, free: 5.348 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001274/0.3052, allocations: 176.2 kB / 0.9539 GB, free: 5.137 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.239e-05/0.3052, allocations: 384 / 0.9539 GB, free: 5.137 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.811e-05/0.3052, allocations: 8.375 kB / 0.9539 GB, free: 5.129 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001886/0.3054, allocations: 66.22 kB / 0.9539 GB, free: 5.059 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.558e-06/0.3055, allocations: 3.938 kB / 0.9539 GB, free: 5.055 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.284e-05/0.3055, allocations: 4 kB / 0.9539 GB, free: 5.051 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.845e-06/0.3055, allocations: 11.92 kB / 0.954 GB, free: 5.039 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001695/0.3057, allocations: 43.95 kB / 0.954 GB, free: 4.996 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006208/0.3063, allocations: 316.7 kB / 0.9543 GB, free: 4.637 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001598/0.3065, allocations: 58.58 kB / 0.9544 GB, free: 4.57 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.714e-05/0.3066, allocations: 36.95 kB / 0.9544 GB, free: 4.531 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.174e-05/0.3066, allocations: 0 / 0.9544 GB, free: 4.531 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001967/0.3068, allocations: 79.36 kB / 0.9545 GB, free: 4.441 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 1.383e-06/0.3068, allocations: 0 / 0.9545 GB, free: 4.441 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.0003999/0.3072, allocations: 129.5 kB / 0.9546 GB, free: 4.309 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.739e-05/0.3073, allocations: 59.41 kB / 0.9547 GB, free: 4.238 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.158e-05/0.3074, allocations: 121.8 kB / 0.9548 GB, free: 4.109 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.909e-05/0.3074, allocations: 25.7 kB / 0.9548 GB, free: 4.078 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.94e-05/0.3075, allocations: 96.03 kB / 0.9549 GB, free: 3.98 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.319e-05/0.3075, allocations: 19.73 kB / 0.9549 GB, free: 3.961 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.778e-05/0.3076, allocations: 29.7 kB / 0.9549 GB, free: 3.926 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001203/0.3077, allocations: 334.7 kB / 0.9552 GB, free: 3.59 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001083/0.3078, allocations: 23.98 kB / 0.9553 GB, free: 3.566 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001227/0.3079, allocations: 69.98 kB / 0.9553 GB, free: 3.477 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002194/0.3082, allocations: 109.8 kB / 0.9554 GB, free: 3.348 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.3082, allocations: 8 kB / 0.9555 GB, free: 3.34 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002818/0.3085, allocations: 125.5 kB / 0.9556 GB, free: 3.211 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.563e-05/0.3085, allocations: 7.984 kB / 0.9556 GB, free: 3.203 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.533e-06/0.3085, allocations: 4 kB / 0.9556 GB, free: 3.199 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.3e-05/0.3085, allocations: 0 / 0.9556 GB, free: 3.199 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001258/0.3086, allocations: 28.14 kB / 0.9556 GB, free: 3.172 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.995e-06/0.3087, allocations: 4 kB / 0.9556 GB, free: 3.168 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.919e-05/0.3087, allocations: 11.89 kB / 0.9556 GB, free: 3.156 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.444e-05/0.3088, allocations: 4 kB / 0.9556 GB, free: 3.152 MB / 0.7325 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.476e-05/0.3089, allocations: 125.8 kB / 0.9557 GB, free: 3.02 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.256e-05/0.3089, allocations: 3.906 kB / 0.9558 GB, free: 3.016 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.719e-05/0.3089, allocations: 16.31 kB / 0.9558 GB, free: 3 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.3089, allocations: 0 / 0.9558 GB, free: 3 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.3089, allocations: 0 / 0.9558 GB, free: 3 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.3089, allocations: 7.984 kB / 0.9558 GB, free: 2.992 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004434/0.3094, allocations: 366.4 kB / 0.9561 GB, free: 2.578 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.3094, allocations: 0 / 0.9561 GB, free: 2.578 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.129e-05/0.3095, allocations: 7.984 kB / 0.9561 GB, free: 2.57 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.3095, allocations: 0 / 0.9561 GB, free: 2.57 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.145e-06/0.3095, allocations: 4 kB / 0.9561 GB, free: 2.566 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.807e-06/0.3095, allocations: 3.938 kB / 0.9561 GB, free: 2.562 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.3095, allocations: 7.938 kB / 0.9561 GB, free: 2.555 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002786/0.3098, allocations: 199.8 kB / 0.9563 GB, free: 2.344 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.234e-05/0.3098, allocations: 88.95 kB / 0.9564 GB, free: 2.238 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.615e-05/0.3098, allocations: 0 / 0.9564 GB, free: 2.238 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.37e-05/0.3099, allocations: 15.92 kB / 0.9564 GB, free: 2.223 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.469e-05/0.31, allocations: 11.92 kB / 0.9564 GB, free: 2.211 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.603e-06/0.31, allocations: 4 kB / 0.9565 GB, free: 2.207 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 5.969e-05/0.3101, allocations: 95.27 kB / 0.9565 GB, free: 2.113 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3101, allocations: 0 / 0.9565 GB, free: 2.113 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002545/0.3103, allocations: 16 kB / 0.9566 GB, free: 2.098 MB / 0.7325 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.000173/0.3105, allocations: 103.2 kB / 0.9567 GB, free: 1.984 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002839/0.3108, allocations: 84.14 kB / 0.9567 GB, free: 1.902 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.3108, allocations: 0 / 0.9567 GB, free: 1.902 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001047/0.3109, allocations: 35.97 kB / 0.9568 GB, free: 1.867 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002643/0.3112, allocations: 10.64 kB / 0.9568 GB, free: 1.859 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003662/0.3116, allocations: 158.3 kB / 0.9569 GB, free: 1.676 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000272/0.3119, allocations: 0.7016 MB / 0.9576 GB, free: 0.9492 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 3.594e-05/0.3119, allocations: 8 kB / 0.9576 GB, free: 0.9414 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.915e-05/0.3119, allocations: 11.44 kB / 0.9576 GB, free: 0.9297 MB / 0.7325 GB Notification: Performance of SimCode: time 2.91e-07/0.3119, allocations: 0 / 0.9576 GB, free: 0.9297 MB / 0.7325 GB Notification: Performance of Templates: time 0.003414/0.3154, allocations: 0.9775 MB / 0.9586 GB, free: 15.99 MB / 0.7481 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 -s gbode -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: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