Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_latest_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_latest_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.001281/0.001281, allocations: 105.9 kB / 16.41 MB, free: 6.457 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.001316/0.001316, allocations: 189.5 kB / 17.34 MB, free: 5.719 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.3/1.3, allocations: 222.9 MB / 241 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.465/2.465, allocations: 461.9 MB / 0.7354 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00138/0.001381, allocations: 67.88 kB / 1.055 GB, free: 7.719 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7999/0.8013, allocations: 157.4 MB / 1.208 GB, free: 13.63 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.001939/0.8032, allocations: 0.7609 MB / 1.209 GB, free: 12.88 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001477/0.8047, allocations: 1.158 MB / 1.21 GB, free: 11.7 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.004e-05/0.8048, allocations: 0 / 1.21 GB, free: 11.7 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.427e-05/0.8049, allocations: 3.938 kB / 1.21 GB, free: 11.7 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 6.627e-05/0.805, allocations: 15.84 kB / 1.21 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004946/0.8055, allocations: 147.1 kB / 1.21 GB, free: 11.54 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001902/0.8057, allocations: 123.8 kB / 1.211 GB, free: 11.42 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000111/0.8058, allocations: 28.16 kB / 1.211 GB, free: 11.39 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001001/0.8059, allocations: 47.91 kB / 1.211 GB, free: 11.34 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001032/0.806, allocations: 47.81 kB / 1.211 GB, free: 11.3 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.864e-05/0.806, allocations: 12 kB / 1.211 GB, free: 11.29 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 7.816e-05/0.8061, allocations: 31.92 kB / 1.211 GB, free: 11.25 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.276e-05/0.8061, allocations: 15.91 kB / 1.211 GB, free: 11.24 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 6.266e-05/0.8062, allocations: 47.84 kB / 1.211 GB, free: 11.19 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001916/0.8064, allocations: 115.7 kB / 1.211 GB, free: 11.08 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.175e-06/0.8064, allocations: 4 kB / 1.211 GB, free: 11.07 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.333e-06/0.8064, allocations: 0 / 1.211 GB, free: 11.07 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.149e-06/0.8064, allocations: 4 kB / 1.211 GB, free: 11.07 MB / 0.9356 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.0005817/0.807, allocations: 414.6 kB / 1.211 GB, free: 10.62 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.741e-05/0.8071, allocations: 12.03 kB / 1.211 GB, free: 10.61 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.904e-05/0.8071, allocations: 8.844 kB / 1.211 GB, free: 10.6 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001178/0.8073, allocations: 176.3 kB / 1.211 GB, free: 10.39 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.726e-05/0.8073, allocations: 4.375 kB / 1.211 GB, free: 10.38 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.452e-05/0.8073, allocations: 16.31 kB / 1.211 GB, free: 10.37 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002027/0.8075, allocations: 74.16 kB / 1.212 GB, free: 10.29 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.062e-05/0.8076, allocations: 3.938 kB / 1.212 GB, free: 10.29 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.181e-05/0.8076, allocations: 4 kB / 1.212 GB, free: 10.28 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.92e-06/0.8076, allocations: 0 / 1.212 GB, free: 10.28 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000196/0.8078, allocations: 43.95 kB / 1.212 GB, free: 10.24 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000502/0.8083, allocations: 352.5 kB / 1.212 GB, free: 9.844 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001663/0.8085, allocations: 62.55 kB / 1.212 GB, free: 9.773 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.985e-05/0.8086, allocations: 28.95 kB / 1.212 GB, free: 9.742 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.06e-05/0.8086, allocations: 8 kB / 1.212 GB, free: 9.734 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002371/0.8089, allocations: 91.3 kB / 1.212 GB, free: 9.633 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=8): time 1.614e-06/0.8089, allocations: 4 kB / 1.212 GB, free: 9.629 MB / 0.9356 GB Notification: Performance of matching and sorting (n=8): time 0.0004357/0.8093, allocations: 145.6 kB / 1.212 GB, free: 9.48 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.541e-05/0.8094, allocations: 51.41 kB / 1.212 GB, free: 9.418 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.341e-05/0.8095, allocations: 125.7 kB / 1.212 GB, free: 9.285 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.433e-05/0.8095, allocations: 25.7 kB / 1.212 GB, free: 9.254 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 6.8e-05/0.8096, allocations: 92.14 kB / 1.213 GB, free: 9.16 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.311e-05/0.8096, allocations: 23.7 kB / 1.213 GB, free: 9.137 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.259e-05/0.8097, allocations: 37.7 kB / 1.213 GB, free: 9.094 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001158/0.8098, allocations: 322.8 kB / 1.213 GB, free: 8.77 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001594/0.81, allocations: 55.91 kB / 1.213 GB, free: 8.715 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001672/0.8101, allocations: 93.05 kB / 1.213 GB, free: 8.605 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002711/0.8104, allocations: 150.8 kB / 1.213 GB, free: 8.434 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.8104, allocations: 0 / 1.213 GB, free: 8.434 MB / 0.9356 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004326/0.8109, allocations: 219.1 kB / 1.213 GB, free: 8.207 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 3.723e-05/0.8109, allocations: 33.7 kB / 1.213 GB, free: 8.168 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.733e-06/0.8109, allocations: 4 kB / 1.213 GB, free: 8.164 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.294e-05/0.8109, allocations: 0 / 1.213 GB, free: 8.164 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001003/0.811, allocations: 19.92 kB / 1.213 GB, free: 8.145 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.282e-06/0.8111, allocations: 0 / 1.213 GB, free: 8.145 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002066/0.8113, allocations: 44.05 kB / 1.214 GB, free: 8.102 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.068e-05/0.8113, allocations: 8 kB / 1.214 GB, free: 8.094 MB / 0.9356 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.0001001/0.8114, allocations: 121.8 kB / 1.214 GB, free: 7.965 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.825e-05/0.8114, allocations: 11.89 kB / 1.214 GB, free: 7.953 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002934/0.8117, allocations: 129.9 kB / 1.214 GB, free: 7.816 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.8117, allocations: 4 kB / 1.214 GB, free: 7.812 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.8117, allocations: 0 / 1.214 GB, free: 7.812 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.8118, allocations: 0 / 1.214 GB, free: 7.812 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004098/0.8122, allocations: 378.8 kB / 1.214 GB, free: 7.387 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.8122, allocations: 0 / 1.214 GB, free: 7.387 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.068e-05/0.8122, allocations: 15.92 kB / 1.214 GB, free: 7.371 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.945e-06/0.8123, allocations: 0 / 1.214 GB, free: 7.371 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.945e-06/0.8123, allocations: 7.938 kB / 1.214 GB, free: 7.363 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.8123, allocations: 0 / 1.214 GB, free: 7.363 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.8123, allocations: 3.938 kB / 1.214 GB, free: 7.359 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002871/0.8126, allocations: 211.4 kB / 1.214 GB, free: 7.137 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.688e-05/0.8126, allocations: 89.02 kB / 1.214 GB, free: 7.031 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.531e-05/0.8127, allocations: 0 / 1.214 GB, free: 7.031 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.414e-05/0.8127, allocations: 11.98 kB / 1.214 GB, free: 7.02 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.879e-05/0.8128, allocations: 11.92 kB / 1.214 GB, free: 7.008 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.827e-06/0.8128, allocations: 4 kB / 1.214 GB, free: 7.004 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 4.793e-05/0.8129, allocations: 95.27 kB / 1.215 GB, free: 6.91 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8129, allocations: 0 / 1.215 GB, free: 6.91 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002621/0.8131, allocations: 24 kB / 1.215 GB, free: 6.887 MB / 0.9356 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.0001401/0.8133, allocations: 107.1 kB / 1.215 GB, free: 6.773 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003753/0.8137, allocations: 183.3 kB / 1.215 GB, free: 6.582 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.8137, allocations: 0 / 1.215 GB, free: 6.582 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001196/0.8138, allocations: 43.97 kB / 1.215 GB, free: 6.539 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002659/0.8141, allocations: 15.92 kB / 1.215 GB, free: 6.523 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003601/0.8144, allocations: 205 kB / 1.215 GB, free: 6.289 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002443/0.8147, allocations: 0.6885 MB / 1.216 GB, free: 5.574 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.926e-05/0.8147, allocations: 11.44 kB / 1.216 GB, free: 5.562 MB / 0.9356 GB Notification: Performance of SimCode: time 2.21e-07/0.8147, allocations: 0 / 1.216 GB, free: 5.562 MB / 0.9356 GB Notification: Performance of Templates: time 0.002855/0.8176, allocations: 1.294 MB / 1.217 GB, free: 4.285 MB / 0.9356 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches