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: "" <> 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.005923/0.005923, allocations: 99.34 kB / 15.73 MB, free: 6.059 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.001298/0.001298, allocations: 195.1 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.382/1.382, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.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.438/2.438, allocations: 390.2 MB / 0.6648 GB, free: 224 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002227/0.002227, allocations: 67.98 kB / 0.9504 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.322/0.3243, allocations: 140.4 MB / 1.087 GB, free: 2.023 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Edge): time 0.002115/0.3265, allocations: 0.7506 MB / 1.088 GB, free: 1.273 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001575/0.3281, allocations: 1.153 MB / 1.089 GB, free: 108 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.537e-05/0.3281, allocations: 0 / 1.089 GB, free: 108 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.231e-05/0.3282, allocations: 7.875 kB / 1.089 GB, free: 100 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 7.864e-05/0.3283, allocations: 7.875 kB / 1.089 GB, free: 92 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005847/0.3289, allocations: 131.2 kB / 1.089 GB, free: 15.96 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001963/0.3291, allocations: 127.7 kB / 1.09 GB, free: 15.84 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001016/0.3292, allocations: 15.98 kB / 1.09 GB, free: 15.82 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001123/0.3293, allocations: 47.91 kB / 1.09 GB, free: 15.78 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001257/0.3294, allocations: 47.81 kB / 1.09 GB, free: 15.73 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.307e-05/0.3295, allocations: 8 kB / 1.09 GB, free: 15.72 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.205e-05/0.3295, allocations: 31.98 kB / 1.09 GB, free: 15.69 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.584e-05/0.3296, allocations: 7.984 kB / 1.09 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 7.947e-05/0.3297, allocations: 43.83 kB / 1.09 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003005/0.33, allocations: 115.8 kB / 1.09 GB, free: 15.53 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.33, allocations: 0 / 1.09 GB, free: 15.53 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.182e-06/0.33, allocations: 0 / 1.09 GB, free: 15.53 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.061e-06/0.33, allocations: 0 / 1.09 GB, free: 15.53 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.0006066/0.3306, allocations: 412.9 kB / 1.09 GB, free: 15.07 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.706e-05/0.3307, allocations: 8.031 kB / 1.09 GB, free: 15.06 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.404e-05/0.3307, allocations: 42.73 kB / 1.09 GB, free: 15.01 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.753e-05/0.3308, allocations: 12.89 kB / 1.09 GB, free: 15 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001206/0.3309, allocations: 164.4 kB / 1.091 GB, free: 14.8 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.707e-05/0.3309, allocations: 4.375 kB / 1.091 GB, free: 14.79 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.618e-05/0.3309, allocations: 4.375 kB / 1.091 GB, free: 14.79 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000191/0.3311, allocations: 70.16 kB / 1.091 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/0.3311, allocations: 3.938 kB / 1.091 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.759e-06/0.3312, allocations: 3.938 kB / 1.091 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.847e-06/0.3312, allocations: 0 / 1.091 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001881/0.3314, allocations: 47.95 kB / 1.091 GB, free: 14.66 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006061/0.332, allocations: 340.6 kB / 1.091 GB, free: 14.28 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001887/0.3322, allocations: 58.55 kB / 1.091 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001121/0.3323, allocations: 36.97 kB / 1.091 GB, free: 14.17 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.131e-05/0.3323, allocations: 0 / 1.091 GB, free: 14.17 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003163/0.3326, allocations: 83.36 kB / 1.091 GB, free: 14.08 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=8): time 1.432e-06/0.3327, allocations: 0 / 1.091 GB, free: 14.08 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8): time 0.0004622/0.3331, allocations: 157.5 kB / 1.091 GB, free: 13.92 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.488e-05/0.3332, allocations: 51.41 kB / 1.091 GB, free: 13.86 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.751e-05/0.3333, allocations: 125.7 kB / 1.091 GB, free: 13.72 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.844e-05/0.3333, allocations: 29.7 kB / 1.092 GB, free: 13.69 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 7.102e-05/0.3334, allocations: 96.08 kB / 1.092 GB, free: 13.59 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.457e-05/0.3334, allocations: 15.91 kB / 1.092 GB, free: 13.57 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.003e-05/0.3335, allocations: 37.7 kB / 1.092 GB, free: 13.53 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001213/0.3336, allocations: 322.8 kB / 1.092 GB, free: 13.21 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001739/0.3338, allocations: 51.97 kB / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001937/0.334, allocations: 84.25 kB / 1.092 GB, free: 13.06 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003472/0.3344, allocations: 145.9 kB / 1.092 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.3344, allocations: 4 kB / 1.092 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004597/0.3348, allocations: 211.1 kB / 1.092 GB, free: 12.67 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.776e-05/0.3349, allocations: 29.7 kB / 1.092 GB, free: 12.64 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.63e-06/0.3349, allocations: 8.125 kB / 1.092 GB, free: 12.63 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.373e-05/0.3349, allocations: 0 / 1.092 GB, free: 12.63 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.746e-05/0.335, allocations: 11.98 kB / 1.092 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.504e-06/0.335, allocations: 7.938 kB / 1.092 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002234/0.3353, allocations: 43.84 kB / 1.093 GB, free: 12.57 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.008e-05/0.3353, allocations: 7.938 kB / 1.093 GB, free: 12.56 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 0.0001075/0.3354, allocations: 125.8 kB / 1.093 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.864e-05/0.3354, allocations: 11.97 kB / 1.093 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.68e-05/0.3355, allocations: 8.375 kB / 1.093 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.3355, allocations: 4 kB / 1.093 GB, free: 12.4 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.3355, allocations: 0 / 1.093 GB, free: 12.4 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.3355, allocations: 0 / 1.093 GB, free: 12.4 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004983/0.336, allocations: 382.4 kB / 1.093 GB, free: 11.97 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.336, allocations: 0 / 1.093 GB, free: 11.97 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.824e-05/0.3361, allocations: 15.98 kB / 1.093 GB, free: 11.96 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.945e-06/0.3361, allocations: 0 / 1.093 GB, free: 11.96 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.997e-06/0.3361, allocations: 0 / 1.093 GB, free: 11.96 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.3361, allocations: 0 / 1.093 GB, free: 11.96 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.3361, allocations: 0 / 1.093 GB, free: 11.96 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003126/0.3364, allocations: 215.3 kB / 1.093 GB, free: 11.73 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.899e-05/0.3365, allocations: 81.11 kB / 1.093 GB, free: 11.63 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.004e-05/0.3365, allocations: 4 kB / 1.093 GB, free: 11.63 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.685e-05/0.3366, allocations: 7.984 kB / 1.093 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.262e-05/0.3366, allocations: 11.92 kB / 1.093 GB, free: 11.61 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.255e-06/0.3367, allocations: 4 kB / 1.093 GB, free: 11.61 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.831e-05/0.3367, allocations: 95.27 kB / 1.093 GB, free: 11.51 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.41e-07/0.3367, allocations: 0 / 1.093 GB, free: 11.51 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002692/0.337, allocations: 27.89 kB / 1.093 GB, free: 11.48 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.0006658/0.3377, allocations: 0.7436 MB / 1.094 GB, free: 10.71 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004023/0.3381, allocations: 176 kB / 1.094 GB, free: 10.53 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.3381, allocations: 4.062 kB / 1.094 GB, free: 10.53 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001231/0.3382, allocations: 43.95 kB / 1.094 GB, free: 10.48 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002787/0.3385, allocations: 20.06 kB / 1.094 GB, free: 10.46 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002199/0.3407, allocations: 1.691 MB / 1.096 GB, free: 8.668 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002809/0.341, allocations: 0.6924 MB / 1.097 GB, free: 7.949 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.433e-05/0.3411, allocations: 4 kB / 1.097 GB, free: 7.945 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.55e-05/0.3411, allocations: 23.42 kB / 1.097 GB, free: 7.922 MB / 0.8575 GB Notification: Performance of SimCode: time 2.21e-07/0.3411, allocations: 0 / 1.097 GB, free: 7.922 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02085/0.362, allocations: 2.54 MB / 1.099 GB, free: 5.477 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.823/8.185, allocations: 5.938 kB / 1.099 GB, free: 5.473 MB / 0.8575 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 & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Edge_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 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.csv","/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