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.00511/0.00511, allocations: 102.9 kB / 15.73 MB, free: 6.488 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.001228/0.001228, allocations: 195.2 kB / 16.68 MB, free: 6.375 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.394/1.394, allocations: 222.9 MB / 240.4 MB, free: 4.312 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.459/2.459, allocations: 390.3 MB / 0.6648 GB, free: 164 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001385/0.001385, allocations: 68.25 kB / 0.9504 GB, free: 6.098 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3209/0.3223, allocations: 140.4 MB / 1.088 GB, free: 2.078 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Edge): time 0.002261/0.3246, allocations: 0.7367 MB / 1.088 GB, free: 1.34 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001975/0.3267, allocations: 1.149 MB / 1.089 GB, free: 180 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.102e-05/0.3268, allocations: 8 kB / 1.089 GB, free: 172 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 4.337e-05/0.3269, allocations: 3.938 kB / 1.089 GB, free: 168 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001043/0.327, allocations: 11.81 kB / 1.089 GB, free: 156 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006936/0.3277, allocations: 138 kB / 1.089 GB, free: 20 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0002955/0.328, allocations: 127.8 kB / 1.09 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001256/0.3281, allocations: 12 kB / 1.09 GB, free: 15.88 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001431/0.3283, allocations: 47.91 kB / 1.09 GB, free: 15.84 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001348/0.3284, allocations: 51.73 kB / 1.09 GB, free: 15.79 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.293e-05/0.3284, allocations: 12 kB / 1.09 GB, free: 15.77 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001044/0.3286, allocations: 23.98 kB / 1.09 GB, free: 15.75 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.73e-05/0.3286, allocations: 8 kB / 1.09 GB, free: 15.74 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 8.792e-05/0.3287, allocations: 47.83 kB / 1.09 GB, free: 15.7 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002272/0.3289, allocations: 119.6 kB / 1.09 GB, free: 15.58 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.3289, allocations: 0 / 1.09 GB, free: 15.58 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.024e-06/0.3289, allocations: 4 kB / 1.09 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.724e-06/0.329, allocations: 0 / 1.09 GB, free: 15.57 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.0007591/0.3297, allocations: 412.6 kB / 1.09 GB, free: 15.12 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.823e-05/0.3298, allocations: 8.031 kB / 1.09 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.391e-05/0.3298, allocations: 34.75 kB / 1.09 GB, free: 15.07 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.2e-05/0.3299, allocations: 8.938 kB / 1.09 GB, free: 15.06 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001883/0.3301, allocations: 172.3 kB / 1.091 GB, free: 14.85 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.75e-05/0.3301, allocations: 4.359 kB / 1.091 GB, free: 14.85 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.909e-05/0.3302, allocations: 8.375 kB / 1.091 GB, free: 14.84 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002305/0.3304, allocations: 66.17 kB / 1.091 GB, free: 14.77 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.412e-05/0.3305, allocations: 3.938 kB / 1.091 GB, free: 14.77 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.822e-05/0.3305, allocations: 7.969 kB / 1.091 GB, free: 14.76 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/0.3305, allocations: 3.938 kB / 1.091 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001978/0.3307, allocations: 43.97 kB / 1.091 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000542/0.3312, allocations: 336.6 kB / 1.091 GB, free: 14.33 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001927/0.3315, allocations: 58.55 kB / 1.091 GB, free: 14.27 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001156/0.3316, allocations: 40.95 kB / 1.091 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 9.097e-06/0.3316, allocations: 4 kB / 1.091 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002659/0.3319, allocations: 83.36 kB / 1.091 GB, free: 14.12 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=8): time 1.503e-06/0.3319, allocations: 0 / 1.091 GB, free: 14.12 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8): time 0.0004664/0.3324, allocations: 137.5 kB / 1.091 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.684e-05/0.3324, allocations: 63.47 kB / 1.091 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.867e-05/0.3325, allocations: 117.8 kB / 1.091 GB, free: 13.79 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.995e-05/0.3326, allocations: 33.7 kB / 1.092 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.583e-05/0.3326, allocations: 88.14 kB / 1.092 GB, free: 13.66 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.368e-05/0.3326, allocations: 15.81 kB / 1.092 GB, free: 13.64 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.457e-05/0.3327, allocations: 41.69 kB / 1.092 GB, free: 13.59 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.000126/0.3329, allocations: 318.8 kB / 1.092 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001635/0.333, allocations: 55.95 kB / 1.092 GB, free: 13.22 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001758/0.3332, allocations: 84.25 kB / 1.092 GB, free: 13.12 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002859/0.3335, allocations: 141.9 kB / 1.092 GB, free: 12.96 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.3335, allocations: 0 / 1.092 GB, free: 12.96 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004637/0.334, allocations: 207.1 kB / 1.092 GB, free: 12.75 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 4.568e-05/0.334, allocations: 33.7 kB / 1.092 GB, free: 12.71 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.604e-06/0.3341, allocations: 7.922 kB / 1.092 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.474e-05/0.3341, allocations: 8.125 kB / 1.092 GB, free: 12.69 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000102/0.3342, allocations: 8 kB / 1.092 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.889e-06/0.3342, allocations: 7.922 kB / 1.092 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000241/0.3344, allocations: 43.88 kB / 1.093 GB, free: 12.63 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.678e-05/0.3345, allocations: 11.98 kB / 1.093 GB, free: 12.62 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.0001089/0.3346, allocations: 127.3 kB / 1.093 GB, free: 12.49 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.598e-05/0.3346, allocations: 8 kB / 1.093 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.978e-05/0.3347, allocations: 8.375 kB / 1.093 GB, free: 12.47 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.3347, allocations: 0 / 1.093 GB, free: 12.47 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.67e-06/0.3347, allocations: 0 / 1.093 GB, free: 12.47 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.3347, allocations: 0 / 1.093 GB, free: 12.47 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005291/0.3352, allocations: 386.3 kB / 1.093 GB, free: 12.04 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.3352, allocations: 0 / 1.093 GB, free: 12.04 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.739e-05/0.3353, allocations: 11.98 kB / 1.093 GB, free: 12.03 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.3353, allocations: 0 / 1.093 GB, free: 12.03 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.188e-05/0.3353, allocations: 4 kB / 1.093 GB, free: 12.02 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.422e-06/0.3353, allocations: 0 / 1.093 GB, free: 12.02 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.3353, allocations: 0 / 1.093 GB, free: 12.02 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003112/0.3356, allocations: 215.6 kB / 1.093 GB, free: 11.8 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.725e-05/0.3357, allocations: 81.11 kB / 1.093 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.016e-05/0.3357, allocations: 11.98 kB / 1.093 GB, free: 11.69 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.266e-05/0.3358, allocations: 4 kB / 1.093 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.625e-05/0.3359, allocations: 11.92 kB / 1.093 GB, free: 11.67 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.783e-06/0.3359, allocations: 0 / 1.093 GB, free: 11.67 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.169e-05/0.3359, allocations: 99.27 kB / 1.093 GB, free: 11.57 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.336, allocations: 0 / 1.093 GB, free: 11.57 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002649/0.3362, allocations: 24 kB / 1.093 GB, free: 11.55 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.000655/0.3369, allocations: 0.7436 MB / 1.094 GB, free: 10.78 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003963/0.3373, allocations: 179.3 kB / 1.094 GB, free: 10.59 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.3373, allocations: 256 / 1.094 GB, free: 10.59 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001241/0.3374, allocations: 43.97 kB / 1.094 GB, free: 10.55 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002916/0.3377, allocations: 15.92 kB / 1.094 GB, free: 10.54 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002162/0.3399, allocations: 1.702 MB / 1.096 GB, free: 8.73 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003929/0.3403, allocations: 0.6846 MB / 1.097 GB, free: 8.02 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.666e-05/0.3404, allocations: 11.98 kB / 1.097 GB, free: 8.008 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.863e-05/0.3404, allocations: 19.44 kB / 1.097 GB, free: 7.988 MB / 0.8575 GB Notification: Performance of SimCode: time 5.31e-07/0.3404, allocations: 0 / 1.097 GB, free: 7.988 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01968/0.3601, allocations: 2.552 MB / 1.099 GB, free: 5.531 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.931/8.291, allocations: 3.094 kB / 1.099 GB, free: 5.531 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