Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.And.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.And,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Logical_Validation_And",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.And,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Logical_Validation_And",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.006308/0.006308, allocations: 101.2 kB / 15.73 MB, free: 5.996 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.001217/0.001218, allocations: 185.6 kB / 16.67 MB, free: 5.93 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.456/1.456, allocations: 222.9 MB / 240.4 MB, free: 4.32 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.654/2.654, allocations: 437 MB / 0.7105 GB, free: 4.945 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001564/0.001564, allocations: 63.91 kB / 1.018 GB, free: 15 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2978/0.2994, allocations: 151.6 MB / 1.166 GB, free: 7.258 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.And): time 0.002071/0.3015, allocations: 0.6697 MB / 1.167 GB, free: 6.586 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001615/0.3032, allocations: 1.183 MB / 1.168 GB, free: 5.387 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.682e-05/0.3032, allocations: 8 kB / 1.168 GB, free: 5.379 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 2.905e-05/0.3033, allocations: 3.938 kB / 1.168 GB, free: 5.375 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 8.449e-05/0.3034, allocations: 15.84 kB / 1.168 GB, free: 5.359 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.000683/0.3041, allocations: 201.5 kB / 1.168 GB, free: 5.168 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0002477/0.3043, allocations: 191.7 kB / 1.168 GB, free: 4.98 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 9.692e-05/0.3044, allocations: 11.98 kB / 1.168 GB, free: 4.969 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001273/0.3046, allocations: 71.88 kB / 1.168 GB, free: 4.898 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001337/0.3047, allocations: 55.86 kB / 1.169 GB, free: 4.844 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 3.646e-05/0.3048, allocations: 19.98 kB / 1.169 GB, free: 4.824 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 8.254e-05/0.3048, allocations: 31.92 kB / 1.169 GB, free: 4.793 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.268e-05/0.3049, allocations: 8 kB / 1.169 GB, free: 4.785 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 8.659e-05/0.305, allocations: 55.83 kB / 1.169 GB, free: 4.73 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.00023/0.3052, allocations: 151.8 kB / 1.169 GB, free: 4.582 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.3052, allocations: 4 kB / 1.169 GB, free: 4.578 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.643e-06/0.3052, allocations: 4 kB / 1.169 GB, free: 4.574 MB / 0.92 GB Notification: Performance of Transformations before backend: time 8.025e-06/0.3052, allocations: 0 / 1.169 GB, free: 4.574 MB / 0.92 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0006067/0.3059, allocations: 434.7 kB / 1.169 GB, free: 4.086 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.065e-05/0.3059, allocations: 12.03 kB / 1.169 GB, free: 4.074 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.269e-05/0.3059, allocations: 30.75 kB / 1.169 GB, free: 4.035 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.122e-05/0.306, allocations: 16.88 kB / 1.169 GB, free: 4.02 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001107/0.3061, allocations: 164.3 kB / 1.169 GB, free: 3.82 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.025e-05/0.3061, allocations: 12.38 kB / 1.169 GB, free: 3.809 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.642e-05/0.3062, allocations: 8.375 kB / 1.169 GB, free: 3.801 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001327/0.3063, allocations: 54.17 kB / 1.169 GB, free: 3.742 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.104e-05/0.3063, allocations: 3.938 kB / 1.169 GB, free: 3.738 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.261e-05/0.3064, allocations: 0 / 1.169 GB, free: 3.738 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-06/0.3064, allocations: 11.94 kB / 1.17 GB, free: 3.727 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.025e-05/0.3064, allocations: 8 kB / 1.17 GB, free: 3.719 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004805/0.3069, allocations: 364.6 kB / 1.17 GB, free: 3.312 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 8.19e-05/0.307, allocations: 30.56 kB / 1.17 GB, free: 3.273 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.11e-05/0.307, allocations: 24.8 kB / 1.17 GB, free: 3.246 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 9.388e-06/0.3071, allocations: 0 / 1.17 GB, free: 3.246 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001884/0.3073, allocations: 79.45 kB / 1.17 GB, free: 3.156 MB / 0.92 GB Notification: Performance of pre-optimization done (n=7): time 1.392e-06/0.3073, allocations: 0 / 1.17 GB, free: 3.156 MB / 0.92 GB Notification: Performance of matching and sorting (n=7): time 0.0002532/0.3075, allocations: 101.6 kB / 1.17 GB, free: 3.051 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.606e-05/0.3076, allocations: 59.34 kB / 1.17 GB, free: 2.98 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.506e-05/0.3077, allocations: 113.8 kB / 1.17 GB, free: 2.859 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 3.039e-05/0.3077, allocations: 33.7 kB / 1.17 GB, free: 2.82 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 7.263e-05/0.3078, allocations: 104.1 kB / 1.17 GB, free: 2.715 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 1.772e-05/0.3078, allocations: 11.84 kB / 1.17 GB, free: 2.703 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.555e-05/0.3079, allocations: 57.69 kB / 1.17 GB, free: 2.641 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001403/0.3081, allocations: 318.8 kB / 1.171 GB, free: 2.32 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001437/0.3082, allocations: 59.97 kB / 1.171 GB, free: 2.262 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000149/0.3084, allocations: 92.27 kB / 1.171 GB, free: 2.156 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002905/0.3087, allocations: 159.6 kB / 1.171 GB, free: 1.973 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.3087, allocations: 0 / 1.171 GB, free: 1.973 MB / 0.92 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004226/0.3091, allocations: 253.5 kB / 1.171 GB, free: 1.707 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001424/0.3093, allocations: 75.42 kB / 1.171 GB, free: 1.621 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.3093, allocations: 3.938 kB / 1.171 GB, free: 1.617 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.755e-05/0.3093, allocations: 4 kB / 1.171 GB, free: 1.613 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.157e-05/0.3093, allocations: 3.938 kB / 1.171 GB, free: 1.609 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.468e-06/0.3093, allocations: 4 kB / 1.171 GB, free: 1.605 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003557/0.3097, allocations: 55.89 kB / 1.171 GB, free: 1.551 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.02e-05/0.3097, allocations: 11.98 kB / 1.171 GB, free: 1.539 MB / 0.92 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,and1.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 2 * 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.0001457/0.3099, allocations: 127.6 kB / 1.172 GB, free: 1.406 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.898e-05/0.3099, allocations: 11.94 kB / 1.172 GB, free: 1.395 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.105e-05/0.31, allocations: 12.36 kB / 1.172 GB, free: 1.379 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.31, allocations: 0 / 1.172 GB, free: 1.379 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.31, allocations: 0 / 1.172 GB, free: 1.379 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.009e-06/0.31, allocations: 0 / 1.172 GB, free: 1.379 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001462/0.3101, allocations: 173.6 kB / 1.172 GB, free: 1.16 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.3101, allocations: 7.875 kB / 1.172 GB, free: 1.152 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.328e-05/0.3102, allocations: 11.98 kB / 1.172 GB, free: 1.141 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.355e-06/0.3102, allocations: 0 / 1.172 GB, free: 1.141 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.987e-06/0.3102, allocations: 4 kB / 1.172 GB, free: 1.137 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.3102, allocations: 0 / 1.172 GB, free: 1.137 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.3102, allocations: 0 / 1.172 GB, free: 1.137 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001638/0.3104, allocations: 113 kB / 1.172 GB, free: 1.008 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.229e-05/0.3104, allocations: 85.11 kB / 1.172 GB, free: 0.9062 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.972e-05/0.3104, allocations: 8 kB / 1.172 GB, free: 0.8984 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.05e-05/0.3105, allocations: 0 / 1.172 GB, free: 0.8984 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.06e-05/0.3105, allocations: 11.98 kB / 1.172 GB, free: 0.8867 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.235e-06/0.3105, allocations: 4 kB / 1.172 GB, free: 0.8828 MB / 0.92 GB Notification: Performance of sorting global known variables: time 5.126e-05/0.3106, allocations: 95.2 kB / 1.172 GB, free: 0.7891 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3106, allocations: 0 / 1.172 GB, free: 0.7891 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002495/0.3108, allocations: 28 kB / 1.172 GB, free: 0.7617 MB / 0.92 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 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul1.y,booPul2.y,and1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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.0004832/0.3113, allocations: 0.6479 MB / 1.173 GB, free: 88 kB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0003835/0.3117, allocations: 254.7 kB / 1.173 GB, free: 15.81 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.3117, allocations: 0 / 1.173 GB, free: 15.81 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 5.028e-05/0.3118, allocations: 28.2 kB / 1.173 GB, free: 15.79 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002514/0.3121, allocations: 19.92 kB / 1.173 GB, free: 15.77 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002055/0.3141, allocations: 1.713 MB / 1.175 GB, free: 13.94 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003757/0.3145, allocations: 0.6884 MB / 1.175 GB, free: 13.22 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.139e-05/0.3146, allocations: 8 kB / 1.175 GB, free: 13.21 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.23e-05/0.3146, allocations: 23.42 kB / 1.175 GB, free: 13.19 MB / 0.9356 GB Notification: Performance of SimCode: time 3.31e-07/0.3146, allocations: 0 / 1.175 GB, free: 13.19 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02179/0.3364, allocations: 2.876 MB / 1.178 GB, free: 10.42 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.861/8.198, allocations: 7.938 kB / 1.178 GB, free: 10.41 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.And.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.And.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.And.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.And.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.And_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Buildings_10_Buildings_Controls_OBC_CDL_Logical_Validation_And.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.And.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.And_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Validation_And.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.And.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches