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.007926/0.007926, allocations: 99.38 kB / 15.73 MB, free: 6.008 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.001493/0.001493, allocations: 195.9 kB / 16.68 MB, free: 5.934 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.387/1.387, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.802/2.802, allocations: 469.8 MB / 0.7425 GB, free: 7.387 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001305/0.001305, allocations: 67.89 kB / 1.065 GB, free: 13.12 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.323/0.3243, allocations: 159.1 MB / 1.221 GB, free: 13.86 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.001931/0.3263, allocations: 0.761 MB / 1.221 GB, free: 13.11 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001352/0.3276, allocations: 1.162 MB / 1.222 GB, free: 11.93 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.514e-05/0.3277, allocations: 4 kB / 1.222 GB, free: 11.93 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.945e-05/0.3277, allocations: 3.938 kB / 1.222 GB, free: 11.92 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 7.001e-05/0.3278, allocations: 11.88 kB / 1.222 GB, free: 11.91 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004876/0.3282, allocations: 139.4 kB / 1.223 GB, free: 11.78 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001824/0.3284, allocations: 123.8 kB / 1.223 GB, free: 11.66 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001101/0.3285, allocations: 16.17 kB / 1.223 GB, free: 11.64 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001035/0.3286, allocations: 51.83 kB / 1.223 GB, free: 11.59 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 9.935e-05/0.3287, allocations: 47.88 kB / 1.223 GB, free: 11.54 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.462e-05/0.3288, allocations: 16 kB / 1.223 GB, free: 11.52 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 7.226e-05/0.3288, allocations: 27.94 kB / 1.223 GB, free: 11.5 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.265e-05/0.3289, allocations: 11.92 kB / 1.223 GB, free: 11.48 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 6.967e-05/0.3289, allocations: 51.83 kB / 1.223 GB, free: 11.43 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002041/0.3291, allocations: 123.5 kB / 1.223 GB, free: 11.31 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.3291, allocations: 7.984 kB / 1.223 GB, free: 11.3 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.494e-06/0.3291, allocations: 0 / 1.223 GB, free: 11.3 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.071e-06/0.3291, allocations: 0 / 1.223 GB, free: 11.3 MB / 0.9825 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.0006034/0.3297, allocations: 416.8 kB / 1.223 GB, free: 10.84 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.242e-05/0.3298, allocations: 16.03 kB / 1.223 GB, free: 10.83 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.972e-05/0.3298, allocations: 8.891 kB / 1.224 GB, free: 10.82 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000111/0.3299, allocations: 168.3 kB / 1.224 GB, free: 10.62 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.536e-05/0.33, allocations: 8.312 kB / 1.224 GB, free: 10.61 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.51e-05/0.33, allocations: 16.36 kB / 1.224 GB, free: 10.59 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001896/0.3302, allocations: 66.22 kB / 1.224 GB, free: 10.52 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.498e-06/0.3302, allocations: 3.938 kB / 1.224 GB, free: 10.52 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.03e-05/0.3302, allocations: 4 kB / 1.224 GB, free: 10.52 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.659e-06/0.3302, allocations: 0 / 1.224 GB, free: 10.52 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000186/0.3304, allocations: 47.95 kB / 1.224 GB, free: 10.47 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004998/0.3309, allocations: 348.6 kB / 1.224 GB, free: 10.08 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000162/0.331, allocations: 62.48 kB / 1.224 GB, free: 10.01 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.258e-05/0.3311, allocations: 28.97 kB / 1.224 GB, free: 9.977 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.222e-05/0.3312, allocations: 4 kB / 1.224 GB, free: 9.973 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002363/0.3314, allocations: 95.34 kB / 1.224 GB, free: 9.867 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=8): time 1.683e-06/0.3314, allocations: 0 / 1.224 GB, free: 9.867 MB / 0.9825 GB Notification: Performance of matching and sorting (n=8): time 0.0004232/0.3318, allocations: 153.6 kB / 1.224 GB, free: 9.711 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.876e-05/0.3319, allocations: 51.41 kB / 1.225 GB, free: 9.648 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.82e-05/0.332, allocations: 121.8 kB / 1.225 GB, free: 9.52 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.382e-05/0.332, allocations: 29.7 kB / 1.225 GB, free: 9.484 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.602e-05/0.3321, allocations: 104 kB / 1.225 GB, free: 9.379 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.133e-05/0.3321, allocations: 19.84 kB / 1.225 GB, free: 9.359 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.415e-05/0.3321, allocations: 41.64 kB / 1.225 GB, free: 9.312 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.00013/0.3323, allocations: 326.8 kB / 1.225 GB, free: 8.984 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001514/0.3324, allocations: 51.95 kB / 1.225 GB, free: 8.934 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000161/0.3326, allocations: 89.11 kB / 1.225 GB, free: 8.828 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002696/0.3329, allocations: 150.8 kB / 1.225 GB, free: 8.656 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.3329, allocations: 0 / 1.225 GB, free: 8.656 MB / 0.9825 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004286/0.3333, allocations: 219.3 kB / 1.226 GB, free: 8.43 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 3.788e-05/0.3333, allocations: 41.69 kB / 1.226 GB, free: 8.383 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.311e-06/0.3333, allocations: 0 / 1.226 GB, free: 8.383 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.577e-05/0.3334, allocations: 4 kB / 1.226 GB, free: 8.379 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001019/0.3335, allocations: 15.92 kB / 1.226 GB, free: 8.363 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.454e-06/0.3335, allocations: 4 kB / 1.226 GB, free: 8.359 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002012/0.3337, allocations: 31.92 kB / 1.226 GB, free: 8.328 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.277e-05/0.3337, allocations: 11.98 kB / 1.226 GB, free: 8.316 MB / 0.9825 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.198e-05/0.3338, allocations: 130.3 kB / 1.226 GB, free: 8.18 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.354e-05/0.3338, allocations: 4 kB / 1.226 GB, free: 8.176 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003017/0.3341, allocations: 125.9 kB / 1.226 GB, free: 8.039 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.3341, allocations: 0 / 1.226 GB, free: 8.039 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.3341, allocations: 0 / 1.226 GB, free: 8.039 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.3341, allocations: 0 / 1.226 GB, free: 8.039 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004265/0.3345, allocations: 382.4 kB / 1.226 GB, free: 7.609 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.3345, allocations: 0 / 1.226 GB, free: 7.609 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.968e-05/0.3346, allocations: 15.92 kB / 1.226 GB, free: 7.594 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.3346, allocations: 0 / 1.226 GB, free: 7.594 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.015e-06/0.3346, allocations: 0 / 1.226 GB, free: 7.594 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.3346, allocations: 0 / 1.226 GB, free: 7.594 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.566e-06/0.3346, allocations: 7.938 kB / 1.226 GB, free: 7.586 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002899/0.3349, allocations: 219.9 kB / 1.227 GB, free: 7.355 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.602e-05/0.3349, allocations: 81.06 kB / 1.227 GB, free: 7.258 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.893e-05/0.3349, allocations: 4 kB / 1.227 GB, free: 7.254 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.866e-05/0.335, allocations: 11.98 kB / 1.227 GB, free: 7.242 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.722e-05/0.3351, allocations: 7.875 kB / 1.227 GB, free: 7.234 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.131e-06/0.3351, allocations: 4 kB / 1.227 GB, free: 7.23 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.593e-05/0.3351, allocations: 95.2 kB / 1.227 GB, free: 7.137 MB / 0.9825 GB Notification: Performance of sort global known variables: time 9e-08/0.3351, allocations: 4 kB / 1.227 GB, free: 7.133 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002668/0.3354, allocations: 31.95 kB / 1.227 GB, free: 7.102 MB / 0.9825 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.0001446/0.3355, allocations: 111.1 kB / 1.227 GB, free: 6.984 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003621/0.3359, allocations: 163.3 kB / 1.227 GB, free: 6.812 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.3359, allocations: 0 / 1.227 GB, free: 6.812 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001179/0.336, allocations: 40.28 kB / 1.227 GB, free: 6.773 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002795/0.3363, allocations: 12 kB / 1.227 GB, free: 6.762 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003815/0.3367, allocations: 186.8 kB / 1.227 GB, free: 6.555 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000245/0.3369, allocations: 0.6908 MB / 1.228 GB, free: 5.84 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.045e-05/0.337, allocations: 8 kB / 1.228 GB, free: 5.832 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.513e-05/0.337, allocations: 11.44 kB / 1.228 GB, free: 5.82 MB / 0.9825 GB Notification: Performance of SimCode: time 5.01e-07/0.337, allocations: 0 / 1.228 GB, free: 5.82 MB / 0.9825 GB Notification: Performance of Templates: time 0.004084/0.3411, allocations: 1.453 MB / 1.229 GB, free: 4.391 MB / 0.9825 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=480 -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/jenkins/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