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.001026/0.001026, allocations: 86.48 kB / 15.06 MB, free: 1.09 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.001717/0.001717, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.549/1.549, allocations: 223.3 MB / 240 MB, free: 5.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 3.07/3.07, allocations: 462.6 MB / 0.736 GB, free: 15.77 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003498/0.0003499, allocations: 11.22 kB / 0.9021 GB, free: 36.58 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3963/0.3967, allocations: 159.6 MB / 1.058 GB, free: 5.344 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.0009362/0.3977, allocations: 387.4 kB / 1.058 GB, free: 4.969 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001226/0.3989, allocations: 1.038 MB / 1.059 GB, free: 3.918 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.969e-05/0.399, allocations: 0 / 1.059 GB, free: 3.918 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.717e-05/0.399, allocations: 3.984 kB / 1.059 GB, free: 3.914 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.904e-05/0.3991, allocations: 3.938 kB / 1.059 GB, free: 3.91 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002521/0.3993, allocations: 31.91 kB / 1.059 GB, free: 3.879 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.612e-05/0.3994, allocations: 39.91 kB / 1.059 GB, free: 3.84 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.482e-05/0.3995, allocations: 12 kB / 1.059 GB, free: 3.828 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.124e-05/0.3996, allocations: 15.91 kB / 1.06 GB, free: 3.812 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.073e-05/0.3997, allocations: 23.92 kB / 1.06 GB, free: 3.789 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.291e-05/0.3997, allocations: 0 / 1.06 GB, free: 3.789 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.522e-05/0.3998, allocations: 15.98 kB / 1.06 GB, free: 3.773 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.164e-05/0.3998, allocations: 15.92 kB / 1.06 GB, free: 3.758 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.738e-05/0.3998, allocations: 29.7 kB / 1.06 GB, free: 3.723 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001027/0.4, allocations: 39.91 kB / 1.06 GB, free: 3.684 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.4, allocations: 0 / 1.06 GB, free: 3.684 MB / 0.8106 GB Notification: Performance of FrontEnd: time 3.166e-06/0.4, allocations: 3.938 kB / 1.06 GB, free: 3.68 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.907e-06/0.4, allocations: 3.938 kB / 1.06 GB, free: 3.676 MB / 0.8106 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.000551/0.4005, allocations: 367.4 kB / 1.06 GB, free: 3.27 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.068e-05/0.4006, allocations: 12.03 kB / 1.06 GB, free: 3.258 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.602e-05/0.4006, allocations: 0 / 1.06 GB, free: 3.258 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001153/0.4008, allocations: 163.1 kB / 1.06 GB, free: 3.059 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.6e-05/0.4008, allocations: 0 / 1.06 GB, free: 3.059 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.914e-05/0.4008, allocations: 11.95 kB / 1.06 GB, free: 3.047 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002307/0.401, allocations: 69.59 kB / 1.06 GB, free: 2.973 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.596e-06/0.4011, allocations: 0 / 1.06 GB, free: 2.973 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.368e-05/0.4011, allocations: 4 kB / 1.06 GB, free: 2.969 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.648e-06/0.4011, allocations: 4 kB / 1.06 GB, free: 2.965 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001741/0.4013, allocations: 51.95 kB / 1.06 GB, free: 2.914 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004555/0.4017, allocations: 284.7 kB / 1.061 GB, free: 2.586 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001644/0.4019, allocations: 62.48 kB / 1.061 GB, free: 2.516 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001016/0.402, allocations: 40.97 kB / 1.061 GB, free: 2.473 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.051e-05/0.402, allocations: 0 / 1.061 GB, free: 2.473 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002132/0.4023, allocations: 79.38 kB / 1.061 GB, free: 2.383 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=6): time 1.112e-06/0.4023, allocations: 4 kB / 1.061 GB, free: 2.379 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6): time 0.0004064/0.4027, allocations: 133.6 kB / 1.061 GB, free: 2.242 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.504e-05/0.4027, allocations: 55.41 kB / 1.061 GB, free: 2.176 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.174e-05/0.4028, allocations: 105.8 kB / 1.061 GB, free: 2.062 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.8e-05/0.4029, allocations: 25.7 kB / 1.061 GB, free: 2.031 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.551e-05/0.4029, allocations: 88.05 kB / 1.061 GB, free: 1.941 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.901e-05/0.4029, allocations: 11.91 kB / 1.061 GB, free: 1.93 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.618e-06/0.4029, allocations: 0 / 1.061 GB, free: 1.93 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001124/0.4031, allocations: 318.8 kB / 1.061 GB, free: 1.609 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.248e-05/0.4031, allocations: 31.98 kB / 1.061 GB, free: 1.578 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000109/0.4033, allocations: 59.39 kB / 1.062 GB, free: 1.508 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.862e-05/0.4034, allocations: 31.98 kB / 1.062 GB, free: 1.477 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.4034, allocations: 0 / 1.062 GB, free: 1.477 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002434/0.4036, allocations: 121.4 kB / 1.062 GB, free: 1.352 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.644e-05/0.4037, allocations: 9.812 kB / 1.062 GB, free: 1.344 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.303e-06/0.4037, allocations: 4 kB / 1.062 GB, free: 1.34 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.32e-05/0.4037, allocations: 0 / 1.062 GB, free: 1.34 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001051/0.4038, allocations: 16.48 kB / 1.062 GB, free: 1.324 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.482e-06/0.4038, allocations: 3.938 kB / 1.062 GB, free: 1.32 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.997e-05/0.4039, allocations: 11.98 kB / 1.062 GB, free: 1.309 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.267e-05/0.4039, allocations: 8 kB / 1.062 GB, free: 1.301 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 ($PRE.sampler1.firstTrigger,sampler1.firstTrigger,$whenCondition1,sampler1.sampleTrigger,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.963e-05/0.404, allocations: 127.1 kB / 1.062 GB, free: 1.168 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.101e-05/0.404, allocations: 7.844 kB / 1.062 GB, free: 1.16 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002698/0.4043, allocations: 114 kB / 1.062 GB, free: 1.043 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.047e-06/0.4043, allocations: 7.922 kB / 1.062 GB, free: 1.035 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-06/0.4043, allocations: 0 / 1.062 GB, free: 1.035 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.282e-06/0.4043, allocations: 8.031 kB / 1.062 GB, free: 1.027 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004099/0.4047, allocations: 362.5 kB / 1.062 GB, free: 0.6172 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.4047, allocations: 0 / 1.062 GB, free: 0.6172 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.809e-05/0.4048, allocations: 12 kB / 1.062 GB, free: 0.6055 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.893e-06/0.4048, allocations: 0 / 1.062 GB, free: 0.6055 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.072e-05/0.4048, allocations: 3.984 kB / 1.062 GB, free: 0.6016 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.856e-06/0.4048, allocations: 4 kB / 1.062 GB, free: 0.5977 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-06/0.4048, allocations: 0 / 1.062 GB, free: 0.5977 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002776/0.4051, allocations: 203.4 kB / 1.063 GB, free: 392 kB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.892e-05/0.4052, allocations: 81.11 kB / 1.063 GB, free: 292 kB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.94e-05/0.4052, allocations: 7.984 kB / 1.063 GB, free: 284 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9e-05/0.4053, allocations: 11.94 kB / 1.063 GB, free: 272 kB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.754e-05/0.4053, allocations: 7.984 kB / 1.063 GB, free: 264 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.262e-05/0.4054, allocations: 0 / 1.063 GB, free: 264 kB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.399e-05/0.4054, allocations: 91.45 kB / 1.063 GB, free: 172 kB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4054, allocations: 0 / 1.063 GB, free: 172 kB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002365/0.4057, allocations: 12 kB / 1.063 GB, free: 160 kB / 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001692/0.4058, allocations: 99.31 kB / 1.063 GB, free: 52 kB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002871/0.4061, allocations: 80.12 kB / 1.063 GB, free: 15.97 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.716e-06/0.4061, allocations: 0 / 1.063 GB, free: 15.97 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.00011/0.4063, allocations: 39.97 kB / 1.063 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002731/0.4065, allocations: 11.95 kB / 1.063 GB, free: 15.92 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003646/0.4069, allocations: 154.7 kB / 1.063 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002406/0.4072, allocations: 0.6809 MB / 1.064 GB, free: 15.03 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.516e-05/0.4072, allocations: 4.188 kB / 1.064 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.446e-05/0.4072, allocations: 15.38 kB / 1.064 GB, free: 15 MB / 0.8262 GB Notification: Performance of SimCode: time 2.51e-07/0.4072, allocations: 0 / 1.064 GB, free: 15 MB / 0.8262 GB Notification: Performance of Templates: time 0.00314/0.4104, allocations: 0.6844 MB / 1.064 GB, free: 14.33 MB / 0.8262 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 -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/jenkins/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