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.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: "" <> 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004987/0.004987, allocations: 100 kB / 15.73 MB, free: 6.043 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.001169/0.001169, allocations: 190.6 kB / 16.67 MB, free: 5.977 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.416/1.416, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.749/2.749, allocations: 461.9 MB / 0.7348 GB, free: 14.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001323/0.001323, allocations: 67.89 kB / 1.054 GB, free: 7.629 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3491/0.3504, allocations: 157.4 MB / 1.207 GB, free: 10.13 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Edge): time 0.002167/0.3526, allocations: 0.7477 MB / 1.208 GB, free: 9.383 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001608/0.3543, allocations: 1.155 MB / 1.209 GB, free: 8.215 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.207e-05/0.3544, allocations: 0 / 1.209 GB, free: 8.215 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.672e-05/0.3544, allocations: 3.938 kB / 1.209 GB, free: 8.211 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 6.977e-05/0.3545, allocations: 7.875 kB / 1.209 GB, free: 8.203 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006222/0.3551, allocations: 135.7 kB / 1.209 GB, free: 8.074 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.000228/0.3554, allocations: 127.8 kB / 1.209 GB, free: 7.949 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001182/0.3555, allocations: 15.98 kB / 1.209 GB, free: 7.934 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001362/0.3557, allocations: 47.89 kB / 1.209 GB, free: 7.887 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001131/0.3558, allocations: 47.81 kB / 1.21 GB, free: 7.84 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.794e-05/0.3558, allocations: 8 kB / 1.21 GB, free: 7.832 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 8.268e-05/0.3559, allocations: 20 kB / 1.21 GB, free: 7.812 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.542e-05/0.3559, allocations: 19.97 kB / 1.21 GB, free: 7.793 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 7.333e-05/0.356, allocations: 43.84 kB / 1.21 GB, free: 7.75 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002025/0.3562, allocations: 107.7 kB / 1.21 GB, free: 7.645 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.3562, allocations: 0 / 1.21 GB, free: 7.645 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.964e-06/0.3562, allocations: 0 / 1.21 GB, free: 7.645 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.552e-06/0.3562, allocations: 0 / 1.21 GB, free: 7.645 MB / 0.9669 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.0006967/0.3569, allocations: 421.1 kB / 1.21 GB, free: 7.176 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 5.266e-05/0.357, allocations: 8.625 kB / 1.21 GB, free: 7.168 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.079e-05/0.3571, allocations: 38.73 kB / 1.21 GB, free: 7.121 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.252e-05/0.3571, allocations: 12.84 kB / 1.21 GB, free: 7.109 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001327/0.3573, allocations: 168.4 kB / 1.21 GB, free: 6.906 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.53e-05/0.3573, allocations: 4.375 kB / 1.21 GB, free: 6.902 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.63e-05/0.3573, allocations: 8.375 kB / 1.21 GB, free: 6.895 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002103/0.3575, allocations: 66.22 kB / 1.21 GB, free: 6.824 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.117e-05/0.3575, allocations: 3.938 kB / 1.21 GB, free: 6.82 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.162e-05/0.3576, allocations: 0 / 1.21 GB, free: 6.82 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-06/0.3576, allocations: 0 / 1.21 GB, free: 6.82 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001846/0.3578, allocations: 47.89 kB / 1.21 GB, free: 6.773 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005566/0.3583, allocations: 336.6 kB / 1.211 GB, free: 6.395 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001913/0.3585, allocations: 62.55 kB / 1.211 GB, free: 6.324 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001095/0.3586, allocations: 36.91 kB / 1.211 GB, free: 6.285 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.09e-05/0.3587, allocations: 0 / 1.211 GB, free: 6.285 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000282/0.359, allocations: 95.42 kB / 1.211 GB, free: 6.18 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=8): time 2.064e-06/0.359, allocations: 0 / 1.211 GB, free: 6.18 MB / 0.9669 GB Notification: Performance of matching and sorting (n=8): time 0.0004772/0.3594, allocations: 145.5 kB / 1.211 GB, free: 6.031 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.687e-05/0.3595, allocations: 55.41 kB / 1.211 GB, free: 5.965 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.646e-05/0.3596, allocations: 125.7 kB / 1.211 GB, free: 5.832 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.838e-05/0.3596, allocations: 29.7 kB / 1.211 GB, free: 5.797 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.552e-05/0.3597, allocations: 96.03 kB / 1.211 GB, free: 5.699 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.229e-05/0.3597, allocations: 11.81 kB / 1.211 GB, free: 5.688 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.225e-05/0.3598, allocations: 37.7 kB / 1.211 GB, free: 5.645 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001206/0.36, allocations: 322.8 kB / 1.212 GB, free: 5.32 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001699/0.3601, allocations: 59.95 kB / 1.212 GB, free: 5.262 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001717/0.3603, allocations: 84.25 kB / 1.212 GB, free: 5.164 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002865/0.3606, allocations: 141.9 kB / 1.212 GB, free: 5.004 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.3606, allocations: 0 / 1.212 GB, free: 5.004 MB / 0.9669 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004638/0.3611, allocations: 207.1 kB / 1.212 GB, free: 4.789 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 4.431e-05/0.3611, allocations: 37.7 kB / 1.212 GB, free: 4.746 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.203e-06/0.3612, allocations: 4.312 kB / 1.212 GB, free: 4.742 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.149e-05/0.3612, allocations: 4.125 kB / 1.212 GB, free: 4.738 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.718e-05/0.3613, allocations: 16.05 kB / 1.212 GB, free: 4.723 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.416e-06/0.3613, allocations: 4 kB / 1.212 GB, free: 4.719 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002031/0.3615, allocations: 35.89 kB / 1.212 GB, free: 4.684 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.238e-05/0.3615, allocations: 11.98 kB / 1.212 GB, free: 4.672 MB / 0.9669 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.0001081/0.3616, allocations: 129.7 kB / 1.212 GB, free: 4.535 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.879e-05/0.3617, allocations: 11.91 kB / 1.212 GB, free: 4.523 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.485e-05/0.3617, allocations: 8.375 kB / 1.212 GB, free: 4.512 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.3617, allocations: 3.938 kB / 1.212 GB, free: 4.508 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.73e-06/0.3617, allocations: 4 kB / 1.212 GB, free: 4.504 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.978e-06/0.3617, allocations: 0 / 1.212 GB, free: 4.504 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005012/0.3622, allocations: 374.4 kB / 1.213 GB, free: 4.082 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.3623, allocations: 0 / 1.213 GB, free: 4.082 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.636e-05/0.3623, allocations: 11.98 kB / 1.213 GB, free: 4.07 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.029e-06/0.3623, allocations: 4 kB / 1.213 GB, free: 4.066 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.087e-05/0.3624, allocations: 0 / 1.213 GB, free: 4.066 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.3624, allocations: 0 / 1.213 GB, free: 4.066 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.3624, allocations: 0 / 1.213 GB, free: 4.066 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003215/0.3627, allocations: 207.3 kB / 1.213 GB, free: 3.848 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.414e-05/0.3627, allocations: 85.02 kB / 1.213 GB, free: 3.746 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.025e-05/0.3628, allocations: 4 kB / 1.213 GB, free: 3.742 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.76e-05/0.3629, allocations: 11.98 kB / 1.213 GB, free: 3.73 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.297e-05/0.3629, allocations: 15.86 kB / 1.213 GB, free: 3.715 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.909e-06/0.3629, allocations: 4 kB / 1.213 GB, free: 3.711 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 6.178e-05/0.363, allocations: 91.27 kB / 1.213 GB, free: 3.621 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.3e-07/0.363, allocations: 0 / 1.213 GB, free: 3.621 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002778/0.3633, allocations: 24 kB / 1.213 GB, free: 3.598 MB / 0.9669 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.0006499/0.364, allocations: 0.7505 MB / 1.214 GB, free: 2.824 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0003847/0.3644, allocations: 175.3 kB / 1.214 GB, free: 2.641 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.3644, allocations: 4.25 kB / 1.214 GB, free: 2.637 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.000121/0.3645, allocations: 39.91 kB / 1.214 GB, free: 2.598 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000282/0.3648, allocations: 15.92 kB / 1.214 GB, free: 2.582 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002187/0.367, allocations: 1.69 MB / 1.216 GB, free: 0.7773 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003081/0.3673, allocations: 0.6924 MB / 1.217 GB, free: 60 kB / 0.9669 GB Notification: Performance of simCode: alias equations: time 4.127e-05/0.3674, allocations: 4 kB / 1.217 GB, free: 56 kB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.353e-05/0.3674, allocations: 23.42 kB / 1.217 GB, free: 32 kB / 0.9669 GB Notification: Performance of SimCode: time 3.71e-07/0.3674, allocations: 0 / 1.217 GB, free: 32 kB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01867/0.3861, allocations: 2.612 MB / 1.219 GB, free: 13.53 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.573/7.959, allocations: 4.656 kB / 1.219 GB, free: 13.52 MB / 0.9825 GB (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 --timeout=50 --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) 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