Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001555/0.001555, allocations: 113.9 kB / 18.94 MB, free: 2.93 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001965/0.001965, allocations: 190.9 kB / 22.23 MB, free: 5.105 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.536/1.536, allocations: 225.6 MB / 251 MB, free: 13.25 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.2-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.2-maint.10.0.x/package.mo): time 2.783/2.783, allocations: 443.5 MB / 0.7321 GB, free: 12.28 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 10.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.2-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.SampleTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_10_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_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002056/0.002056, allocations: 67.89 kB / 1.061 GB, free: 2.973 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.044/1.046, allocations: 160.8 MB / 1.218 GB, free: 3.785 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.002125/1.048, allocations: 0.7653 MB / 1.219 GB, free: 3.207 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001497/1.05, allocations: 1.08 MB / 1.22 GB, free: 2.336 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.343e-05/1.05, allocations: 1 kB / 1.22 GB, free: 2.336 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.648e-05/1.05, allocations: 3.938 kB / 1.22 GB, free: 2.332 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 7.845e-05/1.05, allocations: 18 kB / 1.22 GB, free: 2.316 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.000321/1.05, allocations: 53.34 kB / 1.22 GB, free: 2.277 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.000127/1.05, allocations: 72.58 kB / 1.22 GB, free: 2.234 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001067/1.05, allocations: 16.58 kB / 1.22 GB, free: 2.219 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 7.985e-05/1.05, allocations: 27.52 kB / 1.22 GB, free: 2.203 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 6.96e-05/1.05, allocations: 38.02 kB / 1.221 GB, free: 2.176 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.974e-05/1.051, allocations: 5.656 kB / 1.221 GB, free: 2.176 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 7.299e-05/1.051, allocations: 23.42 kB / 1.221 GB, free: 2.164 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.808e-05/1.051, allocations: 19.52 kB / 1.221 GB, free: 2.148 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 4.52e-05/1.051, allocations: 22.94 kB / 1.221 GB, free: 2.133 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001716/1.051, allocations: 89.28 kB / 1.221 GB, free: 2.07 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/1.051, allocations: 3.938 kB / 1.221 GB, free: 2.066 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.434e-06/1.051, allocations: 4 kB / 1.221 GB, free: 2.062 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.721e-06/1.051, allocations: 0 / 1.221 GB, free: 2.062 MB / 0.92 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.0006078/1.051, allocations: 380.1 kB / 1.221 GB, free: 1.672 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.743e-05/1.051, allocations: 9.75 kB / 1.221 GB, free: 1.672 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.084e-05/1.052, allocations: 8.328 kB / 1.221 GB, free: 1.668 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001484/1.052, allocations: 184.2 kB / 1.221 GB, free: 1.453 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.706e-05/1.052, allocations: 5.875 kB / 1.221 GB, free: 1.449 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.82e-05/1.052, allocations: 4.188 kB / 1.221 GB, free: 1.449 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002085/1.052, allocations: 78.16 kB / 1.221 GB, free: 1.387 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.565e-05/1.052, allocations: 3.938 kB / 1.221 GB, free: 1.383 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.369e-05/1.052, allocations: 5.125 kB / 1.221 GB, free: 1.379 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.129e-06/1.052, allocations: 1.188 kB / 1.221 GB, free: 1.379 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001648/1.052, allocations: 35.69 kB / 1.221 GB, free: 1.367 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006401/1.053, allocations: 324.9 kB / 1.222 GB, free: 1.035 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000169/1.053, allocations: 50.27 kB / 1.222 GB, free: 0.9961 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.757e-05/1.053, allocations: 30.12 kB / 1.222 GB, free: 0.9766 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.663e-05/1.053, allocations: 1.125 kB / 1.222 GB, free: 0.9766 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002236/1.053, allocations: 82.17 kB / 1.222 GB, free: 0.9023 MB / 0.92 GB Notification: Performance of pre-optimization done (n=7): time 1.553e-06/1.053, allocations: 0 / 1.222 GB, free: 0.9023 MB / 0.92 GB Notification: Performance of matching and sorting (n=7): time 0.0004818/1.054, allocations: 128.3 kB / 1.222 GB, free: 0.8281 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.807e-05/1.054, allocations: 57.34 kB / 1.222 GB, free: 0.7617 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001266/1.054, allocations: 128.8 kB / 1.222 GB, free: 0.6406 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.084e-05/1.054, allocations: 26.67 kB / 1.222 GB, free: 0.6094 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 6.105e-05/1.054, allocations: 91.48 kB / 1.222 GB, free: 0.5195 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.425e-05/1.054, allocations: 22.14 kB / 1.222 GB, free: 0.5 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.711e-05/1.054, allocations: 31.17 kB / 1.222 GB, free: 484 kB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001476/1.054, allocations: 320.8 kB / 1.223 GB, free: 156 kB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001084/1.054, allocations: 27.91 kB / 1.223 GB, free: 144 kB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001443/1.055, allocations: 74.11 kB / 1.223 GB, free: 68 kB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002876/1.055, allocations: 115.5 kB / 1.223 GB, free: 15.97 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/1.055, allocations: 0 / 1.223 GB, free: 15.97 MB / 0.9356 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003197/1.055, allocations: 130.2 kB / 1.223 GB, free: 15.89 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.647e-05/1.055, allocations: 5.719 kB / 1.223 GB, free: 15.89 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.693e-06/1.055, allocations: 6.125 kB / 1.223 GB, free: 15.89 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.698e-05/1.055, allocations: 1.938 kB / 1.223 GB, free: 15.89 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001322/1.055, allocations: 31.94 kB / 1.223 GB, free: 15.87 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.091e-05/1.055, allocations: 6.297 kB / 1.223 GB, free: 15.86 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.43e-05/1.055, allocations: 10.67 kB / 1.223 GB, free: 15.86 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.587e-05/1.055, allocations: 3.719 kB / 1.223 GB, free: 15.86 MB / 0.9356 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.0001274/1.056, allocations: 135.6 kB / 1.223 GB, free: 15.72 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.746e-05/1.056, allocations: 10.11 kB / 1.223 GB, free: 15.71 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.089e-05/1.056, allocations: 10.59 kB / 1.223 GB, free: 15.71 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/1.056, allocations: 1.219 kB / 1.223 GB, free: 15.71 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/1.056, allocations: 0 / 1.223 GB, free: 15.71 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/1.056, allocations: 0 / 1.223 GB, free: 15.71 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005243/1.056, allocations: 380.6 kB / 1.223 GB, free: 15.34 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/1.056, allocations: 1.188 kB / 1.223 GB, free: 15.34 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.322e-05/1.056, allocations: 9.391 kB / 1.223 GB, free: 15.33 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/1.056, allocations: 4 kB / 1.224 GB, free: 15.33 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.127e-06/1.056, allocations: 1.094 kB / 1.224 GB, free: 15.33 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.302e-06/1.056, allocations: 5.062 kB / 1.224 GB, free: 15.32 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/1.056, allocations: 0 / 1.224 GB, free: 15.32 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003242/1.057, allocations: 197.2 kB / 1.224 GB, free: 15.16 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.934e-05/1.057, allocations: 83.41 kB / 1.224 GB, free: 15.06 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.596e-05/1.057, allocations: 4 kB / 1.224 GB, free: 15.06 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.634e-05/1.057, allocations: 15.95 kB / 1.224 GB, free: 15.05 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.836e-05/1.057, allocations: 2.062 kB / 1.224 GB, free: 15.05 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.092e-05/1.057, allocations: 6.203 kB / 1.224 GB, free: 15.04 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 7.113e-05/1.057, allocations: 92.94 kB / 1.224 GB, free: 14.96 MB / 0.9356 GB Notification: Performance of sort global known variables: time 8e-08/1.057, allocations: 0 / 1.224 GB, free: 14.96 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002656/1.057, allocations: 17.81 kB / 1.224 GB, free: 14.96 MB / 0.9356 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.0001792/1.057, allocations: 115.1 kB / 1.224 GB, free: 14.86 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002982/1.058, allocations: 79.03 kB / 1.224 GB, free: 14.82 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/1.058, allocations: 0 / 1.224 GB, free: 14.82 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001186/1.058, allocations: 31.45 kB / 1.224 GB, free: 14.81 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002807/1.058, allocations: 13.64 kB / 1.224 GB, free: 14.8 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004652/1.058, allocations: 167.2 kB / 1.224 GB, free: 14.65 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004137/1.059, allocations: 0.6918 MB / 1.225 GB, free: 13.95 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.613e-05/1.059, allocations: 4.031 kB / 1.225 GB, free: 13.95 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.233e-05/1.059, allocations: 11.44 kB / 1.225 GB, free: 13.94 MB / 0.9356 GB Notification: Performance of SimCode: time 2.8e-07/1.059, allocations: 1.094 kB / 1.225 GB, free: 13.94 MB / 0.9356 GB Notification: Performance of Templates: time 0.004073/1.063, allocations: 1.005 MB / 1.226 GB, free: 13.43 MB / 0.9356 GB " [Timeout remaining time 299] make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.makefile [Timeout 300] (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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: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.686934291385114]