Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001593/0.001593, allocations: 104.4 kB / 19.7 MB, free: 2.125 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001846/0.001846, allocations: 214.2 kB / 22.99 MB, free: 4.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.478/1.478, allocations: 230.6 MB / 256.8 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.761/2.761, allocations: 476 MB / 0.7707 GB, free: 4.68 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002115/0.002115, allocations: 69.95 kB / 1.118 GB, free: 41.06 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3444/0.3466, allocations: 170 MB / 1.284 GB, free: 11.85 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.001987/0.3485, allocations: 0.7264 MB / 1.285 GB, free: 11.13 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001412/0.35, allocations: 1.091 MB / 1.286 GB, free: 10.03 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.537e-05/0.35, allocations: 0 / 1.286 GB, free: 10.03 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.947e-05/0.35, allocations: 3.938 kB / 1.286 GB, free: 10.02 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 7.908e-05/0.3501, allocations: 15.86 kB / 1.286 GB, free: 10.01 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003131/0.3504, allocations: 59.83 kB / 1.286 GB, free: 9.949 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001137/0.3505, allocations: 71.77 kB / 1.286 GB, free: 9.879 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000101/0.3507, allocations: 8.188 kB / 1.286 GB, free: 9.867 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 7.147e-05/0.3507, allocations: 31.91 kB / 1.286 GB, free: 9.836 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 6.373e-05/0.3508, allocations: 35.84 kB / 1.286 GB, free: 9.801 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.67e-05/0.3508, allocations: 7.938 kB / 1.286 GB, free: 9.793 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 6.474e-05/0.3509, allocations: 19.92 kB / 1.286 GB, free: 9.773 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.869e-05/0.3509, allocations: 19.92 kB / 1.286 GB, free: 9.754 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 4.125e-05/0.3509, allocations: 23.86 kB / 1.286 GB, free: 9.73 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001712/0.3511, allocations: 87.61 kB / 1.286 GB, free: 9.645 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.3511, allocations: 4 kB / 1.286 GB, free: 9.641 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.615e-06/0.3511, allocations: 0 / 1.286 GB, free: 9.641 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.481e-06/0.3511, allocations: 0 / 1.286 GB, free: 9.641 MB / 0.9825 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.0005494/0.3517, allocations: 302.1 kB / 1.286 GB, free: 9.316 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 5.206e-05/0.3517, allocations: 8.031 kB / 1.286 GB, free: 9.309 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.531e-05/0.3518, allocations: 8.891 kB / 1.286 GB, free: 9.301 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001118/0.3519, allocations: 110.5 kB / 1.286 GB, free: 9.168 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.936e-05/0.3519, allocations: 8.359 kB / 1.286 GB, free: 9.16 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.689e-05/0.3519, allocations: 8.375 kB / 1.286 GB, free: 9.152 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001927/0.3521, allocations: 70.17 kB / 1.286 GB, free: 9.078 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.168e-05/0.3521, allocations: 3.938 kB / 1.286 GB, free: 9.074 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.337e-06/0.3521, allocations: 0 / 1.286 GB, free: 9.074 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.486e-06/0.3521, allocations: 0 / 1.286 GB, free: 9.074 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001741/0.3523, allocations: 43.95 kB / 1.286 GB, free: 9.031 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005874/0.3529, allocations: 264.3 kB / 1.287 GB, free: 8.742 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001707/0.3531, allocations: 54.55 kB / 1.287 GB, free: 8.68 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.723e-05/0.3532, allocations: 24.97 kB / 1.287 GB, free: 8.652 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.281e-05/0.3532, allocations: 3.984 kB / 1.287 GB, free: 8.648 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002181/0.3534, allocations: 79.41 kB / 1.287 GB, free: 8.559 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=7): time 1.332e-06/0.3534, allocations: 0 / 1.287 GB, free: 8.559 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7): time 0.0004218/0.3538, allocations: 133.6 kB / 1.287 GB, free: 8.422 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.499e-05/0.3539, allocations: 55.41 kB / 1.287 GB, free: 8.355 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001134/0.354, allocations: 129.7 kB / 1.287 GB, free: 8.219 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.391e-05/0.354, allocations: 33.7 kB / 1.287 GB, free: 8.18 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.492e-05/0.3541, allocations: 92.08 kB / 1.287 GB, free: 8.086 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.22e-05/0.3541, allocations: 19.84 kB / 1.287 GB, free: 8.066 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.14e-05/0.3541, allocations: 25.7 kB / 1.287 GB, free: 8.035 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001455/0.3543, allocations: 322.8 kB / 1.288 GB, free: 7.711 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000113/0.3544, allocations: 35.97 kB / 1.288 GB, free: 7.676 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001441/0.3545, allocations: 73.92 kB / 1.288 GB, free: 7.582 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002319/0.3548, allocations: 113.8 kB / 1.288 GB, free: 7.449 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.3548, allocations: 0 / 1.288 GB, free: 7.449 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000314/0.3551, allocations: 133.4 kB / 1.288 GB, free: 7.312 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.679e-05/0.3551, allocations: 8 kB / 1.288 GB, free: 7.305 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.3551, allocations: 0 / 1.288 GB, free: 7.305 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.715e-05/0.3551, allocations: 4 kB / 1.288 GB, free: 7.301 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000127/0.3553, allocations: 23.97 kB / 1.288 GB, free: 7.277 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.3553, allocations: 0 / 1.288 GB, free: 7.277 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.573e-05/0.3554, allocations: 16.16 kB / 1.288 GB, free: 7.262 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.452e-05/0.3554, allocations: 7.984 kB / 1.288 GB, free: 7.254 MB / 0.9825 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.0001146/0.3555, allocations: 121.7 kB / 1.288 GB, free: 7.125 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.456e-05/0.3555, allocations: 7.953 kB / 1.288 GB, free: 7.117 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.139e-05/0.3555, allocations: 8.375 kB / 1.288 GB, free: 7.105 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.3555, allocations: 4 kB / 1.288 GB, free: 7.102 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.387e-06/0.3555, allocations: 0 / 1.288 GB, free: 7.102 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.3555, allocations: 3.984 kB / 1.288 GB, free: 7.098 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000458/0.356, allocations: 318 kB / 1.289 GB, free: 6.75 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.356, allocations: 8 kB / 1.289 GB, free: 6.742 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.471e-05/0.3561, allocations: 7.984 kB / 1.289 GB, free: 6.734 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.3561, allocations: 0 / 1.289 GB, free: 6.734 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.845e-06/0.3561, allocations: 0 / 1.289 GB, free: 6.734 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.3561, allocations: 0 / 1.289 GB, free: 6.734 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.3561, allocations: 4 kB / 1.289 GB, free: 6.73 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003056/0.3564, allocations: 207.3 kB / 1.289 GB, free: 6.512 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.081e-05/0.3564, allocations: 11.88 kB / 1.289 GB, free: 6.5 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.833e-05/0.3564, allocations: 8 kB / 1.289 GB, free: 6.492 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.302e-05/0.3565, allocations: 7.984 kB / 1.289 GB, free: 6.484 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.016e-05/0.3565, allocations: 7.984 kB / 1.289 GB, free: 6.477 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.173e-06/0.3565, allocations: 3.938 kB / 1.289 GB, free: 6.473 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.687e-05/0.3566, allocations: 95.27 kB / 1.289 GB, free: 6.379 MB / 0.9825 GB Notification: Performance of sort global known variables: time 9e-08/0.3566, allocations: 0 / 1.289 GB, free: 6.379 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.000262/0.3569, allocations: 19.95 kB / 1.289 GB, free: 6.359 MB / 0.9825 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.0001526/0.357, allocations: 99.25 kB / 1.289 GB, free: 6.254 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002914/0.3573, allocations: 79.88 kB / 1.289 GB, free: 6.176 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.3573, allocations: 0 / 1.289 GB, free: 6.176 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001198/0.3574, allocations: 39.91 kB / 1.289 GB, free: 6.137 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002733/0.3577, allocations: 12.39 kB / 1.289 GB, free: 6.129 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004013/0.3581, allocations: 187.8 kB / 1.289 GB, free: 5.91 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.777e-05/0.3582, allocations: 83.64 kB / 1.289 GB, free: 5.809 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.455e-05/0.3582, allocations: 11.44 kB / 1.289 GB, free: 5.797 MB / 0.9825 GB Notification: Performance of SimCode: time 4.01e-07/0.3582, allocations: 0 / 1.289 GB, free: 5.797 MB / 0.9825 GB Notification: Performance of Templates: time 0.003008/0.3612, allocations: 1.072 MB / 1.29 GB, free: 4.734 MB / 0.9825 GB " [Timeout remaining time 299] make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] "" 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 [Calling sys.exit(0), Time elapsed: 11.253900225739926]