Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.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.SampleTrigger,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.SampleTrigger") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,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.SampleTrigger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001406/0.001406, allocations: 109.3 kB / 16.37 MB, free: 6.48 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.001341/0.001341, allocations: 195.8 kB / 17.31 MB, free: 5.824 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.18 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.259/2.259, allocations: 390.3 MB / 0.6655 GB, free: 0.5781 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001869/0.001869, allocations: 65.88 kB / 0.814 GB, free: 32.57 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2817/0.2836, allocations: 140.4 MB / 0.9512 GB, free: 8 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.002019/0.2857, allocations: 0.7535 MB / 0.9519 GB, free: 7.242 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001366/0.287, allocations: 1.072 MB / 0.9529 GB, free: 6.156 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.326e-05/0.2871, allocations: 4 kB / 0.9529 GB, free: 6.152 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.131e-05/0.2872, allocations: 3.938 kB / 0.9529 GB, free: 6.148 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 7.466e-05/0.2872, allocations: 11.86 kB / 0.953 GB, free: 6.137 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002937/0.2875, allocations: 55.81 kB / 0.953 GB, free: 6.082 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001138/0.2877, allocations: 71.84 kB / 0.9531 GB, free: 6.012 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001118/0.2878, allocations: 24.16 kB / 0.9531 GB, free: 5.984 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 8.498e-05/0.2879, allocations: 27.86 kB / 0.9531 GB, free: 5.957 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 6.361e-05/0.2879, allocations: 35.89 kB / 0.9532 GB, free: 5.922 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.737e-05/0.288, allocations: 4 kB / 0.9532 GB, free: 5.918 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 6.63e-05/0.288, allocations: 23.92 kB / 0.9532 GB, free: 5.895 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.57e-05/0.2881, allocations: 15.98 kB / 0.9532 GB, free: 5.879 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 4.419e-05/0.2881, allocations: 31.81 kB / 0.9532 GB, free: 5.848 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001376/0.2883, allocations: 79.67 kB / 0.9533 GB, free: 5.77 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.2883, allocations: 0 / 0.9533 GB, free: 5.77 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.643e-06/0.2883, allocations: 0 / 0.9533 GB, free: 5.77 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 8.466e-06/0.2883, allocations: 4 kB / 0.9533 GB, free: 5.766 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.0006117/0.2889, allocations: 379.1 kB / 0.9537 GB, free: 5.348 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.644e-05/0.2889, allocations: 8.031 kB / 0.9537 GB, free: 5.34 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.007e-05/0.289, allocations: 4.938 kB / 0.9537 GB, free: 5.336 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000133/0.2891, allocations: 180.2 kB / 0.9539 GB, free: 5.121 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.502e-05/0.2892, allocations: 12.38 kB / 0.9539 GB, free: 5.109 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.442e-05/0.2892, allocations: 4.375 kB / 0.9539 GB, free: 5.105 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001883/0.2894, allocations: 70.16 kB / 0.9539 GB, free: 5.031 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.2894, allocations: 3.938 kB / 0.9539 GB, free: 5.027 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.498e-06/0.2894, allocations: 0 / 0.9539 GB, free: 5.027 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/0.2894, allocations: 0 / 0.9539 GB, free: 5.027 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001608/0.2896, allocations: 43.95 kB / 0.954 GB, free: 4.984 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006116/0.2902, allocations: 324.6 kB / 0.9543 GB, free: 4.617 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001537/0.2904, allocations: 62.55 kB / 0.9544 GB, free: 4.547 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.655e-05/0.2905, allocations: 24.97 kB / 0.9544 GB, free: 4.52 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.19e-05/0.2905, allocations: 7.984 kB / 0.9544 GB, free: 4.512 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001764/0.2907, allocations: 79.36 kB / 0.9545 GB, free: 4.422 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 1.453e-06/0.2907, allocations: 0 / 0.9545 GB, free: 4.422 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.0003782/0.2911, allocations: 133.5 kB / 0.9546 GB, free: 4.285 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.586e-05/0.2911, allocations: 55.41 kB / 0.9546 GB, free: 4.219 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.475e-05/0.2912, allocations: 121.8 kB / 0.9548 GB, free: 4.09 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.924e-05/0.2912, allocations: 33.7 kB / 0.9548 GB, free: 4.051 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 4.588e-05/0.2913, allocations: 92.03 kB / 0.9549 GB, free: 3.957 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.786e-05/0.2913, allocations: 15.75 kB / 0.9549 GB, free: 3.941 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.722e-05/0.2914, allocations: 33.64 kB / 0.9549 GB, free: 3.902 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001141/0.2915, allocations: 322.8 kB / 0.9552 GB, free: 3.578 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.756e-05/0.2916, allocations: 27.97 kB / 0.9553 GB, free: 3.551 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001266/0.2917, allocations: 82.36 kB / 0.9553 GB, free: 3.449 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002846/0.292, allocations: 105.9 kB / 0.9554 GB, free: 3.324 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.594e-06/0.292, allocations: 0 / 0.9554 GB, free: 3.324 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002744/0.2923, allocations: 129.6 kB / 0.9556 GB, free: 3.191 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.586e-05/0.2923, allocations: 8 kB / 0.9556 GB, free: 3.184 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.2923, allocations: 0 / 0.9556 GB, free: 3.184 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.455e-05/0.2923, allocations: 4 kB / 0.9556 GB, free: 3.18 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001237/0.2925, allocations: 19.97 kB / 0.9556 GB, free: 3.16 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.582e-06/0.2925, allocations: 0 / 0.9556 GB, free: 3.16 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.851e-05/0.2926, allocations: 15.91 kB / 0.9556 GB, free: 3.145 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.811e-05/0.2926, allocations: 7.984 kB / 0.9556 GB, free: 3.137 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.82e-05/0.2927, allocations: 129.9 kB / 0.9557 GB, free: 3.004 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.38e-05/0.2927, allocations: 7.906 kB / 0.9557 GB, free: 2.996 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.744e-05/0.2927, allocations: 8.375 kB / 0.9558 GB, free: 2.988 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.2928, allocations: 4 kB / 0.9558 GB, free: 2.984 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.117e-06/0.2928, allocations: 0 / 0.9558 GB, free: 2.984 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.586e-06/0.2928, allocations: 0 / 0.9558 GB, free: 2.984 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005213/0.2933, allocations: 374.4 kB / 0.9561 GB, free: 2.562 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.2933, allocations: 4 kB / 0.9561 GB, free: 2.559 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.768e-05/0.2934, allocations: 7.984 kB / 0.9561 GB, free: 2.551 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.2934, allocations: 0 / 0.9561 GB, free: 2.551 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.817e-06/0.2934, allocations: 0 / 0.9561 GB, free: 2.551 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.11e-06/0.2934, allocations: 7.938 kB / 0.9561 GB, free: 2.543 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.2934, allocations: 0 / 0.9561 GB, free: 2.543 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002714/0.2937, allocations: 207.4 kB / 0.9563 GB, free: 2.324 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.665e-05/0.2937, allocations: 88.95 kB / 0.9564 GB, free: 2.219 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.034e-05/0.2938, allocations: 0 / 0.9564 GB, free: 2.219 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.053e-05/0.2939, allocations: 19.8 kB / 0.9564 GB, free: 2.199 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.929e-05/0.2939, allocations: 0 / 0.9564 GB, free: 2.199 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.488e-06/0.2939, allocations: 8 kB / 0.9564 GB, free: 2.191 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 5.424e-05/0.294, allocations: 99.42 kB / 0.9565 GB, free: 2.094 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.6e-07/0.294, allocations: 3.938 kB / 0.9565 GB, free: 2.09 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002479/0.2942, allocations: 16 kB / 0.9566 GB, free: 2.074 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.0001689/0.2944, allocations: 115.2 kB / 0.9567 GB, free: 1.949 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002592/0.2947, allocations: 76.34 kB / 0.9567 GB, free: 1.875 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.2947, allocations: 0 / 0.9567 GB, free: 1.875 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001017/0.2948, allocations: 31.92 kB / 0.9568 GB, free: 1.844 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002657/0.2951, allocations: 21.61 kB / 0.9568 GB, free: 1.824 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004185/0.2955, allocations: 162.2 kB / 0.9569 GB, free: 1.637 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003393/0.2958, allocations: 0.6922 MB / 0.9576 GB, free: 0.918 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 3.489e-05/0.2959, allocations: 4 kB / 0.9576 GB, free: 0.9141 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.905e-05/0.2959, allocations: 11.44 kB / 0.9576 GB, free: 0.9023 MB / 0.7325 GB Notification: Performance of SimCode: time 3.21e-07/0.2959, allocations: 0 / 0.9576 GB, free: 0.9023 MB / 0.7325 GB Notification: Performance of Templates: time 0.003842/0.2998, allocations: 0.9583 MB / 0.9586 GB, free: 15.96 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.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