Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.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.Xor,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Xor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Xor,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Xor",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.007279/0.007279, allocations: 96.39 kB / 15.73 MB, free: 6.484 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.00177/0.001769, allocations: 192.3 kB / 16.67 MB, free: 6.391 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.385/1.385, allocations: 222.9 MB / 240.4 MB, free: 4.336 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.508/2.508, allocations: 390.2 MB / 0.6648 GB, free: 220 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001264/0.001264, allocations: 72.47 kB / 0.9504 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2892/0.2905, allocations: 140.4 MB / 1.087 GB, free: 2.008 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Xor): time 0.001794/0.2924, allocations: 0.6535 MB / 1.088 GB, free: 1.355 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001467/0.2939, allocations: 1.188 MB / 1.089 GB, free: 156 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.057e-05/0.2939, allocations: 4 kB / 1.089 GB, free: 152 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 2.939e-05/0.294, allocations: 0 / 1.089 GB, free: 152 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 8.888e-05/0.2941, allocations: 15.88 kB / 1.089 GB, free: 136 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007032/0.2948, allocations: 217.3 kB / 1.09 GB, free: 15.93 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002353/0.295, allocations: 183.7 kB / 1.09 GB, free: 15.75 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 9.221e-05/0.2951, allocations: 15.98 kB / 1.09 GB, free: 15.73 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001123/0.2953, allocations: 75.81 kB / 1.09 GB, free: 15.66 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000128/0.2954, allocations: 59.8 kB / 1.09 GB, free: 15.6 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.203e-05/0.2954, allocations: 16 kB / 1.09 GB, free: 15.58 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 8.241e-05/0.2955, allocations: 27.98 kB / 1.09 GB, free: 15.55 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.571e-05/0.2955, allocations: 19.91 kB / 1.09 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 7.892e-05/0.2956, allocations: 47.91 kB / 1.09 GB, free: 15.49 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002189/0.2959, allocations: 155.8 kB / 1.09 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.2959, allocations: 4 kB / 1.09 GB, free: 15.33 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.183e-06/0.2959, allocations: 0 / 1.09 GB, free: 15.33 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.45e-06/0.2959, allocations: 4 kB / 1.09 GB, free: 15.33 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005214/0.2964, allocations: 430.7 kB / 1.091 GB, free: 14.84 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.845e-05/0.2965, allocations: 12.03 kB / 1.091 GB, free: 14.83 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.962e-05/0.2965, allocations: 30.75 kB / 1.091 GB, free: 14.79 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.006e-05/0.2966, allocations: 16.89 kB / 1.091 GB, free: 14.78 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001152/0.2967, allocations: 180.2 kB / 1.091 GB, free: 14.56 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.472e-05/0.2967, allocations: 8.375 kB / 1.091 GB, free: 14.55 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.459e-05/0.2967, allocations: 8.375 kB / 1.091 GB, free: 14.55 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001132/0.2969, allocations: 46.25 kB / 1.091 GB, free: 14.5 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.938e-06/0.2969, allocations: 7.938 kB / 1.091 GB, free: 14.49 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.124e-05/0.2969, allocations: 3.984 kB / 1.091 GB, free: 14.48 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.558e-06/0.2969, allocations: 4 kB / 1.091 GB, free: 14.48 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.342e-05/0.297, allocations: 12 kB / 1.091 GB, free: 14.47 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004651/0.2974, allocations: 348.8 kB / 1.091 GB, free: 14.08 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 8.442e-05/0.2975, allocations: 42.5 kB / 1.091 GB, free: 14.03 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.981e-05/0.2976, allocations: 12.86 kB / 1.091 GB, free: 14.01 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 6.873e-06/0.2976, allocations: 4 kB / 1.091 GB, free: 14.01 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001781/0.2978, allocations: 95.36 kB / 1.091 GB, free: 13.9 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.533e-06/0.2978, allocations: 0 / 1.091 GB, free: 13.9 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0002479/0.298, allocations: 105.6 kB / 1.091 GB, free: 13.79 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.967e-05/0.2981, allocations: 51.41 kB / 1.091 GB, free: 13.73 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.394e-05/0.2982, allocations: 125.7 kB / 1.092 GB, free: 13.6 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.927e-05/0.2982, allocations: 37.69 kB / 1.092 GB, free: 13.55 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.386e-05/0.2983, allocations: 92.08 kB / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.03e-05/0.2983, allocations: 19.83 kB / 1.092 GB, free: 13.44 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.458e-05/0.2984, allocations: 53.69 kB / 1.092 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001331/0.2986, allocations: 326.8 kB / 1.092 GB, free: 13.05 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001354/0.2987, allocations: 55.97 kB / 1.092 GB, free: 13 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000148/0.2989, allocations: 96.19 kB / 1.092 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001753/0.299, allocations: 155.6 kB / 1.092 GB, free: 12.71 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.185e-06/0.299, allocations: 0 / 1.092 GB, free: 12.71 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004078/0.2995, allocations: 265 kB / 1.093 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 5.619e-05/0.2995, allocations: 71.39 kB / 1.093 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.234e-06/0.2995, allocations: 4 kB / 1.093 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.262e-05/0.2996, allocations: 0 / 1.093 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.243e-05/0.2996, allocations: 4 kB / 1.093 GB, free: 12.34 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.194e-06/0.2996, allocations: 3.984 kB / 1.093 GB, free: 12.34 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003425/0.2999, allocations: 51.94 kB / 1.093 GB, free: 12.29 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.002e-05/0.3, allocations: 8 kB / 1.093 GB, free: 12.28 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: 9 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,xor1.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.0001109/0.3001, allocations: 133.7 kB / 1.093 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.924e-05/0.3001, allocations: 7.953 kB / 1.093 GB, free: 12.13 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.272e-05/0.3002, allocations: 8.375 kB / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.3002, allocations: 4.469 kB / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.3002, allocations: 0 / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.3002, allocations: 0 / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001352/0.3003, allocations: 177.6 kB / 1.093 GB, free: 11.9 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.3003, allocations: 4.062 kB / 1.093 GB, free: 11.89 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.488e-06/0.3004, allocations: 3.938 kB / 1.093 GB, free: 11.89 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.3004, allocations: 4 kB / 1.093 GB, free: 11.89 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.414e-05/0.3004, allocations: 8 kB / 1.093 GB, free: 11.88 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.3004, allocations: 0 / 1.093 GB, free: 11.88 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.3004, allocations: 0 / 1.093 GB, free: 11.88 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001617/0.3006, allocations: 120.9 kB / 1.093 GB, free: 11.74 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.152e-05/0.3006, allocations: 85 kB / 1.093 GB, free: 11.64 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.014e-05/0.3006, allocations: 7.984 kB / 1.093 GB, free: 11.63 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.149e-05/0.3007, allocations: 0 / 1.093 GB, free: 11.63 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.103e-05/0.3007, allocations: 12 kB / 1.093 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.056e-06/0.3007, allocations: 3.984 kB / 1.093 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.801e-05/0.3008, allocations: 91.22 kB / 1.093 GB, free: 11.53 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3008, allocations: 0 / 1.093 GB, free: 11.53 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002518/0.301, allocations: 28 kB / 1.093 GB, free: 11.5 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 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul1.y,booPul2.y,xor1.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.0004756/0.3015, allocations: 0.663 MB / 1.094 GB, free: 10.81 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003397/0.3019, allocations: 242.7 kB / 1.094 GB, free: 10.55 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.3019, allocations: 0 / 1.094 GB, free: 10.55 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 5.743e-05/0.302, allocations: 31.97 kB / 1.094 GB, free: 10.52 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002383/0.3022, allocations: 17.7 kB / 1.094 GB, free: 10.5 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001868/0.3041, allocations: 1.715 MB / 1.096 GB, free: 8.672 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000227/0.3043, allocations: 0.6846 MB / 1.097 GB, free: 7.961 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.51e-05/0.3044, allocations: 11.94 kB / 1.097 GB, free: 7.949 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.984e-05/0.3044, allocations: 19.44 kB / 1.097 GB, free: 7.93 MB / 0.8575 GB Notification: Performance of SimCode: time 2.2e-07/0.3044, allocations: 0 / 1.097 GB, free: 7.93 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0214/0.3258, allocations: 2.891 MB / 1.1 GB, free: 5.137 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.738/8.064, allocations: 7.688 kB / 1.1 GB, free: 5.129 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Xor_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_Xor.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Xor_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Validation_Xor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches