Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001178/0.001178, allocations: 81.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00174/0.002917, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.001099/0.001099, allocations: 161.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001473/0.002572, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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 0.9895/0.9895, allocations: 177.2 MB / 189.8 MB, free: 5.238 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09118/1.081, allocations: 53.66 MB / 243.4 MB, free: 15.5 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo): time 1.888/1.888, allocations: 378.3 MB / 0.6079 GB, free: 7.707 MB / 0.5886 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.5242/2.412, allocations: 123.3 MB / 0.7283 GB, free: 5.727 MB / 0.698 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-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.SampleTrigger,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.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_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.826e-06/2.826e-06, allocations: 3.984 kB / 0.7297 GB, free: 4.41 MB / 0.698 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.694e-05/1.977e-05, allocations: 7.656 kB / 0.7297 GB, free: 4.402 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.001331/0.00135, allocations: 0.797 MB / 0.7304 GB, free: 3.641 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.001191/0.002542, allocations: 1.122 MB / 0.7315 GB, free: 2.508 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.271e-05/0.002584, allocations: 1.5 kB / 0.7315 GB, free: 2.508 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 2.568e-05/0.00261, allocations: 11.92 kB / 0.7315 GB, free: 2.496 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 4.636e-05/0.002656, allocations: 12.09 kB / 0.7316 GB, free: 2.488 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001923/0.002849, allocations: 53.86 kB / 0.7316 GB, free: 2.438 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.0001146/0.002963, allocations: 68.23 kB / 0.7317 GB, free: 2.383 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 8.961e-05/0.003053, allocations: 26.28 kB / 0.7317 GB, free: 2.355 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001036/0.003156, allocations: 47.58 kB / 0.7317 GB, free: 2.312 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 5.757e-05/0.003214, allocations: 28.55 kB / 0.7318 GB, free: 2.285 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 1.616e-05/0.00323, allocations: 4 kB / 0.7318 GB, free: 2.281 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 7.37e-05/0.003304, allocations: 23.98 kB / 0.7318 GB, free: 2.258 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 2.082e-05/0.003325, allocations: 11.94 kB / 0.7318 GB, free: 2.246 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 2.462e-05/0.003349, allocations: 13.41 kB / 0.7318 GB, free: 2.234 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0001208/0.00347, allocations: 55.75 kB / 0.7319 GB, free: 2.18 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 1.246e-05/0.003483, allocations: 0 / 0.7319 GB, free: 2.18 MB / 0.698 GB Notification: Performance of FrontEnd: time 6.31e-07/0.003483, allocations: 0 / 0.7319 GB, free: 2.18 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.38e-05/0.003497, allocations: 0.625 kB / 0.7319 GB, free: 2.18 MB / 0.698 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.0004424/0.003939, allocations: 296.8 kB / 0.7322 GB, free: 1.867 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.264e-05/0.003972, allocations: 8.969 kB / 0.7322 GB, free: 1.859 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.388e-05/0.004006, allocations: 4.938 kB / 0.7322 GB, free: 1.855 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.948e-05/0.004105, allocations: 117.7 kB / 0.7323 GB, free: 1.715 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.087e-05/0.004116, allocations: 0.875 kB / 0.7323 GB, free: 1.715 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.001e-05/0.004136, allocations: 13.23 kB / 0.7323 GB, free: 1.703 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000121/0.004257, allocations: 66.86 kB / 0.7324 GB, free: 1.629 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.004266, allocations: 1.625 kB / 0.7324 GB, free: 1.629 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.967e-06/0.004275, allocations: 8.375 kB / 0.7324 GB, free: 1.621 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.165e-06/0.004283, allocations: 4.125 kB / 0.7324 GB, free: 1.617 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.906e-05/0.004302, allocations: 8 kB / 0.7324 GB, free: 1.609 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003272/0.004629, allocations: 189.5 kB / 0.7326 GB, free: 1.41 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 7.979e-05/0.004709, allocations: 32.36 kB / 0.7326 GB, free: 1.371 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.951e-05/0.004729, allocations: 8.859 kB / 0.7326 GB, free: 1.359 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.008e-05/0.004749, allocations: 0 / 0.7326 GB, free: 1.359 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.374e-05/0.004832, allocations: 63.31 kB / 0.7327 GB, free: 1.285 MB / 0.698 GB Notification: Performance of pre-optimization done (n=7): time 9.32e-07/0.004833, allocations: 0 / 0.7327 GB, free: 1.285 MB / 0.698 GB Notification: Performance of matching and sorting (n=7): time 0.0001293/0.004963, allocations: 70.81 kB / 0.7327 GB, free: 1.211 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.796e-05/0.005001, allocations: 51.41 kB / 0.7328 GB, free: 1.148 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.348e-05/0.005074, allocations: 131.8 kB / 0.7329 GB, free: 1.008 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.443e-05/0.005089, allocations: 29.7 kB / 0.7329 GB, free: 0.9727 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 3.758e-05/0.005126, allocations: 92.08 kB / 0.733 GB, free: 0.8789 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 1.754e-05/0.005144, allocations: 16.39 kB / 0.733 GB, free: 0.8633 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.425e-05/0.005178, allocations: 25.7 kB / 0.7331 GB, free: 0.832 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 8.149e-05/0.005259, allocations: 319.7 kB / 0.7334 GB, free: 0.5117 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.465e-05/0.005274, allocations: 8 kB / 0.7334 GB, free: 0.5039 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.973e-05/0.005314, allocations: 66.8 kB / 0.7334 GB, free: 428 kB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.394e-05/0.005378, allocations: 76.22 kB / 0.7335 GB, free: 332 kB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.686e-06/0.00538, allocations: 0 / 0.7335 GB, free: 332 kB / 0.698 GB Notification: Performance of matching and sorting (n=11) (initialization): time 8.69e-05/0.005467, allocations: 83.08 kB / 0.7336 GB, free: 244 kB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.32e-05/0.005481, allocations: 8.938 kB / 0.7336 GB, free: 236 kB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.005486, allocations: 4 kB / 0.7336 GB, free: 232 kB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.231e-05/0.005498, allocations: 0.9688 kB / 0.7336 GB, free: 232 kB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.82e-05/0.005587, allocations: 19.98 kB / 0.7336 GB, free: 212 kB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.771e-06/0.005592, allocations: 7.984 kB / 0.7336 GB, free: 204 kB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.248e-05/0.005625, allocations: 4.781 kB / 0.7336 GB, free: 200 kB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.087e-05/0.005636, allocations: 8 kB / 0.7336 GB, free: 192 kB / 0.698 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 6.505e-05/0.005701, allocations: 118.8 kB / 0.7338 GB, free: 64 kB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.13e-05/0.005712, allocations: 16.61 kB / 0.7338 GB, free: 48 kB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.064e-05/0.005733, allocations: 4.438 kB / 0.7338 GB, free: 40 kB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.005734, allocations: 1.781 kB / 0.7338 GB, free: 40 kB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.753e-06/0.005736, allocations: 0 / 0.7338 GB, free: 40 kB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.00574, allocations: 4 kB / 0.7338 GB, free: 36 kB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001898/0.00593, allocations: 218.7 kB / 0.734 GB, free: 15.8 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.005931, allocations: 3.938 kB / 0.734 GB, free: 15.79 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.386e-05/0.005955, allocations: 5.219 kB / 0.734 GB, free: 15.79 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 7.183e-06/0.005962, allocations: 7.953 kB / 0.734 GB, free: 15.78 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.005965, allocations: 0 / 0.734 GB, free: 15.78 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.651e-06/0.00597, allocations: 6.047 kB / 0.734 GB, free: 15.78 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.005971, allocations: 0 / 0.734 GB, free: 15.78 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.005973, allocations: 4 kB / 0.734 GB, free: 15.77 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.031e-05/0.006053, allocations: 151.4 kB / 0.7342 GB, free: 15.61 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.093e-05/0.006064, allocations: 3.984 kB / 0.7342 GB, free: 15.61 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.31e-05/0.006097, allocations: 4.75 kB / 0.7342 GB, free: 15.6 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.786e-05/0.006125, allocations: 7.984 kB / 0.7342 GB, free: 15.59 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.158e-06/0.006129, allocations: 4.812 kB / 0.7342 GB, free: 15.59 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 1.858e-05/0.006147, allocations: 25.38 kB / 0.7342 GB, free: 15.56 MB / 0.7136 GB Notification: Performance of sort global known variables: time 5e-08/0.006148, allocations: 0 / 0.7342 GB, free: 15.56 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0001492/0.006297, allocations: 16.67 kB / 0.7342 GB, free: 15.55 MB / 0.7136 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.0001212/0.006418, allocations: 90.17 kB / 0.7343 GB, free: 15.45 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 9.282e-05/0.006511, allocations: 37.97 kB / 0.7343 GB, free: 15.41 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 5.561e-06/0.006516, allocations: 0 / 0.7343 GB, free: 15.41 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 3.603e-05/0.006552, allocations: 32.77 kB / 0.7344 GB, free: 15.38 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002228/0.006775, allocations: 102.3 kB / 0.7345 GB, free: 15.26 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004209/0.007196, allocations: 162.9 kB / 0.7346 GB, free: 15.07 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.48e-05/0.007231, allocations: 63.34 kB / 0.7347 GB, free: 14.99 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 2.866e-05/0.00726, allocations: 15.84 kB / 0.7347 GB, free: 14.98 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.402e-05/0.007314, allocations: 59.36 kB / 0.7348 GB, free: 14.92 MB / 0.7136 GB Notification: Performance of SimCode: time 8.72e-07/0.007314, allocations: 2.75 kB / 0.7348 GB, free: 14.92 MB / 0.7136 GB Notification: Performance of Templates: time 0.002641/0.009956, allocations: 1.058 MB / 0.7358 GB, free: 13.92 MB / 0.7136 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.ref.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 4.920239573344588]