Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001749/0.001749, allocations: 108.1 kB / 16.27 MB, free: 5.984 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.002002/0.002002, allocations: 193.3 kB / 17.2 MB, free: 5.609 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.439/1.439, allocations: 222.9 MB / 240.9 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.551/2.551, allocations: 437.1 MB / 0.711 GB, free: 4.531 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001957/0.001958, allocations: 72.52 kB / 0.8699 GB, free: 2.199 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3394/0.3414, allocations: 151.6 MB / 1.018 GB, free: 10.64 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.002261/0.3437, allocations: 0.754 MB / 1.019 GB, free: 9.887 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.00156/0.3453, allocations: 1.071 MB / 1.02 GB, free: 8.801 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.362e-05/0.3453, allocations: 0 / 1.02 GB, free: 8.801 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.995e-05/0.3454, allocations: 7.875 kB / 1.02 GB, free: 8.793 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 7.293e-05/0.3455, allocations: 7.922 kB / 1.02 GB, free: 8.785 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003481/0.3459, allocations: 63.8 kB / 1.02 GB, free: 8.723 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001108/0.346, allocations: 67.84 kB / 1.02 GB, free: 8.656 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001309/0.3461, allocations: 28.09 kB / 1.02 GB, free: 8.625 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 8.201e-05/0.3462, allocations: 35.8 kB / 1.02 GB, free: 8.59 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 7.002e-05/0.3463, allocations: 31.89 kB / 1.02 GB, free: 8.559 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 2.48e-05/0.3463, allocations: 4 kB / 1.02 GB, free: 8.555 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 7.093e-05/0.3464, allocations: 23.94 kB / 1.02 GB, free: 8.531 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 2.319e-05/0.3464, allocations: 7.984 kB / 1.02 GB, free: 8.523 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 5.359e-05/0.3465, allocations: 31.86 kB / 1.02 GB, free: 8.492 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001676/0.3467, allocations: 79.75 kB / 1.02 GB, free: 8.414 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.3467, allocations: 0 / 1.02 GB, free: 8.414 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.543e-06/0.3467, allocations: 0 / 1.02 GB, free: 8.414 MB / 0.795 GB Notification: Performance of Transformations before backend: time 4.95e-06/0.3467, allocations: 0 / 1.02 GB, free: 8.414 MB / 0.795 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.0006567/0.3474, allocations: 387.4 kB / 1.021 GB, free: 7.988 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.671e-05/0.3474, allocations: 12.92 kB / 1.021 GB, free: 7.977 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.479e-05/0.3475, allocations: 8.844 kB / 1.021 GB, free: 7.969 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001757/0.3477, allocations: 184.2 kB / 1.021 GB, free: 7.75 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.552e-05/0.3477, allocations: 384 / 1.021 GB, free: 7.75 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.169e-05/0.3477, allocations: 16.36 kB / 1.021 GB, free: 7.734 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002072/0.3479, allocations: 62.23 kB / 1.021 GB, free: 7.668 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.262e-05/0.3479, allocations: 3.938 kB / 1.021 GB, free: 7.664 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.116e-05/0.348, allocations: 0 / 1.021 GB, free: 7.664 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.713e-06/0.348, allocations: 4 kB / 1.021 GB, free: 7.66 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001811/0.3482, allocations: 43.95 kB / 1.021 GB, free: 7.617 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006893/0.3488, allocations: 328.6 kB / 1.021 GB, free: 7.246 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001708/0.349, allocations: 50.55 kB / 1.021 GB, free: 7.188 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001041/0.3491, allocations: 32.97 kB / 1.021 GB, free: 7.152 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.586e-05/0.3492, allocations: 0 / 1.021 GB, free: 7.152 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002233/0.3494, allocations: 83.41 kB / 1.021 GB, free: 7.059 MB / 0.795 GB Notification: Performance of pre-optimization done (n=7): time 1.182e-06/0.3494, allocations: 0 / 1.021 GB, free: 7.059 MB / 0.795 GB Notification: Performance of matching and sorting (n=7): time 0.0004374/0.3499, allocations: 129.5 kB / 1.021 GB, free: 6.926 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.081e-05/0.3499, allocations: 55.41 kB / 1.022 GB, free: 6.859 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001186/0.3501, allocations: 125.8 kB / 1.022 GB, free: 6.727 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.062e-05/0.3501, allocations: 25.7 kB / 1.022 GB, free: 6.695 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 7.572e-05/0.3502, allocations: 92.05 kB / 1.022 GB, free: 6.602 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 2.361e-05/0.3502, allocations: 15.75 kB / 1.022 GB, free: 6.586 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.862e-05/0.3503, allocations: 33.7 kB / 1.022 GB, free: 6.547 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001606/0.3504, allocations: 322.8 kB / 1.022 GB, free: 6.223 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001389/0.3506, allocations: 35.84 kB / 1.022 GB, free: 6.188 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001495/0.3507, allocations: 77.92 kB / 1.022 GB, free: 6.09 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002525/0.351, allocations: 105.9 kB / 1.022 GB, free: 5.965 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.601e-06/0.351, allocations: 3.984 kB / 1.022 GB, free: 5.961 MB / 0.795 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003272/0.3513, allocations: 137.5 kB / 1.022 GB, free: 5.82 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/0.3514, allocations: 4 kB / 1.022 GB, free: 5.816 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.184e-06/0.3514, allocations: 4 kB / 1.022 GB, free: 5.812 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.523e-05/0.3514, allocations: 0 / 1.022 GB, free: 5.812 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001313/0.3515, allocations: 15.98 kB / 1.022 GB, free: 5.797 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.017e-06/0.3515, allocations: 4 kB / 1.022 GB, free: 5.793 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.224e-05/0.3516, allocations: 7.984 kB / 1.022 GB, free: 5.785 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.119e-05/0.3517, allocations: 8 kB / 1.022 GB, free: 5.777 MB / 0.795 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.0001238/0.3518, allocations: 133.1 kB / 1.023 GB, free: 5.641 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.591e-05/0.3518, allocations: 7.891 kB / 1.023 GB, free: 5.633 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.307e-05/0.3519, allocations: 16.36 kB / 1.023 GB, free: 5.613 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.3519, allocations: 0 / 1.023 GB, free: 5.613 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.217e-06/0.3519, allocations: 0 / 1.023 GB, free: 5.613 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.3519, allocations: 0 / 1.023 GB, free: 5.613 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005455/0.3524, allocations: 378.7 kB / 1.023 GB, free: 5.188 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.774e-06/0.3524, allocations: 0 / 1.023 GB, free: 5.188 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.103e-05/0.3525, allocations: 4 kB / 1.023 GB, free: 5.184 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.589e-06/0.3525, allocations: 4 kB / 1.023 GB, free: 5.18 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.025e-05/0.3525, allocations: 3.984 kB / 1.023 GB, free: 5.176 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.938e-06/0.3525, allocations: 4.016 kB / 1.023 GB, free: 5.172 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.222e-06/0.3525, allocations: 7.984 kB / 1.023 GB, free: 5.164 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003091/0.3529, allocations: 203.3 kB / 1.023 GB, free: 4.949 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 5.86e-05/0.3529, allocations: 92.94 kB / 1.023 GB, free: 4.84 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.736e-05/0.3529, allocations: 4 kB / 1.023 GB, free: 4.836 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.251e-05/0.353, allocations: 7.938 kB / 1.023 GB, free: 4.828 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.122e-05/0.3531, allocations: 7.984 kB / 1.023 GB, free: 4.82 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.61e-06/0.3531, allocations: 0 / 1.023 GB, free: 4.82 MB / 0.795 GB Notification: Performance of sorting global known variables: time 7.367e-05/0.3532, allocations: 95.27 kB / 1.023 GB, free: 4.727 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3532, allocations: 0 / 1.023 GB, free: 4.727 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002571/0.3534, allocations: 16 kB / 1.023 GB, free: 4.711 MB / 0.795 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.0002052/0.3536, allocations: 115.2 kB / 1.024 GB, free: 4.59 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0003073/0.354, allocations: 75.89 kB / 1.024 GB, free: 4.516 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.354, allocations: 0 / 1.024 GB, free: 4.516 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001177/0.3541, allocations: 36.34 kB / 1.024 GB, free: 4.48 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000286/0.3544, allocations: 23.56 kB / 1.024 GB, free: 4.461 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004598/0.3549, allocations: 180 kB / 1.024 GB, free: 4.25 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004155/0.3553, allocations: 0.6924 MB / 1.025 GB, free: 3.531 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.468e-05/0.3553, allocations: 11.44 kB / 1.025 GB, free: 3.52 MB / 0.795 GB Notification: Performance of SimCode: time 3.2e-07/0.3553, allocations: 0 / 1.025 GB, free: 3.52 MB / 0.795 GB Notification: Performance of Templates: time 0.002878/0.3582, allocations: 1.037 MB / 1.026 GB, free: 2.492 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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