Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.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.002033/0.002033, allocations: 107.3 kB / 16.46 MB, free: 6.508 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.002495/0.002495, allocations: 213.7 kB / 19.43 MB, free: 3.648 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.674/1.674, allocations: 230.6 MB / 252.8 MB, free: 9.105 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.323/3.323, allocations: 0.4899 GB / 0.7916 GB, free: 33.34 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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.SampleTriggerPositiveStartTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime") [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.002965/0.002965, allocations: 71.28 kB / 1.149 GB, free: 26.15 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4092/0.4121, allocations: 176.1 MB / 1.321 GB, free: 2.812 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.002103/0.4142, allocations: 0.7536 MB / 1.322 GB, free: 2.062 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001524/0.4158, allocations: 1.105 MB / 1.323 GB, free: 0.9453 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.996e-05/0.4158, allocations: 0 / 1.323 GB, free: 0.9453 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.321e-05/0.4159, allocations: 7.875 kB / 1.323 GB, free: 0.9375 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 9.024e-05/0.416, allocations: 11.92 kB / 1.323 GB, free: 0.9258 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003263/0.4163, allocations: 55.77 kB / 1.323 GB, free: 0.8711 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001392/0.4164, allocations: 71.77 kB / 1.323 GB, free: 0.8008 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000118/0.4165, allocations: 20.17 kB / 1.323 GB, free: 0.7773 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 8.38e-05/0.4166, allocations: 31.86 kB / 1.323 GB, free: 0.7461 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 7.195e-05/0.4167, allocations: 39.84 kB / 1.323 GB, free: 0.707 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.893e-05/0.4167, allocations: 4 kB / 1.323 GB, free: 0.7031 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 7.42e-05/0.4168, allocations: 23.97 kB / 1.323 GB, free: 0.6797 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 3.288e-05/0.4168, allocations: 11.98 kB / 1.323 GB, free: 0.668 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 4.965e-05/0.4169, allocations: 35.8 kB / 1.323 GB, free: 0.6328 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001771/0.417, allocations: 75.69 kB / 1.323 GB, free: 0.5586 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.4171, allocations: 4 kB / 1.323 GB, free: 0.5547 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.764e-06/0.4171, allocations: 0 / 1.323 GB, free: 0.5547 MB / 1.014 GB Notification: Performance of Transformations before backend: time 6.271e-06/0.4171, allocations: 0 / 1.323 GB, free: 0.5547 MB / 1.014 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.0006525/0.4177, allocations: 387.1 kB / 1.324 GB, free: 132 kB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 5.27e-05/0.4178, allocations: 15.98 kB / 1.324 GB, free: 116 kB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.996e-05/0.4178, allocations: 8.891 kB / 1.324 GB, free: 108 kB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001848/0.418, allocations: 168.3 kB / 1.324 GB, free: 15.9 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.058e-05/0.418, allocations: 4.375 kB / 1.324 GB, free: 15.9 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.891e-05/0.418, allocations: 8.375 kB / 1.324 GB, free: 15.89 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002191/0.4183, allocations: 66.22 kB / 1.324 GB, free: 15.82 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.112e-05/0.4183, allocations: 3.938 kB / 1.324 GB, free: 15.82 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.142e-05/0.4183, allocations: 0 / 1.324 GB, free: 15.82 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.4183, allocations: 4 kB / 1.324 GB, free: 15.81 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001873/0.4185, allocations: 51.89 kB / 1.324 GB, free: 15.76 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007423/0.4192, allocations: 324.7 kB / 1.324 GB, free: 15.39 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001761/0.4194, allocations: 50.55 kB / 1.325 GB, free: 15.34 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001061/0.4195, allocations: 36.98 kB / 1.325 GB, free: 15.3 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.158e-05/0.4195, allocations: 0 / 1.325 GB, free: 15.3 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002282/0.4198, allocations: 79.36 kB / 1.325 GB, free: 15.21 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 1.162e-06/0.4198, allocations: 0 / 1.325 GB, free: 15.21 MB / 1.029 GB Notification: Performance of matching and sorting (n=7): time 0.0004669/0.4202, allocations: 129.6 kB / 1.325 GB, free: 15.07 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.798e-05/0.4203, allocations: 55.41 kB / 1.325 GB, free: 15.01 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001253/0.4204, allocations: 125.8 kB / 1.325 GB, free: 14.88 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.296e-05/0.4204, allocations: 29.64 kB / 1.325 GB, free: 14.84 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 7.178e-05/0.4205, allocations: 100.1 kB / 1.325 GB, free: 14.74 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.112e-05/0.4205, allocations: 11.91 kB / 1.325 GB, free: 14.73 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.778e-05/0.4206, allocations: 37.64 kB / 1.325 GB, free: 14.68 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001616/0.4207, allocations: 322.8 kB / 1.325 GB, free: 14.36 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000113/0.4208, allocations: 27.98 kB / 1.325 GB, free: 14.33 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001491/0.421, allocations: 69.98 kB / 1.325 GB, free: 14.24 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002448/0.4212, allocations: 105.9 kB / 1.326 GB, free: 14.12 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.4212, allocations: 7.938 kB / 1.326 GB, free: 14.11 MB / 1.029 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003193/0.4216, allocations: 129.5 kB / 1.326 GB, free: 13.98 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.669e-05/0.4216, allocations: 7.984 kB / 1.326 GB, free: 13.97 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.595e-06/0.4216, allocations: 4 kB / 1.326 GB, free: 13.96 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.576e-05/0.4216, allocations: 0 / 1.326 GB, free: 13.96 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001337/0.4217, allocations: 23.98 kB / 1.326 GB, free: 13.94 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.046e-05/0.4217, allocations: 12.16 kB / 1.326 GB, free: 13.93 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.362e-05/0.4218, allocations: 11.92 kB / 1.326 GB, free: 13.92 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.544e-05/0.4218, allocations: 4 kB / 1.326 GB, free: 13.91 MB / 1.029 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.0001163/0.422, allocations: 121.8 kB / 1.326 GB, free: 13.79 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.303e-05/0.422, allocations: 3.953 kB / 1.326 GB, free: 13.78 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.12e-05/0.422, allocations: 12.38 kB / 1.326 GB, free: 13.77 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.422, allocations: 0 / 1.326 GB, free: 13.77 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.422, allocations: 0 / 1.326 GB, free: 13.77 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.422, allocations: 3.984 kB / 1.326 GB, free: 13.76 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005231/0.4225, allocations: 378.4 kB / 1.326 GB, free: 13.34 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.4225, allocations: 0 / 1.326 GB, free: 13.34 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.347e-05/0.4226, allocations: 11.98 kB / 1.326 GB, free: 13.32 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/0.4226, allocations: 4 kB / 1.326 GB, free: 13.32 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.405e-06/0.4226, allocations: 0 / 1.326 GB, free: 13.32 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.4226, allocations: 3.938 kB / 1.326 GB, free: 13.32 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.4226, allocations: 7.922 kB / 1.326 GB, free: 13.31 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003128/0.4229, allocations: 203.4 kB / 1.326 GB, free: 13.09 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 5.254e-05/0.423, allocations: 85.06 kB / 1.327 GB, free: 12.99 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.551e-05/0.423, allocations: 0 / 1.327 GB, free: 12.99 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.747e-05/0.4231, allocations: 11.92 kB / 1.327 GB, free: 12.98 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.714e-05/0.4231, allocations: 11.98 kB / 1.327 GB, free: 12.97 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.831e-06/0.4231, allocations: 0 / 1.327 GB, free: 12.97 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.403e-05/0.4232, allocations: 103.9 kB / 1.327 GB, free: 12.87 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.4232, allocations: 0 / 1.327 GB, free: 12.87 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002561/0.4235, allocations: 15.94 kB / 1.327 GB, free: 12.85 MB / 1.029 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.0001769/0.4236, allocations: 107.2 kB / 1.327 GB, free: 12.74 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003109/0.4239, allocations: 76.12 kB / 1.327 GB, free: 12.66 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.424, allocations: 4.125 kB / 1.327 GB, free: 12.66 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001251/0.4241, allocations: 31.97 kB / 1.327 GB, free: 12.63 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002874/0.4244, allocations: 15.92 kB / 1.327 GB, free: 12.61 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004118/0.4248, allocations: 158 kB / 1.327 GB, free: 12.43 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004182/0.4252, allocations: 0.6962 MB / 1.328 GB, free: 11.7 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.23e-05/0.4252, allocations: 8 kB / 1.328 GB, free: 11.7 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.347e-05/0.4253, allocations: 11.44 kB / 1.328 GB, free: 11.68 MB / 1.029 GB Notification: Performance of SimCode: time 3.91e-07/0.4253, allocations: 0 / 1.328 GB, free: 11.68 MB / 1.029 GB Notification: Performance of Templates: time 0.00415/0.4294, allocations: 0.9724 MB / 1.329 GB, free: 10.75 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.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: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 [Calling sys.exit(0), Time elapsed: 9.591900447383523]