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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.00787/0.00787, allocations: 99.77 kB / 15.73 MB, free: 5.98 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.002097/0.002097, allocations: 194.6 kB / 16.68 MB, free: 5.91 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.413/1.413, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.775/2.775, allocations: 482.4 MB / 0.7548 GB, free: 6.875 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001888/0.001888, allocations: 64.03 kB / 1.083 GB, free: 13.92 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2907/0.2926, allocations: 162.2 MB / 1.241 GB, free: 9.234 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Edge): time 0.002097/0.2947, allocations: 0.7363 MB / 1.242 GB, free: 8.496 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001519/0.2962, allocations: 1.152 MB / 1.243 GB, free: 7.332 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.696e-05/0.2963, allocations: 0 / 1.243 GB, free: 7.332 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.396e-05/0.2964, allocations: 3.938 kB / 1.243 GB, free: 7.328 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 6.513e-05/0.2964, allocations: 11.88 kB / 1.243 GB, free: 7.316 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005109/0.2969, allocations: 126.8 kB / 1.243 GB, free: 7.195 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001966/0.2972, allocations: 131.7 kB / 1.244 GB, free: 7.066 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 9.841e-05/0.2973, allocations: 17.38 kB / 1.244 GB, free: 7.051 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 9.634e-05/0.2974, allocations: 47.89 kB / 1.244 GB, free: 7.004 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001056/0.2975, allocations: 43.89 kB / 1.244 GB, free: 6.961 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 3.269e-05/0.2975, allocations: 12 kB / 1.244 GB, free: 6.949 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 8.306e-05/0.2976, allocations: 27.98 kB / 1.244 GB, free: 6.922 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.754e-05/0.2976, allocations: 15.92 kB / 1.244 GB, free: 6.906 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 7.581e-05/0.2977, allocations: 47.83 kB / 1.244 GB, free: 6.859 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002086/0.2979, allocations: 111.8 kB / 1.244 GB, free: 6.75 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.2979, allocations: 3.938 kB / 1.244 GB, free: 6.746 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.493e-06/0.298, allocations: 0 / 1.244 GB, free: 6.746 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.131e-06/0.298, allocations: 0 / 1.244 GB, free: 6.746 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.0006419/0.2986, allocations: 412.9 kB / 1.244 GB, free: 6.285 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.251e-05/0.2987, allocations: 12.03 kB / 1.244 GB, free: 6.273 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.765e-05/0.2987, allocations: 38.73 kB / 1.244 GB, free: 6.227 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.564e-05/0.2988, allocations: 8.891 kB / 1.244 GB, free: 6.219 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001348/0.2989, allocations: 172.3 kB / 1.245 GB, free: 6.012 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.626e-05/0.2989, allocations: 4.375 kB / 1.245 GB, free: 6.008 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.479e-05/0.2989, allocations: 12.38 kB / 1.245 GB, free: 5.996 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002003/0.2992, allocations: 62.2 kB / 1.245 GB, free: 5.93 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.986e-06/0.2992, allocations: 3.938 kB / 1.245 GB, free: 5.926 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.813e-05/0.2992, allocations: 12 kB / 1.245 GB, free: 5.914 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.522e-06/0.2992, allocations: 0 / 1.245 GB, free: 5.914 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001953/0.2994, allocations: 43.88 kB / 1.245 GB, free: 5.871 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005038/0.2999, allocations: 336.6 kB / 1.245 GB, free: 5.492 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000192/0.3001, allocations: 66.55 kB / 1.245 GB, free: 5.418 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001128/0.3002, allocations: 28.97 kB / 1.245 GB, free: 5.387 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.129e-05/0.3003, allocations: 0 / 1.245 GB, free: 5.387 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002334/0.3005, allocations: 87.36 kB / 1.245 GB, free: 5.289 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=8): time 1.262e-06/0.3005, allocations: 0 / 1.245 GB, free: 5.289 MB / 0.9669 GB Notification: Performance of matching and sorting (n=8): time 0.0004492/0.301, allocations: 153.8 kB / 1.245 GB, free: 5.133 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.531e-05/0.301, allocations: 55.41 kB / 1.245 GB, free: 5.066 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.993e-05/0.3011, allocations: 113.8 kB / 1.245 GB, free: 4.945 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.679e-05/0.3012, allocations: 29.7 kB / 1.245 GB, free: 4.91 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.344e-05/0.3012, allocations: 92.12 kB / 1.246 GB, free: 4.816 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.989e-05/0.3013, allocations: 15.86 kB / 1.246 GB, free: 4.801 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.824e-05/0.3013, allocations: 41.7 kB / 1.246 GB, free: 4.754 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001327/0.3015, allocations: 330.7 kB / 1.246 GB, free: 4.422 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001684/0.3017, allocations: 47.97 kB / 1.246 GB, free: 4.375 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001835/0.3018, allocations: 84.69 kB / 1.246 GB, free: 4.277 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003098/0.3022, allocations: 145.9 kB / 1.246 GB, free: 4.113 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.3022, allocations: 0 / 1.246 GB, free: 4.113 MB / 0.9669 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004753/0.3027, allocations: 219.2 kB / 1.246 GB, free: 3.887 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 4.05e-05/0.3027, allocations: 37.7 kB / 1.246 GB, free: 3.844 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.3027, allocations: 0 / 1.246 GB, free: 3.844 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.308e-05/0.3027, allocations: 4 kB / 1.246 GB, free: 3.84 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.024e-05/0.3028, allocations: 11.98 kB / 1.246 GB, free: 3.828 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.323e-06/0.3028, allocations: 0 / 1.246 GB, free: 3.828 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000212/0.3031, allocations: 39.83 kB / 1.246 GB, free: 3.789 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.27e-05/0.3031, allocations: 12.06 kB / 1.247 GB, free: 3.777 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.0001098/0.3032, allocations: 131.8 kB / 1.247 GB, free: 3.641 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.571e-05/0.3032, allocations: 7.938 kB / 1.247 GB, free: 3.633 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.166e-05/0.3033, allocations: 12.38 kB / 1.247 GB, free: 3.617 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.3033, allocations: 0 / 1.247 GB, free: 3.617 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.3033, allocations: 0 / 1.247 GB, free: 3.617 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.3033, allocations: 0 / 1.247 GB, free: 3.617 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004993/0.3038, allocations: 374.4 kB / 1.247 GB, free: 3.195 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.3038, allocations: 4 kB / 1.247 GB, free: 3.191 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.673e-05/0.3039, allocations: 7.984 kB / 1.247 GB, free: 3.184 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.3039, allocations: 0 / 1.247 GB, free: 3.184 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.386e-06/0.3039, allocations: 0 / 1.247 GB, free: 3.184 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.5e-06/0.3039, allocations: 8.062 kB / 1.247 GB, free: 3.176 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.3039, allocations: 0 / 1.247 GB, free: 3.176 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003248/0.3042, allocations: 219.3 kB / 1.247 GB, free: 2.945 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.662e-05/0.3043, allocations: 81.06 kB / 1.247 GB, free: 2.848 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.642e-05/0.3043, allocations: 4 kB / 1.247 GB, free: 2.844 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.827e-05/0.3044, allocations: 7.984 kB / 1.247 GB, free: 2.836 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.585e-05/0.3045, allocations: 15.92 kB / 1.247 GB, free: 2.82 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.546e-06/0.3045, allocations: 0 / 1.247 GB, free: 2.82 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.902e-05/0.3045, allocations: 99.25 kB / 1.247 GB, free: 2.723 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.71e-07/0.3045, allocations: 0 / 1.247 GB, free: 2.723 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003003/0.3048, allocations: 27.94 kB / 1.247 GB, free: 2.695 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.0006508/0.3055, allocations: 0.7398 MB / 1.248 GB, free: 1.93 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0003997/0.3059, allocations: 183.2 kB / 1.248 GB, free: 1.738 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.3059, allocations: 0 / 1.248 GB, free: 1.738 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001301/0.3061, allocations: 39.97 kB / 1.248 GB, free: 1.699 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002801/0.3063, allocations: 20.31 kB / 1.248 GB, free: 1.68 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002121/0.3085, allocations: 1.687 MB / 1.25 GB, free: 15.88 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003001/0.3088, allocations: 0.6885 MB / 1.251 GB, free: 15.16 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.217e-05/0.3088, allocations: 4 kB / 1.251 GB, free: 15.16 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.842e-05/0.3089, allocations: 23.42 kB / 1.251 GB, free: 15.14 MB / 0.9825 GB Notification: Performance of SimCode: time 2.1e-07/0.3089, allocations: 0 / 1.251 GB, free: 15.14 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02278/0.3317, allocations: 2.551 MB / 1.253 GB, free: 12.69 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.913/8.245, allocations: 9.062 kB / 1.253 GB, free: 12.68 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge_res.csv --start-time 0 --stop-time 5 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 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.csv","/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