Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.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.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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.Sampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sampler1.u|sampler1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sampler1.u|sampler1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001517/0.001517, allocations: 104 kB / 16.35 MB, free: 5.824 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.001713/0.001713, allocations: 191.1 kB / 17.29 MB, free: 5.48 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.441/1.441, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.577/2.577, allocations: 442.6 MB / 0.7165 GB, free: 14.65 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001538/0.001538, allocations: 63.91 kB / 0.8773 GB, free: 10.96 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3738/0.3754, allocations: 153 MB / 1.027 GB, free: 2.035 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.00282/0.3782, allocations: 0.6777 MB / 1.027 GB, free: 1.363 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001733/0.38, allocations: 1.054 MB / 1.028 GB, free: 300 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.022e-05/0.3801, allocations: 4 kB / 1.028 GB, free: 296 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.826e-05/0.3802, allocations: 3.938 kB / 1.028 GB, free: 292 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 8.963e-05/0.3803, allocations: 3.938 kB / 1.028 GB, free: 288 kB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004001/0.3807, allocations: 47.88 kB / 1.028 GB, free: 240 kB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001222/0.3808, allocations: 43.86 kB / 1.029 GB, free: 196 kB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001632/0.381, allocations: 15.98 kB / 1.029 GB, free: 180 kB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 9.12e-05/0.3811, allocations: 19.92 kB / 1.029 GB, free: 160 kB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 7.795e-05/0.3812, allocations: 23.91 kB / 1.029 GB, free: 136 kB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 2.389e-05/0.3812, allocations: 4 kB / 1.029 GB, free: 132 kB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 9.258e-05/0.3813, allocations: 15.98 kB / 1.029 GB, free: 116 kB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 3.124e-05/0.3813, allocations: 8 kB / 1.029 GB, free: 108 kB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 7.324e-05/0.3814, allocations: 31.84 kB / 1.029 GB, free: 76 kB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0002202/0.3816, allocations: 55.8 kB / 1.029 GB, free: 20 kB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 7.354e-06/0.3817, allocations: 0 / 1.029 GB, free: 20 kB / 0.795 GB Notification: Performance of FrontEnd: time 5.52e-06/0.3817, allocations: 4 kB / 1.029 GB, free: 16 kB / 0.795 GB Notification: Performance of Transformations before backend: time 9.047e-06/0.3817, allocations: 0 / 1.029 GB, free: 16 kB / 0.795 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0008203/0.3825, allocations: 359.4 kB / 1.029 GB, free: 15.61 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.224e-05/0.3826, allocations: 8.031 kB / 1.029 GB, free: 15.61 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.972e-05/0.3826, allocations: 4.938 kB / 1.029 GB, free: 15.6 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001786/0.3828, allocations: 176.2 kB / 1.029 GB, free: 15.39 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.711e-05/0.3829, allocations: 8.375 kB / 1.029 GB, free: 15.38 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.543e-05/0.3829, allocations: 384 / 1.029 GB, free: 15.38 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002526/0.3831, allocations: 70.16 kB / 1.029 GB, free: 15.31 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.03e-05/0.3832, allocations: 192 / 1.029 GB, free: 15.31 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.504e-05/0.3832, allocations: 3.938 kB / 1.029 GB, free: 15.3 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/0.3832, allocations: 0 / 1.029 GB, free: 15.3 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002008/0.3834, allocations: 47.89 kB / 1.029 GB, free: 15.26 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000575/0.384, allocations: 268.8 kB / 1.03 GB, free: 14.95 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001946/0.3842, allocations: 62.48 kB / 1.03 GB, free: 14.88 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.764e-05/0.3843, allocations: 28.95 kB / 1.03 GB, free: 14.84 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.662e-05/0.3844, allocations: 4 kB / 1.03 GB, free: 14.84 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002187/0.3846, allocations: 79.31 kB / 1.03 GB, free: 14.75 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=6): time 1.332e-06/0.3846, allocations: 0 / 1.03 GB, free: 14.75 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6): time 0.0004129/0.385, allocations: 117.5 kB / 1.03 GB, free: 14.63 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.945e-05/0.3851, allocations: 55.41 kB / 1.03 GB, free: 14.56 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001788/0.3853, allocations: 113.8 kB / 1.03 GB, free: 14.44 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.583e-05/0.3853, allocations: 25.7 kB / 1.03 GB, free: 14.41 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.712e-05/0.3853, allocations: 80.14 kB / 1.03 GB, free: 14.33 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.35e-05/0.3854, allocations: 19.88 kB / 1.03 GB, free: 14.31 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.701e-05/0.3854, allocations: 21.7 kB / 1.03 GB, free: 14.28 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0002219/0.3856, allocations: 318.8 kB / 1.03 GB, free: 13.96 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.18e-05/0.3857, allocations: 23.97 kB / 1.03 GB, free: 13.94 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001053/0.3859, allocations: 51.36 kB / 1.031 GB, free: 13.88 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001822/0.386, allocations: 83.27 kB / 1.031 GB, free: 13.78 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.3861, allocations: 0 / 1.031 GB, free: 13.78 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002446/0.3863, allocations: 102.1 kB / 1.031 GB, free: 13.68 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.787e-05/0.3863, allocations: 8 kB / 1.031 GB, free: 13.67 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.673e-06/0.3863, allocations: 3.984 kB / 1.031 GB, free: 13.66 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.555e-05/0.3864, allocations: 0 / 1.031 GB, free: 13.66 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001111/0.3865, allocations: 19.98 kB / 1.031 GB, free: 13.64 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.315e-06/0.3865, allocations: 4 kB / 1.031 GB, free: 13.64 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.733e-05/0.3866, allocations: 15.98 kB / 1.031 GB, free: 13.62 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.146e-05/0.3866, allocations: 4 kB / 1.031 GB, free: 13.62 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 (sampler1.firstTrigger,$PRE.sampler1.firstTrigger,sampler1.sampleTrigger,$whenCondition1,sampler1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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 0.00011/0.3867, allocations: 129.6 kB / 1.031 GB, free: 13.48 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.226e-05/0.3867, allocations: 4 kB / 1.031 GB, free: 13.48 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003048/0.387, allocations: 98.02 kB / 1.031 GB, free: 13.38 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.387, allocations: 0 / 1.031 GB, free: 13.38 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.3871, allocations: 4 kB / 1.031 GB, free: 13.38 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.596e-06/0.3871, allocations: 3.938 kB / 1.031 GB, free: 13.37 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004724/0.3875, allocations: 358.3 kB / 1.031 GB, free: 12.96 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.3876, allocations: 0 / 1.031 GB, free: 12.96 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.831e-05/0.3876, allocations: 15.92 kB / 1.031 GB, free: 12.95 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.3876, allocations: 0 / 1.031 GB, free: 12.95 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.011e-05/0.3877, allocations: 0 / 1.031 GB, free: 12.95 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.3877, allocations: 0 / 1.031 GB, free: 12.95 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.3877, allocations: 0 / 1.031 GB, free: 12.95 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002954/0.388, allocations: 203.4 kB / 1.032 GB, free: 12.73 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.379e-05/0.388, allocations: 81.02 kB / 1.032 GB, free: 12.64 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.817e-05/0.388, allocations: 0 / 1.032 GB, free: 12.64 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000101/0.3882, allocations: 15.98 kB / 1.032 GB, free: 12.62 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.76e-05/0.3882, allocations: 3.984 kB / 1.032 GB, free: 12.62 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.813e-05/0.3882, allocations: 7.938 kB / 1.032 GB, free: 12.61 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.803e-05/0.3883, allocations: 91.47 kB / 1.032 GB, free: 12.52 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3883, allocations: 0 / 1.032 GB, free: 12.52 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002503/0.3886, allocations: 8 kB / 1.032 GB, free: 12.51 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (sampler1.sampleTrigger,$whenCondition1,sampler1.y,sampler1.firstTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * 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.0001766/0.3887, allocations: 107.2 kB / 1.032 GB, free: 12.4 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002723/0.389, allocations: 63.89 kB / 1.032 GB, free: 12.34 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 4.137e-06/0.389, allocations: 4.188 kB / 1.032 GB, free: 12.33 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001103/0.3892, allocations: 35.91 kB / 1.032 GB, free: 12.3 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002768/0.3894, allocations: 8 kB / 1.032 GB, free: 12.29 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003932/0.3898, allocations: 133.1 kB / 1.032 GB, free: 12.13 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002701/0.3901, allocations: 0.6807 MB / 1.033 GB, free: 11.43 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.144e-05/0.3902, allocations: 4 kB / 1.033 GB, free: 11.42 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.832e-05/0.3902, allocations: 15.44 kB / 1.033 GB, free: 11.41 MB / 0.8106 GB Notification: Performance of SimCode: time 2.7e-07/0.3902, allocations: 0 / 1.033 GB, free: 11.41 MB / 0.8106 GB Notification: Performance of Templates: time 0.003522/0.3937, allocations: 0.7881 MB / 1.034 GB, free: 10.62 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches