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.008199/0.008199, allocations: 102.3 kB / 15.73 MB, free: 5.582 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.001433/0.001433, allocations: 191.2 kB / 16.67 MB, free: 5.52 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.518/1.518, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.948/2.948, allocations: 461.9 MB / 0.7347 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.00129, allocations: 71.83 kB / 1.054 GB, free: 7.715 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.196/1.198, allocations: 157.4 MB / 1.208 GB, free: 13.66 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.002478/1.2, allocations: 0.745 MB / 1.208 GB, free: 12.92 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001857/1.202, allocations: 1.162 MB / 1.21 GB, free: 11.74 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.583e-05/1.202, allocations: 0 / 1.21 GB, free: 11.74 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.867e-05/1.202, allocations: 7.875 kB / 1.21 GB, free: 11.73 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 9.265e-05/1.203, allocations: 15.92 kB / 1.21 GB, free: 11.72 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006277/1.203, allocations: 130.9 kB / 1.21 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0002378/1.203, allocations: 135.7 kB / 1.21 GB, free: 11.46 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000132/1.204, allocations: 24.16 kB / 1.21 GB, free: 11.43 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001415/1.204, allocations: 47.91 kB / 1.21 GB, free: 11.39 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001229/1.204, allocations: 47.81 kB / 1.21 GB, free: 11.34 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.873e-05/1.204, allocations: 16 kB / 1.21 GB, free: 11.32 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 9.646e-05/1.204, allocations: 27.97 kB / 1.21 GB, free: 11.3 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 3.179e-05/1.204, allocations: 15.94 kB / 1.21 GB, free: 11.28 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 9.484e-05/1.204, allocations: 39.84 kB / 1.21 GB, free: 11.24 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.000275/1.204, allocations: 123.7 kB / 1.21 GB, free: 11.12 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.141e-06/1.204, allocations: 0 / 1.21 GB, free: 11.12 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.634e-06/1.204, allocations: 0 / 1.21 GB, free: 11.12 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.196e-05/1.204, allocations: 0 / 1.21 GB, free: 11.12 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.0007083/1.205, allocations: 414.7 kB / 1.211 GB, free: 10.67 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.357e-05/1.205, allocations: 15.97 kB / 1.211 GB, free: 10.65 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.533e-05/1.205, allocations: 16.78 kB / 1.211 GB, free: 10.64 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001341/1.205, allocations: 176.3 kB / 1.211 GB, free: 10.43 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.131e-05/1.205, allocations: 8.375 kB / 1.211 GB, free: 10.42 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.375e-05/1.205, allocations: 4.375 kB / 1.211 GB, free: 10.41 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000235/1.206, allocations: 74.16 kB / 1.211 GB, free: 10.34 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.566e-05/1.206, allocations: 7.922 kB / 1.211 GB, free: 10.33 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.453e-05/1.206, allocations: 4 kB / 1.211 GB, free: 10.32 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.586e-06/1.206, allocations: 0 / 1.211 GB, free: 10.32 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002111/1.206, allocations: 55.89 kB / 1.211 GB, free: 10.27 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000675/1.207, allocations: 344.6 kB / 1.211 GB, free: 9.883 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002017/1.207, allocations: 62.58 kB / 1.211 GB, free: 9.812 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001085/1.207, allocations: 36.97 kB / 1.211 GB, free: 9.773 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.725e-05/1.207, allocations: 0 / 1.211 GB, free: 9.773 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002989/1.207, allocations: 87.27 kB / 1.211 GB, free: 9.676 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=8): time 1.903e-06/1.207, allocations: 0 / 1.211 GB, free: 9.676 MB / 0.9356 GB Notification: Performance of matching and sorting (n=8): time 0.0005454/1.208, allocations: 157.5 kB / 1.212 GB, free: 9.516 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.904e-05/1.208, allocations: 55.41 kB / 1.212 GB, free: 9.449 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000117/1.208, allocations: 121.7 kB / 1.212 GB, free: 9.32 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 3.991e-05/1.208, allocations: 33.7 kB / 1.212 GB, free: 9.281 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 9.843e-05/1.208, allocations: 92.12 kB / 1.212 GB, free: 9.188 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.278e-05/1.208, allocations: 19.72 kB / 1.212 GB, free: 9.168 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.984e-05/1.208, allocations: 37.69 kB / 1.212 GB, free: 9.125 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001958/1.209, allocations: 322.8 kB / 1.212 GB, free: 8.801 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000175/1.209, allocations: 55.95 kB / 1.212 GB, free: 8.746 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001946/1.209, allocations: 92.73 kB / 1.212 GB, free: 8.641 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003125/1.209, allocations: 154.6 kB / 1.213 GB, free: 8.465 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.676e-06/1.209, allocations: 0 / 1.213 GB, free: 8.465 MB / 0.9356 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0005097/1.21, allocations: 215.2 kB / 1.213 GB, free: 8.242 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 4.861e-05/1.21, allocations: 37.69 kB / 1.213 GB, free: 8.199 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/1.21, allocations: 0 / 1.213 GB, free: 8.199 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.86e-05/1.21, allocations: 4 kB / 1.213 GB, free: 8.195 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001198/1.21, allocations: 15.98 kB / 1.213 GB, free: 8.18 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.08e-05/1.21, allocations: 4 kB / 1.213 GB, free: 8.176 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000243/1.21, allocations: 31.91 kB / 1.213 GB, free: 8.145 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.062e-05/1.21, allocations: 8.016 kB / 1.213 GB, free: 8.137 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.0001485/1.211, allocations: 133.7 kB / 1.213 GB, free: 7.996 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.785e-05/1.211, allocations: 7.906 kB / 1.213 GB, free: 7.988 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003548/1.211, allocations: 126 kB / 1.213 GB, free: 7.855 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.609e-06/1.211, allocations: 0 / 1.213 GB, free: 7.855 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.784e-06/1.211, allocations: 0 / 1.213 GB, free: 7.855 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/1.211, allocations: 0 / 1.213 GB, free: 7.855 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005683/1.212, allocations: 378.4 kB / 1.213 GB, free: 7.43 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/1.212, allocations: 3.938 kB / 1.213 GB, free: 7.426 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.933e-05/1.212, allocations: 15.98 kB / 1.213 GB, free: 7.41 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.546e-06/1.212, allocations: 0 / 1.213 GB, free: 7.41 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.601e-05/1.212, allocations: 4 kB / 1.213 GB, free: 7.406 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.741e-06/1.212, allocations: 7.984 kB / 1.213 GB, free: 7.398 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/1.212, allocations: 3.938 kB / 1.213 GB, free: 7.395 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003631/1.212, allocations: 215.3 kB / 1.214 GB, free: 7.168 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.321e-05/1.212, allocations: 81.02 kB / 1.214 GB, free: 7.07 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.766e-05/1.212, allocations: 4 kB / 1.214 GB, free: 7.066 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.626e-05/1.212, allocations: 7.984 kB / 1.214 GB, free: 7.059 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.269e-05/1.212, allocations: 11.94 kB / 1.214 GB, free: 7.047 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.887e-06/1.212, allocations: 3.984 kB / 1.214 GB, free: 7.043 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 6.028e-05/1.212, allocations: 91.28 kB / 1.214 GB, free: 6.953 MB / 0.9356 GB Notification: Performance of sort global known variables: time 2.8e-07/1.212, allocations: 0 / 1.214 GB, free: 6.953 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003042/1.213, allocations: 31.98 kB / 1.214 GB, free: 6.922 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.0002171/1.213, allocations: 103.2 kB / 1.214 GB, free: 6.812 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0005443/1.214, allocations: 179.3 kB / 1.214 GB, free: 6.625 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/1.214, allocations: 320 / 1.214 GB, free: 6.625 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001393/1.214, allocations: 48.45 kB / 1.214 GB, free: 6.578 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003123/1.214, allocations: 14.11 kB / 1.214 GB, free: 6.566 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005299/1.215, allocations: 175.2 kB / 1.214 GB, free: 6.367 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004087/1.215, allocations: 0.6924 MB / 1.215 GB, free: 5.648 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 4.53e-05/1.215, allocations: 8 kB / 1.215 GB, free: 5.641 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.239e-05/1.215, allocations: 15.44 kB / 1.215 GB, free: 5.625 MB / 0.9356 GB Notification: Performance of SimCode: time 3.21e-07/1.215, allocations: 0 / 1.215 GB, free: 5.625 MB / 0.9356 GB Notification: Performance of Templates: time 0.00528/1.22, allocations: 1.438 MB / 1.216 GB, free: 4.199 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/jenkins/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