Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.Discrete.Validation.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001453/0.001453, allocations: 106.1 kB / 15.98 MB, free: 6.359 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001532/0.001532, allocations: 196.5 kB / 16.91 MB, free: 6.191 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.34/1.34, allocations: 222.9 MB / 240.6 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.561/2.561, allocations: 469.8 MB / 0.7427 GB, free: 3.641 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001862/0.001863, allocations: 70.84 kB / 0.9087 GB, free: 14.23 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2959/0.2977, allocations: 159.1 MB / 1.064 GB, free: 15.12 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.00194/0.2997, allocations: 0.8084 MB / 1.065 GB, free: 14.31 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001448/0.3012, allocations: 1.17 MB / 1.066 GB, free: 13.12 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.461e-05/0.3013, allocations: 0 / 1.066 GB, free: 13.12 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.512e-05/0.3013, allocations: 3.938 kB / 1.066 GB, free: 13.12 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 6.382e-05/0.3014, allocations: 15.84 kB / 1.066 GB, free: 13.11 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004374/0.3018, allocations: 119 kB / 1.066 GB, free: 12.99 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001601/0.302, allocations: 135.7 kB / 1.066 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 9.279e-05/0.3021, allocations: 16.17 kB / 1.066 GB, free: 12.84 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 8.694e-05/0.3022, allocations: 51.91 kB / 1.066 GB, free: 12.79 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 7.468e-05/0.3023, allocations: 47.81 kB / 1.066 GB, free: 12.74 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 2.394e-05/0.3023, allocations: 12 kB / 1.066 GB, free: 12.73 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 6.286e-05/0.3024, allocations: 23.98 kB / 1.066 GB, free: 12.71 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 2.045e-05/0.3024, allocations: 11.98 kB / 1.066 GB, free: 12.7 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 6.573e-05/0.3025, allocations: 47.78 kB / 1.067 GB, free: 12.65 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001335/0.3026, allocations: 87.81 kB / 1.067 GB, free: 12.56 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.3026, allocations: 0 / 1.067 GB, free: 12.56 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.112e-06/0.3026, allocations: 0 / 1.067 GB, free: 12.56 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 4.328e-06/0.3026, allocations: 0 / 1.067 GB, free: 12.56 MB / 0.8419 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.0005823/0.3032, allocations: 425.2 kB / 1.067 GB, free: 12.09 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.287e-05/0.3033, allocations: 8.625 kB / 1.067 GB, free: 12.09 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.72e-05/0.3033, allocations: 12.84 kB / 1.067 GB, free: 12.07 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001262/0.3034, allocations: 172.3 kB / 1.067 GB, free: 11.87 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.842e-05/0.3035, allocations: 12.36 kB / 1.067 GB, free: 11.86 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.566e-05/0.3035, allocations: 8.375 kB / 1.067 GB, free: 11.85 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001887/0.3037, allocations: 70.22 kB / 1.067 GB, free: 11.77 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.03e-05/0.3037, allocations: 3.938 kB / 1.067 GB, free: 11.77 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.826e-06/0.3037, allocations: 4 kB / 1.067 GB, free: 11.77 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.3037, allocations: 4 kB / 1.067 GB, free: 11.76 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001738/0.3039, allocations: 47.89 kB / 1.067 GB, free: 11.71 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004866/0.3044, allocations: 340.6 kB / 1.068 GB, free: 11.33 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001673/0.3046, allocations: 66.58 kB / 1.068 GB, free: 11.26 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001125/0.3047, allocations: 28.97 kB / 1.068 GB, free: 11.23 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.852e-05/0.3047, allocations: 0 / 1.068 GB, free: 11.23 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002328/0.305, allocations: 91.34 kB / 1.068 GB, free: 11.12 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=8): time 1.283e-06/0.305, allocations: 4 kB / 1.068 GB, free: 11.12 MB / 0.8419 GB Notification: Performance of matching and sorting (n=8): time 0.0004201/0.3054, allocations: 149.5 kB / 1.068 GB, free: 10.97 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.011e-05/0.3055, allocations: 55.41 kB / 1.068 GB, free: 10.9 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.543e-05/0.3056, allocations: 121.7 kB / 1.068 GB, free: 10.77 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.121e-05/0.3056, allocations: 33.7 kB / 1.068 GB, free: 10.73 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 6.703e-05/0.3057, allocations: 96.03 kB / 1.068 GB, free: 10.64 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.399e-05/0.3057, allocations: 31.67 kB / 1.068 GB, free: 10.61 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.445e-05/0.3058, allocations: 41.69 kB / 1.068 GB, free: 10.56 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001336/0.3059, allocations: 318.8 kB / 1.069 GB, free: 10.24 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001543/0.3061, allocations: 51.95 kB / 1.069 GB, free: 10.19 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001736/0.3063, allocations: 96.11 kB / 1.069 GB, free: 10.08 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002764/0.3066, allocations: 150.7 kB / 1.069 GB, free: 9.906 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.3066, allocations: 0 / 1.069 GB, free: 9.906 MB / 0.8419 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004375/0.307, allocations: 215.1 kB / 1.069 GB, free: 9.684 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 4.093e-05/0.3071, allocations: 37.69 kB / 1.069 GB, free: 9.641 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.01e-06/0.3071, allocations: 0 / 1.069 GB, free: 9.641 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.285e-05/0.3071, allocations: 4 kB / 1.069 GB, free: 9.637 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001001/0.3072, allocations: 19.98 kB / 1.069 GB, free: 9.617 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.91e-06/0.3072, allocations: 0 / 1.069 GB, free: 9.617 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002158/0.3074, allocations: 40.02 kB / 1.069 GB, free: 9.578 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.181e-05/0.3075, allocations: 8 kB / 1.069 GB, free: 9.57 MB / 0.8419 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 0.0001118/0.3076, allocations: 131.9 kB / 1.069 GB, free: 9.434 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.517e-05/0.3076, allocations: 7.906 kB / 1.069 GB, free: 9.426 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003021/0.3079, allocations: 126 kB / 1.07 GB, free: 9.297 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.926e-06/0.3079, allocations: 0 / 1.07 GB, free: 9.297 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.3079, allocations: 4 kB / 1.07 GB, free: 9.293 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.3079, allocations: 0 / 1.07 GB, free: 9.293 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004497/0.3084, allocations: 382.3 kB / 1.07 GB, free: 8.863 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.3084, allocations: 0 / 1.07 GB, free: 8.863 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.946e-05/0.3085, allocations: 8 kB / 1.07 GB, free: 8.855 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.458e-06/0.3085, allocations: 4 kB / 1.07 GB, free: 8.852 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.241e-05/0.3085, allocations: 7.984 kB / 1.07 GB, free: 8.844 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.3085, allocations: 3.938 kB / 1.07 GB, free: 8.84 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.3085, allocations: 3.938 kB / 1.07 GB, free: 8.836 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000314/0.3088, allocations: 211.3 kB / 1.07 GB, free: 8.613 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 4.507e-05/0.3089, allocations: 81.11 kB / 1.07 GB, free: 8.516 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.569e-05/0.3089, allocations: 0 / 1.07 GB, free: 8.516 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.587e-05/0.309, allocations: 15.98 kB / 1.07 GB, free: 8.5 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.338e-05/0.309, allocations: 15.92 kB / 1.07 GB, free: 8.484 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.745e-06/0.3091, allocations: 4 kB / 1.07 GB, free: 8.48 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 5.313e-05/0.3091, allocations: 91.27 kB / 1.07 GB, free: 8.391 MB / 0.8419 GB Notification: Performance of sort global known variables: time 9e-08/0.3091, allocations: 0 / 1.07 GB, free: 8.391 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.00026/0.3094, allocations: 23.91 kB / 1.07 GB, free: 8.367 MB / 0.8419 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.0001409/0.3095, allocations: 107.2 kB / 1.07 GB, free: 8.254 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0004176/0.31, allocations: 183.2 kB / 1.071 GB, free: 8.062 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.31, allocations: 0 / 1.071 GB, free: 8.062 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001258/0.3101, allocations: 48.45 kB / 1.071 GB, free: 8.016 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002924/0.3104, allocations: 14.22 kB / 1.071 GB, free: 8.004 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004453/0.3109, allocations: 221.2 kB / 1.071 GB, free: 7.758 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003092/0.3112, allocations: 0.6885 MB / 1.072 GB, free: 7.043 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.882e-05/0.3112, allocations: 11.44 kB / 1.072 GB, free: 7.031 MB / 0.8419 GB Notification: Performance of SimCode: time 2.11e-07/0.3112, allocations: 0 / 1.072 GB, free: 7.031 MB / 0.8419 GB Notification: Performance of Templates: time 0.002956/0.3142, allocations: 1.288 MB / 1.073 GB, free: 5.754 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.makefile (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches