Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.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.Logical.Validation.Edge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|edge1.u|edge1.y|triggeredSampler.u|triggeredSampler.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Edge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|edge1.u|edge1.y|triggeredSampler.u|triggeredSampler.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001528/0.001528, allocations: 103.9 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.001817/0.001817, allocations: 196 kB / 17.3 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.436/1.436, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.727/2.727, allocations: 442.6 MB / 0.7165 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00133/0.00133, allocations: 60.69 kB / 0.8773 GB, free: 10.94 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3746/0.376, allocations: 153 MB / 1.027 GB, free: 2.031 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Edge): time 0.00235/0.3784, allocations: 0.7697 MB / 1.027 GB, free: 1.27 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001614/0.38, allocations: 1.151 MB / 1.029 GB, free: 104 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.231e-05/0.3801, allocations: 4 kB / 1.029 GB, free: 100 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.566e-05/0.3802, allocations: 3.938 kB / 1.029 GB, free: 96 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 7.179e-05/0.3803, allocations: 11.88 kB / 1.029 GB, free: 84 kB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005932/0.3809, allocations: 124.8 kB / 1.029 GB, free: 15.96 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002177/0.3811, allocations: 123.7 kB / 1.029 GB, free: 15.84 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001379/0.3812, allocations: 19.98 kB / 1.029 GB, free: 15.82 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001079/0.3813, allocations: 43.91 kB / 1.029 GB, free: 15.78 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001103/0.3815, allocations: 43.81 kB / 1.029 GB, free: 15.73 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.603e-05/0.3815, allocations: 12 kB / 1.029 GB, free: 15.72 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.914e-05/0.3816, allocations: 23.98 kB / 1.029 GB, free: 15.7 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.93e-05/0.3816, allocations: 11.98 kB / 1.029 GB, free: 15.69 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 8.043e-05/0.3817, allocations: 51.83 kB / 1.029 GB, free: 15.64 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001926/0.3819, allocations: 107.6 kB / 1.029 GB, free: 15.53 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.3819, allocations: 4 kB / 1.029 GB, free: 15.53 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.675e-06/0.3819, allocations: 4 kB / 1.029 GB, free: 15.52 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.174e-06/0.3819, allocations: 0 / 1.029 GB, free: 15.52 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.0006993/0.3827, allocations: 412.9 kB / 1.03 GB, free: 15.06 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 6.15e-05/0.3827, allocations: 8.031 kB / 1.03 GB, free: 15.05 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.509e-05/0.3828, allocations: 4.938 kB / 1.03 GB, free: 15.05 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001435/0.3829, allocations: 172.3 kB / 1.03 GB, free: 14.84 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.937e-05/0.383, allocations: 8.312 kB / 1.03 GB, free: 14.84 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.695e-05/0.383, allocations: 12.38 kB / 1.03 GB, free: 14.82 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001955/0.3832, allocations: 62.22 kB / 1.03 GB, free: 14.76 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.195e-06/0.3832, allocations: 192 / 1.03 GB, free: 14.76 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.286e-05/0.3832, allocations: 3.938 kB / 1.03 GB, free: 14.75 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.646e-05/0.3833, allocations: 4 kB / 1.03 GB, free: 14.75 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001696/0.3834, allocations: 43.89 kB / 1.03 GB, free: 14.71 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005469/0.384, allocations: 336.6 kB / 1.03 GB, free: 14.33 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001975/0.3842, allocations: 62.48 kB / 1.03 GB, free: 14.26 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001034/0.3843, allocations: 36.95 kB / 1.03 GB, free: 14.22 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.336e-05/0.3843, allocations: 0 / 1.03 GB, free: 14.22 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002277/0.3846, allocations: 87.36 kB / 1.03 GB, free: 14.12 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=8): time 1.543e-06/0.3846, allocations: 4 kB / 1.03 GB, free: 14.12 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8): time 0.000448/0.385, allocations: 141.4 kB / 1.03 GB, free: 13.97 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.388e-05/0.3851, allocations: 55.47 kB / 1.031 GB, free: 13.91 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.848e-05/0.3852, allocations: 121.8 kB / 1.031 GB, free: 13.78 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.884e-05/0.3852, allocations: 37.7 kB / 1.031 GB, free: 13.73 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.763e-05/0.3853, allocations: 88.14 kB / 1.031 GB, free: 13.64 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.354e-05/0.3853, allocations: 15.8 kB / 1.031 GB, free: 13.63 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.8e-05/0.3854, allocations: 37.7 kB / 1.031 GB, free: 13.59 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001262/0.3855, allocations: 322.8 kB / 1.031 GB, free: 13.26 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001464/0.3857, allocations: 47.97 kB / 1.031 GB, free: 13.21 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001813/0.3859, allocations: 88.25 kB / 1.031 GB, free: 13.11 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002545/0.3861, allocations: 146.1 kB / 1.031 GB, free: 12.95 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.3862, allocations: 4 kB / 1.031 GB, free: 12.95 MB / 0.8106 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004324/0.3866, allocations: 211.1 kB / 1.032 GB, free: 12.73 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 4.989e-05/0.3866, allocations: 37.69 kB / 1.032 GB, free: 12.68 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.337e-06/0.3867, allocations: 0 / 1.032 GB, free: 12.68 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.749e-05/0.3867, allocations: 7.938 kB / 1.032 GB, free: 12.68 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.071e-05/0.3868, allocations: 11.98 kB / 1.032 GB, free: 12.66 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.873e-06/0.3868, allocations: 0 / 1.032 GB, free: 12.66 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002084/0.387, allocations: 47.92 kB / 1.032 GB, free: 12.62 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.396e-05/0.3871, allocations: 11.94 kB / 1.032 GB, free: 12.61 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 10 (triggeredSampler.y,$PRE.triggeredSampler.y,$whenCondition1,$whenCondition2,edge1.y,edge1.u,$PRE.edge1.u,booPul.y,$PRE.booPul.y,$whenCondition3) * 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.0001183/0.3872, allocations: 121.7 kB / 1.032 GB, free: 12.48 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.149e-05/0.3872, allocations: 4.062 kB / 1.032 GB, free: 12.47 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.065e-05/0.3873, allocations: 20.36 kB / 1.032 GB, free: 12.45 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.3873, allocations: 3.984 kB / 1.032 GB, free: 12.45 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.3873, allocations: 4 kB / 1.032 GB, free: 12.45 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.3873, allocations: 0 / 1.032 GB, free: 12.45 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005228/0.3878, allocations: 378.3 kB / 1.032 GB, free: 12.02 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-06/0.3878, allocations: 3.984 kB / 1.032 GB, free: 12.02 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.096e-05/0.3879, allocations: 8 kB / 1.032 GB, free: 12.01 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.3879, allocations: 0 / 1.032 GB, free: 12.01 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.013e-05/0.3879, allocations: 0 / 1.032 GB, free: 12.01 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.428e-06/0.3879, allocations: 7.984 kB / 1.032 GB, free: 12 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.3879, allocations: 4 kB / 1.032 GB, free: 12 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003284/0.3883, allocations: 215.3 kB / 1.032 GB, free: 11.77 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 6.502e-05/0.3883, allocations: 77.11 kB / 1.033 GB, free: 11.68 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.36e-05/0.3884, allocations: 8 kB / 1.033 GB, free: 11.67 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.12e-05/0.3885, allocations: 7.984 kB / 1.033 GB, free: 11.66 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.229e-05/0.3885, allocations: 4 kB / 1.033 GB, free: 11.66 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.072e-05/0.3885, allocations: 11.92 kB / 1.033 GB, free: 11.64 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 6.304e-05/0.3886, allocations: 95.77 kB / 1.033 GB, free: 11.55 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3886, allocations: 0 / 1.033 GB, free: 11.55 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002469/0.3889, allocations: 20 kB / 1.033 GB, free: 11.53 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: 7 (edge1.y,$whenCondition3,$whenCondition1,$whenCondition2,booPul.y,edge1.u,triggeredSampler.y) * Number of discrete states: 1 (edge1.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 6 * 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.0001808/0.389, allocations: 111.2 kB / 1.033 GB, free: 11.41 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003801/0.3894, allocations: 175.3 kB / 1.033 GB, free: 11.23 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.3894, allocations: 4 kB / 1.033 GB, free: 11.23 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001198/0.3896, allocations: 39.91 kB / 1.033 GB, free: 11.19 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002883/0.3899, allocations: 19.06 kB / 1.033 GB, free: 11.17 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004469/0.3903, allocations: 158.7 kB / 1.033 GB, free: 10.98 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003764/0.3907, allocations: 0.694 MB / 1.034 GB, free: 10.26 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.433e-05/0.3908, allocations: 7.984 kB / 1.034 GB, free: 10.25 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.624e-05/0.3908, allocations: 11.44 kB / 1.034 GB, free: 10.25 MB / 0.8106 GB Notification: Performance of SimCode: time 3.7e-07/0.3908, allocations: 0 / 1.034 GB, free: 10.25 MB / 0.8106 GB Notification: Performance of Templates: time 0.004744/0.3955, allocations: 1.439 MB / 1.035 GB, free: 8.82 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_Edge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches