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.0008035/0.0008035, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00104/0.001844, allocations: 449.7 kB / 10.37 MB, free: 328 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.000707/0.000707, allocations: 165.2 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009044/0.001611, allocations: 459.6 kB / 11.71 MB, free: 2.457 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.9617/0.9617, allocations: 177.2 MB / 189.6 MB, free: 5.301 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1026/1.064, allocations: 53.64 MB / 243.3 MB, free: 15.58 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.838/1.838, allocations: 378.2 MB / 0.6076 GB, free: 7.812 MB / 0.5886 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.5224/2.36, allocations: 123.3 MB / 0.728 GB, free: 5.797 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.856e-06/2.856e-06, allocations: 3.984 kB / 0.7293 GB, free: 4.512 MB / 0.698 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.237e-05/1.523e-05, allocations: 10.25 kB / 0.7293 GB, free: 4.5 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.001227/0.001242, allocations: 0.7999 MB / 0.7301 GB, free: 3.727 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.001062/0.002305, allocations: 1.123 MB / 0.7312 GB, free: 2.594 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.868e-05/0.002343, allocations: 2.438 kB / 0.7312 GB, free: 2.594 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 2.226e-05/0.002366, allocations: 3.938 kB / 0.7312 GB, free: 2.59 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 4.129e-05/0.002407, allocations: 15.97 kB / 0.7312 GB, free: 2.578 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001862/0.002593, allocations: 48.75 kB / 0.7313 GB, free: 2.531 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.0001065/0.0027, allocations: 76.31 kB / 0.7313 GB, free: 2.469 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 8.739e-05/0.002787, allocations: 21.09 kB / 0.7314 GB, free: 2.445 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 9.442e-05/0.002881, allocations: 48.53 kB / 0.7314 GB, free: 2.402 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 5.004e-05/0.002931, allocations: 27.91 kB / 0.7314 GB, free: 2.375 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 1.703e-05/0.002949, allocations: 4 kB / 0.7314 GB, free: 2.371 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 7.166e-05/0.00302, allocations: 19.98 kB / 0.7315 GB, free: 2.352 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 1.618e-05/0.003036, allocations: 12.5 kB / 0.7315 GB, free: 2.34 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 2.479e-05/0.003061, allocations: 20.47 kB / 0.7315 GB, free: 2.32 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0001104/0.003172, allocations: 47.83 kB / 0.7315 GB, free: 2.273 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 1.22e-05/0.003184, allocations: 4.875 kB / 0.7315 GB, free: 2.27 MB / 0.698 GB Notification: Performance of FrontEnd: time 5.31e-07/0.003184, allocations: 0 / 0.7315 GB, free: 2.27 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.346e-05/0.003198, allocations: 0.5 kB / 0.7315 GB, free: 2.27 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.0004069/0.003605, allocations: 285.2 kB / 0.7318 GB, free: 1.969 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.2e-05/0.003637, allocations: 12.03 kB / 0.7318 GB, free: 1.957 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.857e-05/0.003665, allocations: 10.36 kB / 0.7318 GB, free: 1.949 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.926e-05/0.003755, allocations: 125.6 kB / 0.732 GB, free: 1.801 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.253e-05/0.003767, allocations: 8.375 kB / 0.732 GB, free: 1.793 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.093e-05/0.003778, allocations: 8.359 kB / 0.732 GB, free: 1.785 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001008/0.003879, allocations: 67.53 kB / 0.732 GB, free: 1.711 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.963e-06/0.003886, allocations: 192 / 0.732 GB, free: 1.711 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.296e-06/0.003894, allocations: 5.047 kB / 0.732 GB, free: 1.707 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.0039, allocations: 9.844 kB / 0.7321 GB, free: 1.699 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.98e-05/0.00392, allocations: 4 kB / 0.7321 GB, free: 1.695 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000308/0.004228, allocations: 184.2 kB / 0.7322 GB, free: 1.5 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 7.27e-05/0.0043, allocations: 39.61 kB / 0.7323 GB, free: 1.453 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.599e-05/0.004316, allocations: 8.859 kB / 0.7323 GB, free: 1.441 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.021e-05/0.004337, allocations: 0 / 0.7323 GB, free: 1.441 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.699e-05/0.004424, allocations: 65.36 kB / 0.7323 GB, free: 1.367 MB / 0.698 GB Notification: Performance of pre-optimization done (n=7): time 1.152e-06/0.004425, allocations: 4 kB / 0.7323 GB, free: 1.363 MB / 0.698 GB Notification: Performance of matching and sorting (n=7): time 0.0001165/0.004541, allocations: 57.89 kB / 0.7324 GB, free: 1.301 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.186e-05/0.004583, allocations: 55.41 kB / 0.7325 GB, free: 1.234 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.922e-05/0.004662, allocations: 127.6 kB / 0.7326 GB, free: 1.098 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.502e-05/0.004677, allocations: 29.7 kB / 0.7326 GB, free: 1.062 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 4.142e-05/0.004719, allocations: 92.08 kB / 0.7327 GB, free: 0.9688 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 1.64e-05/0.004735, allocations: 20.48 kB / 0.7327 GB, free: 0.9492 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.294e-05/0.004768, allocations: 29.69 kB / 0.7327 GB, free: 0.9141 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 7.634e-05/0.004845, allocations: 327.6 kB / 0.7331 GB, free: 0.5859 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.467e-05/0.004859, allocations: 4 kB / 0.7331 GB, free: 0.582 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.448e-05/0.004894, allocations: 50.75 kB / 0.7331 GB, free: 0.5117 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.132e-05/0.004955, allocations: 72.42 kB / 0.7332 GB, free: 432 kB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.457e-06/0.004958, allocations: 4 kB / 0.7332 GB, free: 428 kB / 0.698 GB Notification: Performance of matching and sorting (n=11) (initialization): time 8.022e-05/0.005039, allocations: 80 kB / 0.7333 GB, free: 344 kB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.373e-05/0.005052, allocations: 11.94 kB / 0.7333 GB, free: 332 kB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.658e-06/0.005057, allocations: 0 / 0.7333 GB, free: 332 kB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.786e-06/0.005066, allocations: 4.75 kB / 0.7333 GB, free: 328 kB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.856e-05/0.005154, allocations: 23.98 kB / 0.7333 GB, free: 304 kB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.448e-06/0.005159, allocations: 8.719 kB / 0.7333 GB, free: 296 kB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.09e-05/0.00519, allocations: 8 kB / 0.7333 GB, free: 288 kB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.004e-05/0.0052, allocations: 8.516 kB / 0.7333 GB, free: 280 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.15e-05/0.005261, allocations: 118.8 kB / 0.7334 GB, free: 152 kB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.927e-06/0.00527, allocations: 7.938 kB / 0.7334 GB, free: 144 kB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.584e-05/0.005296, allocations: 17.45 kB / 0.7335 GB, free: 124 kB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.005299, allocations: 0 / 0.7335 GB, free: 124 kB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.844e-06/0.0053, allocations: 0 / 0.7335 GB, free: 124 kB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.005305, allocations: 0.5312 kB / 0.7335 GB, free: 124 kB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001834/0.005489, allocations: 220.5 kB / 0.7337 GB, free: 15.88 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.00549, allocations: 3.938 kB / 0.7337 GB, free: 15.88 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.212e-05/0.005513, allocations: 7.984 kB / 0.7337 GB, free: 15.87 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 8.346e-06/0.005521, allocations: 7.953 kB / 0.7337 GB, free: 15.86 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.005522, allocations: 0 / 0.7337 GB, free: 15.86 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.867e-06/0.005526, allocations: 1.219 kB / 0.7337 GB, free: 15.86 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.005527, allocations: 0 / 0.7337 GB, free: 15.86 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.005529, allocations: 0 / 0.7337 GB, free: 15.86 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.862e-05/0.005608, allocations: 156.1 kB / 0.7338 GB, free: 15.7 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.092e-05/0.005619, allocations: 4 kB / 0.7338 GB, free: 15.69 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.092e-05/0.00565, allocations: 4.625 kB / 0.7338 GB, free: 15.69 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.723e-05/0.005677, allocations: 11.92 kB / 0.7339 GB, free: 15.68 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.306e-06/0.00568, allocations: 0.75 kB / 0.7339 GB, free: 15.68 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 1.723e-05/0.005697, allocations: 16.84 kB / 0.7339 GB, free: 15.66 MB / 0.7136 GB Notification: Performance of sort global known variables: time 5.1e-08/0.005697, allocations: 1.594 kB / 0.7339 GB, free: 15.66 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0001451/0.005842, allocations: 20 kB / 0.7339 GB, free: 15.64 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 9.871e-05/0.005941, allocations: 93.19 kB / 0.734 GB, free: 15.54 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 8.695e-05/0.006028, allocations: 49.8 kB / 0.734 GB, free: 15.49 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 4.969e-06/0.006033, allocations: 4.625 kB / 0.734 GB, free: 15.49 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 2.53e-05/0.006058, allocations: 16.84 kB / 0.734 GB, free: 15.47 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001353/0.006194, allocations: 20.91 kB / 0.7341 GB, free: 15.45 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003726/0.006566, allocations: 166.2 kB / 0.7342 GB, free: 15.26 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.456e-05/0.006601, allocations: 59.34 kB / 0.7343 GB, free: 15.18 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 2.345e-05/0.006624, allocations: 9.516 kB / 0.7343 GB, free: 15.17 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.898e-05/0.006673, allocations: 63.36 kB / 0.7344 GB, free: 15.11 MB / 0.7136 GB Notification: Performance of SimCode: time 9.01e-07/0.006674, allocations: 0 / 0.7344 GB, free: 15.11 MB / 0.7136 GB Notification: Performance of Templates: time 0.002565/0.009239, allocations: 1.09 MB / 0.7354 GB, free: 14.08 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,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 4.800898829475045]