Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Edge,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Logical_Validation_Edge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Edge,fileNamePrefix="Buildings_10_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.001017/0.001017, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001017/0.001017, allocations: 188 kB / 16.25 MB, free: 6.625 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.307/1.307, allocations: 222.9 MB / 239.9 MB, free: 4.508 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.377/2.377, allocations: 437.1 MB / 0.7101 GB, free: 5.227 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001554/0.001554, allocations: 71.91 kB / 0.8689 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6407/0.6423, allocations: 151.6 MB / 1.017 GB, free: 2.641 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Edge): time 0.001965/0.6443, allocations: 0.8214 MB / 1.018 GB, free: 1.82 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001286/0.6456, allocations: 1.144 MB / 1.019 GB, free: 0.6602 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.362e-05/0.6456, allocations: 0 / 1.019 GB, free: 0.6602 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.331e-05/0.6457, allocations: 3.938 kB / 1.019 GB, free: 0.6562 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 6.848e-05/0.6458, allocations: 7.922 kB / 1.019 GB, free: 0.6484 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004459/0.6462, allocations: 115.7 kB / 1.019 GB, free: 0.5391 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001516/0.6464, allocations: 127.8 kB / 1.019 GB, free: 424 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 9.217e-05/0.6465, allocations: 19.95 kB / 1.019 GB, free: 404 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 8.191e-05/0.6466, allocations: 43.86 kB / 1.019 GB, free: 360 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 7.156e-05/0.6466, allocations: 43.83 kB / 1.019 GB, free: 316 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.181e-05/0.6467, allocations: 12 kB / 1.019 GB, free: 304 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 6.469e-05/0.6467, allocations: 23.98 kB / 1.019 GB, free: 280 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.5e-05/0.6468, allocations: 15.97 kB / 1.019 GB, free: 264 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 6.148e-05/0.6468, allocations: 47.84 kB / 1.019 GB, free: 216 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001497/0.647, allocations: 107.7 kB / 1.019 GB, free: 108 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.647, allocations: 0 / 1.019 GB, free: 108 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.342e-06/0.647, allocations: 0 / 1.019 GB, free: 108 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 5.46e-06/0.647, allocations: 0 / 1.019 GB, free: 108 kB / 0.7637 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.0005566/0.6476, allocations: 411.2 kB / 1.02 GB, free: 15.65 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.6476, allocations: 12.03 kB / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.974e-05/0.6476, allocations: 34.73 kB / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.27e-05/0.6477, allocations: 12.84 kB / 1.02 GB, free: 15.58 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001036/0.6478, allocations: 180.2 kB / 1.02 GB, free: 15.37 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.22e-05/0.6478, allocations: 4.375 kB / 1.02 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.508e-05/0.6479, allocations: 12.38 kB / 1.02 GB, free: 15.35 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001741/0.648, allocations: 62.22 kB / 1.02 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/0.6481, allocations: 7.875 kB / 1.02 GB, free: 15.28 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.979e-06/0.6481, allocations: 0 / 1.02 GB, free: 15.28 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.618e-06/0.6481, allocations: 0 / 1.02 GB, free: 15.28 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001588/0.6482, allocations: 43.95 kB / 1.02 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004416/0.6487, allocations: 336.7 kB / 1.02 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001625/0.6489, allocations: 58.61 kB / 1.021 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.38e-05/0.649, allocations: 32.97 kB / 1.021 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.3e-05/0.649, allocations: 0 / 1.021 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002168/0.6492, allocations: 103.2 kB / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=8): time 1.293e-06/0.6492, allocations: 0 / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of matching and sorting (n=8): time 0.0003957/0.6496, allocations: 141.6 kB / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.435e-05/0.6497, allocations: 55.34 kB / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.37e-05/0.6498, allocations: 125.7 kB / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.672e-05/0.6498, allocations: 29.7 kB / 1.021 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.259e-05/0.6498, allocations: 96.12 kB / 1.021 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.133e-05/0.6499, allocations: 11.75 kB / 1.021 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.612e-05/0.6499, allocations: 37.7 kB / 1.021 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.462e-05/0.65, allocations: 330.8 kB / 1.021 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001459/0.6502, allocations: 55.95 kB / 1.021 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001584/0.6504, allocations: 84.2 kB / 1.022 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002431/0.6506, allocations: 145.9 kB / 1.022 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.6506, allocations: 0 / 1.022 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003982/0.651, allocations: 203.2 kB / 1.022 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.819e-05/0.6511, allocations: 41.83 kB / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.207e-06/0.6511, allocations: 0 / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.192e-05/0.6511, allocations: 0 / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.267e-05/0.6512, allocations: 15.92 kB / 1.022 GB, free: 13.19 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.965e-06/0.6512, allocations: 4 kB / 1.022 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001977/0.6514, allocations: 31.95 kB / 1.022 GB, free: 13.15 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.051e-05/0.6514, allocations: 12 kB / 1.022 GB, free: 13.14 MB / 0.7794 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 8.654e-05/0.6515, allocations: 126.3 kB / 1.022 GB, free: 13.01 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.399e-05/0.6515, allocations: 7.906 kB / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.309e-05/0.6516, allocations: 8.375 kB / 1.022 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.6516, allocations: 4 kB / 1.022 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.119e-06/0.6516, allocations: 0 / 1.022 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.6516, allocations: 7.922 kB / 1.022 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004006/0.652, allocations: 378.4 kB / 1.023 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.652, allocations: 0 / 1.023 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.285e-05/0.6521, allocations: 11.98 kB / 1.023 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.6521, allocations: 3.938 kB / 1.023 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.055e-05/0.6521, allocations: 3.938 kB / 1.023 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.6521, allocations: 3.938 kB / 1.023 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.6521, allocations: 0 / 1.023 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002728/0.6524, allocations: 211.4 kB / 1.023 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.811e-05/0.6524, allocations: 84.95 kB / 1.023 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.835e-05/0.6525, allocations: 4 kB / 1.023 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.278e-05/0.6526, allocations: 16.05 kB / 1.023 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.029e-05/0.6526, allocations: 7.922 kB / 1.023 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.315e-06/0.6526, allocations: 4 kB / 1.023 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.178e-05/0.6527, allocations: 91.27 kB / 1.023 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.01e-07/0.6527, allocations: 0 / 1.023 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002463/0.6529, allocations: 32 kB / 1.023 GB, free: 12.05 MB / 0.7794 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.0005486/0.6535, allocations: 0.7479 MB / 1.024 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003539/0.6538, allocations: 179.3 kB / 1.024 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.6538, allocations: 0 / 1.024 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001129/0.654, allocations: 43.91 kB / 1.024 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002611/0.6542, allocations: 15.92 kB / 1.024 GB, free: 11.03 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001773/0.656, allocations: 1.693 MB / 1.026 GB, free: 9.23 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002102/0.6562, allocations: 0.6846 MB / 1.026 GB, free: 8.52 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.068e-05/0.6563, allocations: 11.84 kB / 1.026 GB, free: 8.508 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.193e-05/0.6563, allocations: 19.44 kB / 1.026 GB, free: 8.488 MB / 0.7794 GB Notification: Performance of SimCode: time 1.523e-06/0.6563, allocations: 0 / 1.026 GB, free: 8.488 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.369/2.025, allocations: 2.382 MB / 1.029 GB, free: 6.23 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001703/2.025, allocations: 207.1 kB / 1.029 GB, free: 5.973 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.675/3.7, allocations: 0 / 1.029 GB, free: 5.973 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Edge_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Logical_Validation_Edge_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Logical_Validation_Edge.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Edge_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Validation_Edge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches