Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.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.001424/0.001424, allocations: 78.09 kB / 19.76 MB, free: 1.875 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.002393/0.002393, allocations: 165.2 kB / 23.01 MB, free: 4.598 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.667/1.667, allocations: 177.2 MB / 203.4 MB, free: 8.984 MB / 190.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 2.894/2.894, allocations: 377.9 MB / 0.6228 GB, free: 12.57 MB / 0.5919 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.Discrete.Validation.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler") [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.002191/0.002191, allocations: 67.89 kB / 0.9819 GB, free: 12.19 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.059/1.061, allocations: 176.1 MB / 1.154 GB, free: 33.28 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.001924/1.063, allocations: 0.7339 MB / 1.155 GB, free: 32.82 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.001292/1.064, allocations: 1.182 MB / 1.156 GB, free: 31.97 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.846e-05/1.064, allocations: 0 / 1.156 GB, free: 31.97 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 3.005e-05/1.064, allocations: 10.91 kB / 1.156 GB, free: 31.96 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 7.711e-05/1.064, allocations: 15.34 kB / 1.156 GB, free: 31.95 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005264/1.065, allocations: 147.6 kB / 1.156 GB, free: 31.87 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.0002172/1.065, allocations: 119.7 kB / 1.156 GB, free: 31.82 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001456/1.065, allocations: 23.94 kB / 1.156 GB, free: 31.81 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001084/1.065, allocations: 47.69 kB / 1.156 GB, free: 31.79 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001175/1.065, allocations: 41.95 kB / 1.156 GB, free: 31.77 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 3.341e-05/1.065, allocations: 13.34 kB / 1.156 GB, free: 31.77 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 9.519e-05/1.066, allocations: 28.86 kB / 1.156 GB, free: 31.77 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 3.464e-05/1.066, allocations: 18.22 kB / 1.156 GB, free: 31.75 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 8.126e-05/1.066, allocations: 40.75 kB / 1.156 GB, free: 31.73 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0002384/1.066, allocations: 124 kB / 1.156 GB, free: 31.69 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 7.945e-06/1.066, allocations: 2.5 kB / 1.156 GB, free: 31.69 MB / 1.076 GB Notification: Performance of FrontEnd: time 2.294e-06/1.066, allocations: 0 / 1.156 GB, free: 31.69 MB / 1.076 GB Notification: Performance of Transformations before backend: time 9.037e-06/1.066, allocations: 0 / 1.156 GB, free: 31.69 MB / 1.076 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0007198/1.067, allocations: 344.1 kB / 1.157 GB, free: 31.37 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 4.986e-05/1.067, allocations: 8.844 kB / 1.157 GB, free: 31.37 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001305/1.067, allocations: 22.09 kB / 1.157 GB, free: 31.36 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001033/1.067, allocations: 128 kB / 1.157 GB, free: 31.21 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.091e-05/1.067, allocations: 3.188 kB / 1.157 GB, free: 31.21 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.489e-05/1.067, allocations: 8.969 kB / 1.157 GB, free: 31.21 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002178/1.067, allocations: 78.83 kB / 1.157 GB, free: 31.17 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.412e-05/1.067, allocations: 3.938 kB / 1.157 GB, free: 31.16 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.361e-05/1.067, allocations: 0 / 1.157 GB, free: 31.16 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.969e-06/1.067, allocations: 0 / 1.157 GB, free: 31.16 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001854/1.067, allocations: 51.27 kB / 1.157 GB, free: 31.15 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004814/1.068, allocations: 269.5 kB / 1.157 GB, free: 30.92 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001829/1.068, allocations: 51.75 kB / 1.157 GB, free: 30.89 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.457e-05/1.068, allocations: 28.47 kB / 1.157 GB, free: 30.88 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 2.643e-05/1.068, allocations: 2.688 kB / 1.157 GB, free: 30.88 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002277/1.068, allocations: 88.59 kB / 1.157 GB, free: 30.82 MB / 1.076 GB Notification: Performance of pre-optimization done (n=8): time 1.492e-06/1.068, allocations: 0 / 1.157 GB, free: 30.82 MB / 1.076 GB Notification: Performance of matching and sorting (n=8): time 0.0004583/1.069, allocations: 155.8 kB / 1.158 GB, free: 30.75 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.644e-05/1.069, allocations: 54.19 kB / 1.158 GB, free: 30.69 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.364e-05/1.069, allocations: 127.4 kB / 1.158 GB, free: 30.57 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 2.587e-05/1.069, allocations: 32.64 kB / 1.158 GB, free: 30.54 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 5.558e-05/1.069, allocations: 91 kB / 1.158 GB, free: 30.45 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 2.606e-05/1.069, allocations: 25.97 kB / 1.158 GB, free: 30.43 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.295e-05/1.069, allocations: 37.91 kB / 1.158 GB, free: 30.41 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 7.358e-05/1.069, allocations: 328.6 kB / 1.158 GB, free: 30.08 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001615/1.069, allocations: 82.61 kB / 1.158 GB, free: 30.04 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001679/1.07, allocations: 119.4 kB / 1.158 GB, free: 29.94 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000253/1.07, allocations: 158.8 kB / 1.159 GB, free: 29.82 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/1.07, allocations: 0 / 1.159 GB, free: 29.82 MB / 1.076 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000405/1.07, allocations: 242.8 kB / 1.159 GB, free: 29.68 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 3.811e-05/1.07, allocations: 38.69 kB / 1.159 GB, free: 29.64 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/1.07, allocations: 2.906 kB / 1.159 GB, free: 29.64 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.768e-05/1.07, allocations: 0 / 1.159 GB, free: 29.64 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001065/1.07, allocations: 19.14 kB / 1.159 GB, free: 29.64 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.526e-06/1.07, allocations: 2.812 kB / 1.159 GB, free: 29.64 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002073/1.071, allocations: 34.05 kB / 1.159 GB, free: 29.64 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.52e-05/1.071, allocations: 17.12 kB / 1.159 GB, free: 29.63 MB / 1.076 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 (triSam1.y,$PRE.triSam1.y,triSam.y,$PRE.triSam.y,booPul.y,$PRE.booPul.y,$whenCondition3,$whenCondition1,$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): 10 * Array equations: 0 * Algorithm blocks: 1 * 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 9.083e-05/1.071, allocations: 122.4 kB / 1.159 GB, free: 29.51 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.367e-05/1.071, allocations: 6.797 kB / 1.159 GB, free: 29.5 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003134/1.071, allocations: 127.5 kB / 1.159 GB, free: 29.44 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.486e-06/1.071, allocations: 2.906 kB / 1.159 GB, free: 29.44 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/1.071, allocations: 7.938 kB / 1.159 GB, free: 29.43 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/1.071, allocations: 0 / 1.159 GB, free: 29.43 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000372/1.071, allocations: 315.9 kB / 1.159 GB, free: 29.17 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/1.071, allocations: 0 / 1.159 GB, free: 29.17 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.054e-05/1.072, allocations: 11.23 kB / 1.159 GB, free: 29.17 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/1.072, allocations: 0 / 1.159 GB, free: 29.17 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.58e-05/1.072, allocations: 10.56 kB / 1.159 GB, free: 29.16 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/1.072, allocations: 0 / 1.159 GB, free: 29.16 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/1.072, allocations: 0 / 1.159 GB, free: 29.16 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003095/1.072, allocations: 224.2 kB / 1.16 GB, free: 29 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 1.24e-05/1.072, allocations: 10.44 kB / 1.16 GB, free: 28.99 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.811e-05/1.072, allocations: 0 / 1.16 GB, free: 28.99 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.24e-05/1.072, allocations: 8.984 kB / 1.16 GB, free: 28.99 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.096e-05/1.072, allocations: 10.38 kB / 1.16 GB, free: 28.99 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.392e-06/1.072, allocations: 0 / 1.16 GB, free: 28.99 MB / 1.076 GB Notification: Performance of sorting global known variables: time 4.057e-05/1.072, allocations: 99.38 kB / 1.16 GB, free: 28.9 MB / 1.076 GB Notification: Performance of sort global known variables: time 7e-08/1.072, allocations: 0 / 1.16 GB, free: 28.9 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0002627/1.072, allocations: 26.69 kB / 1.16 GB, free: 28.9 MB / 1.076 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 ($whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triSam.y,triSam1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001502/1.072, allocations: 108.1 kB / 1.16 GB, free: 28.8 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0003902/1.073, allocations: 192.3 kB / 1.16 GB, free: 28.68 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/1.073, allocations: 0 / 1.16 GB, free: 28.68 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0001215/1.073, allocations: 49.17 kB / 1.16 GB, free: 28.66 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003143/1.073, allocations: 15.12 kB / 1.16 GB, free: 28.66 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004224/1.074, allocations: 178.3 kB / 1.16 GB, free: 28.52 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.785e-05/1.074, allocations: 80.42 kB / 1.16 GB, free: 28.44 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 3.404e-05/1.074, allocations: 9.297 kB / 1.16 GB, free: 28.44 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.024e-05/1.074, allocations: 15.22 kB / 1.16 GB, free: 28.43 MB / 1.076 GB Notification: Performance of SimCode: time 2.91e-07/1.074, allocations: 0 / 1.16 GB, free: 28.43 MB / 1.076 GB Notification: Performance of Templates: time 0.004752/1.079, allocations: 1.554 MB / 1.162 GB, free: 28.23 MB / 1.076 GB " [Timeout remaining time 299] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler -abortSlowSimulation -alarm=400 -s ida -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 9.265075852978043]