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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008396/0.0008396, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008902/0.0008902, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8796/0.8796, allocations: 177.1 MB / 202.8 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 1.758/1.758, allocations: 389 MB / 0.633 GB, free: 12.66 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Edge,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Edge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Edge,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Edge",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.896e-06/2.896e-06, allocations: 0 / 0.9997 GB, free: 13.49 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.086e-05/2.376e-05, allocations: 2.281 kB / 0.9997 GB, free: 13.48 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Edge): time 0.001475/0.001499, allocations: 0.7325 MB / 1 GB, free: 12.75 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.001089/0.002588, allocations: 1.179 MB / 1.002 GB, free: 11.56 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.935e-05/0.002638, allocations: 0 / 1.002 GB, free: 11.56 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 2.82e-05/0.002666, allocations: 7.938 kB / 1.002 GB, free: 11.55 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 6.697e-05/0.002733, allocations: 7.875 kB / 1.002 GB, free: 11.55 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004614/0.003194, allocations: 142.2 kB / 1.002 GB, free: 11.41 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.000149/0.003343, allocations: 115.8 kB / 1.002 GB, free: 11.3 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001021/0.003445, allocations: 23.91 kB / 1.002 GB, free: 11.27 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 9.787e-05/0.003543, allocations: 67.83 kB / 1.002 GB, free: 11.21 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 6.879e-05/0.003612, allocations: 35.94 kB / 1.002 GB, free: 11.17 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 2.056e-05/0.003632, allocations: 12 kB / 1.002 GB, free: 11.16 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 5.083e-05/0.003683, allocations: 19.98 kB / 1.002 GB, free: 11.14 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 2.056e-05/0.003704, allocations: 11.94 kB / 1.002 GB, free: 11.13 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 4.577e-05/0.00375, allocations: 35.95 kB / 1.002 GB, free: 11.09 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0001541/0.003904, allocations: 131.6 kB / 1.002 GB, free: 10.96 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 1.803e-06/0.003905, allocations: 0 / 1.002 GB, free: 10.96 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.322e-06/0.003907, allocations: 0 / 1.002 GB, free: 10.96 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 3.847e-06/0.003911, allocations: 0 / 1.002 GB, free: 10.96 MB / 0.9636 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.0004265/0.004337, allocations: 342 kB / 1.002 GB, free: 10.59 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 4.259e-05/0.00438, allocations: 12.75 kB / 1.002 GB, free: 10.58 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.392e-05/0.004404, allocations: 30.75 kB / 1.002 GB, free: 10.54 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.644e-05/0.00444, allocations: 8.891 kB / 1.002 GB, free: 10.54 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.726e-05/0.004517, allocations: 121.7 kB / 1.003 GB, free: 10.39 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.212e-05/0.004529, allocations: 4.375 kB / 1.003 GB, free: 10.39 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.462e-05/0.004544, allocations: 8.375 kB / 1.003 GB, free: 10.38 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001279/0.004672, allocations: 66.16 kB / 1.003 GB, free: 10.31 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.762e-06/0.004679, allocations: 192 / 1.003 GB, free: 10.31 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.055e-05/0.004689, allocations: 8.375 kB / 1.003 GB, free: 10.3 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.004695, allocations: 4.125 kB / 1.003 GB, free: 10.3 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.391e-05/0.004788, allocations: 47.94 kB / 1.003 GB, free: 10.25 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004877/0.005276, allocations: 271.9 kB / 1.003 GB, free: 9.941 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001762/0.005452, allocations: 62.55 kB / 1.003 GB, free: 9.871 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.871e-05/0.005511, allocations: 36.95 kB / 1.003 GB, free: 9.832 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 1.366e-05/0.005525, allocations: 3.938 kB / 1.003 GB, free: 9.828 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002062/0.005731, allocations: 91.34 kB / 1.003 GB, free: 9.727 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=8): time 2.986e-06/0.005734, allocations: 0 / 1.003 GB, free: 9.727 MB / 0.9636 GB Notification: Performance of matching and sorting (n=8): time 0.0003062/0.00604, allocations: 141.5 kB / 1.003 GB, free: 9.582 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.88e-05/0.006079, allocations: 55.41 kB / 1.003 GB, free: 9.516 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.342e-05/0.006152, allocations: 121.8 kB / 1.003 GB, free: 9.387 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 2.526e-05/0.006178, allocations: 37.7 kB / 1.004 GB, free: 9.344 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 4.386e-05/0.006222, allocations: 88.14 kB / 1.004 GB, free: 9.254 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 1.659e-05/0.006238, allocations: 15.97 kB / 1.004 GB, free: 9.238 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.084e-05/0.006299, allocations: 37.69 kB / 1.004 GB, free: 9.195 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 7.88e-05/0.006378, allocations: 318.8 kB / 1.004 GB, free: 8.875 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001211/0.006499, allocations: 85.66 kB / 1.004 GB, free: 8.785 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001081/0.006607, allocations: 118 kB / 1.004 GB, free: 8.648 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001565/0.006763, allocations: 149.9 kB / 1.004 GB, free: 8.48 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.006766, allocations: 3.938 kB / 1.004 GB, free: 8.477 MB / 0.9636 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002726/0.007039, allocations: 240.8 kB / 1.005 GB, free: 8.223 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 3.564e-05/0.007075, allocations: 41.64 kB / 1.005 GB, free: 8.176 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.00708, allocations: 4.125 kB / 1.005 GB, free: 8.172 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.464e-05/0.007094, allocations: 4 kB / 1.005 GB, free: 8.168 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.585e-05/0.00716, allocations: 15.92 kB / 1.005 GB, free: 8.152 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.929e-06/0.007165, allocations: 0 / 1.005 GB, free: 8.152 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001208/0.007286, allocations: 39.84 kB / 1.005 GB, free: 8.113 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.561e-05/0.007302, allocations: 12 kB / 1.005 GB, free: 8.102 MB / 0.9636 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 7.886e-05/0.00738, allocations: 121.8 kB / 1.005 GB, free: 7.973 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.137e-06/0.00739, allocations: 7.938 kB / 1.005 GB, free: 7.965 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.52e-05/0.007415, allocations: 12.44 kB / 1.005 GB, free: 7.953 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.007417, allocations: 0 / 1.005 GB, free: 7.953 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.007422, allocations: 0 / 1.005 GB, free: 7.953 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.007425, allocations: 0 / 1.005 GB, free: 7.953 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003457/0.007771, allocations: 349.5 kB / 1.005 GB, free: 7.562 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.007773, allocations: 0 / 1.005 GB, free: 7.562 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.928e-05/0.007802, allocations: 4 kB / 1.005 GB, free: 7.559 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.447e-06/0.007806, allocations: 0 / 1.005 GB, free: 7.559 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.192e-05/0.007817, allocations: 11.98 kB / 1.005 GB, free: 7.547 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.007819, allocations: 0 / 1.005 GB, free: 7.547 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.512e-06/0.007821, allocations: 0 / 1.005 GB, free: 7.547 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001647/0.007986, allocations: 211.3 kB / 1.005 GB, free: 7.324 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 1.37e-05/0.007999, allocations: 7.953 kB / 1.005 GB, free: 7.316 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.447e-05/0.008014, allocations: 4 kB / 1.005 GB, free: 7.312 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.372e-05/0.008058, allocations: 7.984 kB / 1.005 GB, free: 7.305 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.909e-05/0.008097, allocations: 3.984 kB / 1.005 GB, free: 7.301 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.917e-06/0.008106, allocations: 12 kB / 1.005 GB, free: 7.289 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 3.787e-05/0.008143, allocations: 91.27 kB / 1.005 GB, free: 7.199 MB / 0.9636 GB Notification: Performance of sort global known variables: time 1e-07/0.008144, allocations: 0 / 1.005 GB, free: 7.199 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0001962/0.00834, allocations: 20 kB / 1.005 GB, free: 7.18 MB / 0.9636 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.0004374/0.008777, allocations: 0.744 MB / 1.006 GB, free: 6.406 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0002545/0.009032, allocations: 201.1 kB / 1.006 GB, free: 6.191 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.262e-06/0.009033, allocations: 0 / 1.006 GB, free: 6.191 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 5.946e-05/0.009092, allocations: 35.91 kB / 1.006 GB, free: 6.156 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002137/0.009306, allocations: 16.86 kB / 1.006 GB, free: 6.141 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001501/0.01081, allocations: 1.817 MB / 1.008 GB, free: 4.184 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.57e-05/0.01086, allocations: 79.12 kB / 1.008 GB, free: 4.086 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 3.29e-05/0.0109, allocations: 4 kB / 1.008 GB, free: 4.082 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.558e-05/0.01094, allocations: 24.48 kB / 1.008 GB, free: 4.059 MB / 0.9636 GB Notification: Performance of SimCode: time 9.02e-07/0.01094, allocations: 0 / 1.008 GB, free: 4.059 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01786/0.0288, allocations: 3.34 MB / 1.012 GB, free: 0.875 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.709/6.737, allocations: 6.297 kB / 1.012 GB, free: 0.8711 MB / 0.9636 GB " [Timeout remaining time 293] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Edge_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Edge.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe 2>&1) [Timeout 840.0] 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.700472143478692]