Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_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_9_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.001377/0.001377, allocations: 109.9 kB / 16.41 MB, free: 6.492 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.001413/0.001413, allocations: 185.5 kB / 17.34 MB, free: 5.766 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.414/1.414, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.295/2.295, allocations: 390.2 MB / 0.6655 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00136/0.00136, allocations: 63.91 kB / 0.9516 GB, free: 7.59 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7568/0.7582, allocations: 140.4 MB / 1.089 GB, free: 5.5 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Edge): time 0.001792/0.76, allocations: 0.748 MB / 1.089 GB, free: 5.027 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001327/0.7614, allocations: 1.158 MB / 1.09 GB, free: 4.176 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.659e-05/0.7615, allocations: 5.062 kB / 1.09 GB, free: 4.172 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.251e-05/0.7615, allocations: 4.641 kB / 1.09 GB, free: 4.168 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.813e-05/0.7616, allocations: 10.61 kB / 1.091 GB, free: 4.16 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005075/0.7621, allocations: 138.8 kB / 1.091 GB, free: 4.09 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001767/0.7623, allocations: 122.1 kB / 1.091 GB, free: 4.039 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 9.246e-05/0.7624, allocations: 12.3 kB / 1.091 GB, free: 4.035 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 9.082e-05/0.7625, allocations: 48.73 kB / 1.091 GB, free: 4.016 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001012/0.7626, allocations: 45.34 kB / 1.091 GB, free: 3.996 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.045e-05/0.7626, allocations: 10.38 kB / 1.091 GB, free: 3.996 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 8.444e-05/0.7627, allocations: 32.97 kB / 1.091 GB, free: 3.984 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.636e-05/0.7628, allocations: 17.23 kB / 1.091 GB, free: 3.973 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 6.8e-05/0.7628, allocations: 46.55 kB / 1.091 GB, free: 3.945 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002121/0.763, allocations: 104.4 kB / 1.091 GB, free: 3.914 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.7631, allocations: 0 / 1.091 GB, free: 3.914 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.552e-06/0.7631, allocations: 0 / 1.091 GB, free: 3.914 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.849e-06/0.7631, allocations: 1.094 kB / 1.091 GB, free: 3.914 MB / 0.8575 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.0005485/0.7636, allocations: 414.3 kB / 1.091 GB, free: 3.504 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.667e-05/0.7637, allocations: 10.02 kB / 1.091 GB, free: 3.504 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.307e-05/0.7637, allocations: 11.22 kB / 1.091 GB, free: 3.5 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.236e-05/0.7638, allocations: 176.8 kB / 1.092 GB, free: 3.293 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.932e-05/0.7639, allocations: 4.453 kB / 1.092 GB, free: 3.293 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.739e-05/0.7639, allocations: 7.531 kB / 1.092 GB, free: 3.293 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001917/0.7641, allocations: 70.28 kB / 1.092 GB, free: 3.246 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.725e-06/0.7641, allocations: 192 / 1.092 GB, free: 3.246 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.206e-05/0.7641, allocations: 5.734 kB / 1.092 GB, free: 3.242 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/0.7641, allocations: 1.062 kB / 1.092 GB, free: 3.242 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001778/0.7643, allocations: 42.17 kB / 1.092 GB, free: 3.234 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004384/0.7648, allocations: 328.9 kB / 1.092 GB, free: 2.934 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001743/0.7649, allocations: 63.11 kB / 1.092 GB, free: 2.895 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001066/0.7651, allocations: 36.06 kB / 1.092 GB, free: 2.879 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 9.217e-06/0.7651, allocations: 4.812 kB / 1.092 GB, free: 2.875 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000244/0.7653, allocations: 82.98 kB / 1.092 GB, free: 2.82 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=8): time 1.513e-06/0.7653, allocations: 1.062 kB / 1.092 GB, free: 2.82 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8): time 0.0004611/0.7658, allocations: 148.2 kB / 1.092 GB, free: 2.754 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.787e-05/0.7658, allocations: 62.06 kB / 1.092 GB, free: 2.684 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.691e-05/0.7659, allocations: 117.3 kB / 1.093 GB, free: 2.578 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.106e-05/0.7659, allocations: 28.61 kB / 1.093 GB, free: 2.547 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.154e-05/0.766, allocations: 89.11 kB / 1.093 GB, free: 2.461 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.183e-05/0.766, allocations: 25.52 kB / 1.093 GB, free: 2.441 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.293e-05/0.7661, allocations: 37.03 kB / 1.093 GB, free: 2.418 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.67e-05/0.7662, allocations: 319.9 kB / 1.093 GB, free: 2.102 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000166/0.7663, allocations: 50.39 kB / 1.093 GB, free: 2.09 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001711/0.7665, allocations: 90.72 kB / 1.093 GB, free: 2.027 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002848/0.7668, allocations: 145.9 kB / 1.093 GB, free: 1.922 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.7668, allocations: 0 / 1.093 GB, free: 1.922 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004363/0.7673, allocations: 213.6 kB / 1.094 GB, free: 1.809 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.276e-05/0.7673, allocations: 35.55 kB / 1.094 GB, free: 1.777 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.7673, allocations: 5.578 kB / 1.094 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.669e-05/0.7673, allocations: 1.969 kB / 1.094 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.152e-05/0.7674, allocations: 23.61 kB / 1.094 GB, free: 1.762 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.362e-06/0.7674, allocations: 1.344 kB / 1.094 GB, free: 1.762 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002048/0.7676, allocations: 35.11 kB / 1.094 GB, free: 1.758 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.421e-05/0.7677, allocations: 8.312 kB / 1.094 GB, free: 1.758 MB / 0.8575 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 9.356e-05/0.7678, allocations: 125.1 kB / 1.094 GB, free: 1.633 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.917e-05/0.7678, allocations: 3.922 kB / 1.094 GB, free: 1.633 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.603e-05/0.7679, allocations: 11.33 kB / 1.094 GB, free: 1.625 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-06/0.7679, allocations: 0.7969 kB / 1.094 GB, free: 1.625 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.7679, allocations: 0.8438 kB / 1.094 GB, free: 1.625 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.008e-06/0.7679, allocations: 0.7969 kB / 1.094 GB, free: 1.625 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004368/0.7683, allocations: 381.9 kB / 1.094 GB, free: 1.285 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.7683, allocations: 1.219 kB / 1.094 GB, free: 1.285 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.98e-05/0.7684, allocations: 8.25 kB / 1.094 GB, free: 1.285 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/0.7684, allocations: 5.062 kB / 1.094 GB, free: 1.281 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.738e-06/0.7684, allocations: 1.641 kB / 1.094 GB, free: 1.281 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.7684, allocations: 4.703 kB / 1.094 GB, free: 1.277 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.7685, allocations: 0.9375 kB / 1.094 GB, free: 1.277 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000296/0.7688, allocations: 216.1 kB / 1.094 GB, free: 1.113 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.378e-05/0.7688, allocations: 83.97 kB / 1.094 GB, free: 1.016 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.946e-05/0.7688, allocations: 6.172 kB / 1.094 GB, free: 1.012 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.789e-05/0.7689, allocations: 6.547 kB / 1.094 GB, free: 1.012 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.247e-05/0.769, allocations: 5.922 kB / 1.094 GB, free: 1.012 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.13e-05/0.769, allocations: 11.39 kB / 1.094 GB, free: 1.004 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.902e-05/0.769, allocations: 91.28 kB / 1.095 GB, free: 0.9258 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.242e-06/0.769, allocations: 0 / 1.095 GB, free: 0.9258 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.00028/0.7693, allocations: 24.47 kB / 1.095 GB, free: 0.9219 MB / 0.8575 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.0001543/0.7695, allocations: 109.9 kB / 1.095 GB, free: 0.8281 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004154/0.7699, allocations: 175.4 kB / 1.095 GB, free: 0.7305 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.7699, allocations: 0 / 1.095 GB, free: 0.7305 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001316/0.77, allocations: 39.06 kB / 1.095 GB, free: 0.7227 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002797/0.7703, allocations: 20.03 kB / 1.095 GB, free: 0.7148 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003611/0.7707, allocations: 193.8 kB / 1.095 GB, free: 0.5391 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002411/0.7709, allocations: 0.6893 MB / 1.096 GB, free: 15.84 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.194e-05/0.771, allocations: 12.11 kB / 1.096 GB, free: 15.84 MB / 0.8731 GB Notification: Performance of SimCode: time 2e-07/0.771, allocations: 0 / 1.096 GB, free: 15.84 MB / 0.8731 GB Notification: Performance of Templates: time 0.003564/0.7746, allocations: 1.266 MB / 1.097 GB, free: 15.71 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Edge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Edge_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Validation_Edge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches