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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Edge,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Edge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Edge,fileNamePrefix="Buildings_9_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.001155/0.001155, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001274/0.001274, allocations: 197.9 kB / 16.14 MB, free: 6.719 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.381/1.381, allocations: 222.9 MB / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.442/2.442, allocations: 390.2 MB / 0.6643 GB, free: 0.6016 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001327/0.001327, allocations: 67.83 kB / 0.812 GB, free: 14.75 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6471/0.6484, allocations: 140.4 MB / 0.9491 GB, free: 9.145 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Edge): time 0.002428/0.6509, allocations: 0.8186 MB / 0.9499 GB, free: 8.512 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001555/0.6525, allocations: 1.148 MB / 0.951 GB, free: 7.594 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.246e-05/0.6526, allocations: 5.375 kB / 0.951 GB, free: 7.59 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.929e-05/0.6526, allocations: 7.875 kB / 0.951 GB, free: 7.582 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.823e-05/0.6527, allocations: 9.297 kB / 0.951 GB, free: 7.574 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004393/0.6532, allocations: 117.7 kB / 0.9511 GB, free: 7.5 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001007/0.6533, allocations: 103.9 kB / 0.9512 GB, free: 7.445 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.147e-05/0.6534, allocations: 9.5 kB / 0.9512 GB, free: 7.441 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.894e-05/0.6534, allocations: 48.52 kB / 0.9513 GB, free: 7.414 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.155e-05/0.6535, allocations: 38.02 kB / 0.9513 GB, free: 7.387 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.515e-05/0.6535, allocations: 5.906 kB / 0.9513 GB, free: 7.387 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.621e-05/0.6536, allocations: 20.73 kB / 0.9513 GB, free: 7.379 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.984e-05/0.6536, allocations: 10.02 kB / 0.9513 GB, free: 7.371 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.53e-05/0.6537, allocations: 40.86 kB / 0.9514 GB, free: 7.344 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001376/0.6538, allocations: 108.3 kB / 0.9515 GB, free: 7.262 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.6538, allocations: 0 / 0.9515 GB, free: 7.262 MB / 0.7169 GB Notification: Performance of FrontEnd: time 7.62e-07/0.6539, allocations: 0 / 0.9515 GB, free: 7.262 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.023e-06/0.6539, allocations: 1.125 kB / 0.9515 GB, free: 7.262 MB / 0.7169 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.0004508/0.6543, allocations: 411.2 kB / 0.9519 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.244e-05/0.6544, allocations: 9.656 kB / 0.9519 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.656e-05/0.6544, allocations: 44.17 kB / 0.9519 GB, free: 6.785 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.574e-05/0.6545, allocations: 9.812 kB / 0.9519 GB, free: 6.781 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.646e-05/0.6545, allocations: 171.1 kB / 0.9521 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.463e-05/0.6546, allocations: 4.438 kB / 0.9521 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.137e-05/0.6546, allocations: 10.81 kB / 0.9521 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000176/0.6548, allocations: 63.86 kB / 0.9522 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.464e-06/0.6548, allocations: 7.938 kB / 0.9522 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.157e-05/0.6548, allocations: 8.922 kB / 0.9522 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.489e-06/0.6548, allocations: 1.344 kB / 0.9522 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001679/0.655, allocations: 39.05 kB / 0.9522 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004483/0.6554, allocations: 331.6 kB / 0.9525 GB, free: 6.148 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001779/0.6556, allocations: 62.95 kB / 0.9526 GB, free: 6.102 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001012/0.6557, allocations: 33.62 kB / 0.9526 GB, free: 6.082 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.176e-05/0.6558, allocations: 0 / 0.9526 GB, free: 6.082 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002255/0.656, allocations: 95.3 kB / 0.9527 GB, free: 6 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 1.353e-06/0.656, allocations: 0 / 0.9527 GB, free: 6 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8): time 0.0004053/0.6564, allocations: 148.8 kB / 0.9529 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.406e-05/0.6564, allocations: 52.5 kB / 0.9529 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.536e-05/0.6565, allocations: 119.8 kB / 0.953 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.976e-05/0.6565, allocations: 28.14 kB / 0.9531 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.779e-05/0.6566, allocations: 100.3 kB / 0.9532 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.72e-05/0.6566, allocations: 18.38 kB / 0.9532 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.468e-05/0.6567, allocations: 41.05 kB / 0.9532 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.833e-05/0.6567, allocations: 324.9 kB / 0.9535 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001471/0.6569, allocations: 52.11 kB / 0.9536 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001455/0.657, allocations: 84.42 kB / 0.9537 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002231/0.6572, allocations: 148.5 kB / 0.9538 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.6573, allocations: 0 / 0.9538 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003821/0.6576, allocations: 212.7 kB / 0.954 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.682e-05/0.6577, allocations: 38.45 kB / 0.954 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.6577, allocations: 1.312 kB / 0.954 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.108e-05/0.6577, allocations: 1.375 kB / 0.954 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.17e-05/0.6578, allocations: 11.98 kB / 0.954 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.701e-06/0.6578, allocations: 1.938 kB / 0.954 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002021/0.658, allocations: 36.05 kB / 0.9541 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.116e-05/0.658, allocations: 10.28 kB / 0.9541 GB, free: 4.832 MB / 0.7169 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 6.532e-05/0.6581, allocations: 130.2 kB / 0.9542 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.502e-05/0.6581, allocations: 7.188 kB / 0.9542 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.434e-05/0.6582, allocations: 13.5 kB / 0.9542 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.6582, allocations: 1.031 kB / 0.9542 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.6582, allocations: 1.125 kB / 0.9542 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.6582, allocations: 4 kB / 0.9542 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003466/0.6585, allocations: 380.1 kB / 0.9546 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.6585, allocations: 0 / 0.9546 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.085e-05/0.6586, allocations: 9.172 kB / 0.9546 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.6586, allocations: 1.156 kB / 0.9546 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.576e-06/0.6586, allocations: 1.031 kB / 0.9546 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.6586, allocations: 4 kB / 0.9546 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.6586, allocations: 1.062 kB / 0.9546 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002334/0.6589, allocations: 208.2 kB / 0.9548 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.824e-05/0.6589, allocations: 86.98 kB / 0.9549 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.757e-05/0.6589, allocations: 1.875 kB / 0.9549 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.972e-05/0.659, allocations: 11.39 kB / 0.9549 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.817e-05/0.659, allocations: 20.3 kB / 0.9549 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.284e-06/0.6591, allocations: 1.281 kB / 0.9549 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.129e-05/0.6591, allocations: 96.2 kB / 0.955 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.6591, allocations: 0 / 0.955 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002611/0.6594, allocations: 20.31 kB / 0.955 GB, free: 3.926 MB / 0.7169 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.000414/0.6598, allocations: 0.75 MB / 0.9558 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003132/0.6601, allocations: 168.4 kB / 0.9559 GB, free: 3.105 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.714e-06/0.6601, allocations: 0 / 0.9559 GB, free: 3.105 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001094/0.6602, allocations: 43.31 kB / 0.956 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002603/0.6605, allocations: 22.98 kB / 0.956 GB, free: 3.07 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001608/0.6621, allocations: 1.691 MB / 0.9577 GB, free: 1.551 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001073/0.6622, allocations: 0.6924 MB / 0.9583 GB, free: 0.8438 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.834e-05/0.6623, allocations: 12.58 kB / 0.9583 GB, free: 0.8359 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.225e-05/0.6623, allocations: 18.38 kB / 0.9584 GB, free: 0.8203 MB / 0.7169 GB Notification: Performance of SimCode: time 5.31e-07/0.6623, allocations: 0 / 0.9584 GB, free: 0.8203 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0128/0.6751, allocations: 2.295 MB / 0.9606 GB, free: 15.66 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002355/0.6754, allocations: 200.6 kB / 0.9608 GB, free: 15.41 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.786/2.462, allocations: 3.938 kB / 0.9608 GB, free: 15.4 MB / 0.7325 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Edge_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Edge_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Edge.fmu > 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