Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.Xor,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Logical_Validation_Xor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Xor,fileNamePrefix="Buildings_10_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.009313/0.009313, allocations: 100.8 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.001969/0.001969, allocations: 197.5 kB / 16.68 MB, free: 5.969 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.525/1.525, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.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.536/2.536, allocations: 437 MB / 0.7105 GB, free: 4.414 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001599/0.001599, allocations: 67.84 kB / 1.018 GB, free: 9.902 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9779/0.9795, allocations: 151.6 MB / 1.166 GB, free: 3.793 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Xor): time 0.002043/0.9816, allocations: 0.6679 MB / 1.167 GB, free: 3.129 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001813/0.9834, allocations: 1.181 MB / 1.168 GB, free: 1.934 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.514e-05/0.9835, allocations: 0 / 1.168 GB, free: 1.934 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 4.474e-05/0.9836, allocations: 3.938 kB / 1.168 GB, free: 1.93 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 9.493e-05/0.9837, allocations: 19.84 kB / 1.168 GB, free: 1.91 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008535/0.9846, allocations: 218 kB / 1.168 GB, free: 1.703 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0002961/0.9849, allocations: 183.7 kB / 1.168 GB, free: 1.523 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001133/0.985, allocations: 15.97 kB / 1.168 GB, free: 1.508 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001302/0.9851, allocations: 63.89 kB / 1.168 GB, free: 1.445 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001477/0.9853, allocations: 63.84 kB / 1.169 GB, free: 1.383 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 5.141e-05/0.9854, allocations: 19.94 kB / 1.169 GB, free: 1.363 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000103/0.9855, allocations: 31.98 kB / 1.169 GB, free: 1.332 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 2.792e-05/0.9855, allocations: 15.92 kB / 1.169 GB, free: 1.316 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 9.426e-05/0.9856, allocations: 63.81 kB / 1.169 GB, free: 1.254 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002448/0.9858, allocations: 146.3 kB / 1.169 GB, free: 1.113 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.9859, allocations: 4 kB / 1.169 GB, free: 1.109 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.633e-06/0.9859, allocations: 0 / 1.169 GB, free: 1.109 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 6.903e-06/0.9859, allocations: 0 / 1.169 GB, free: 1.109 MB / 0.8887 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.0006039/0.9865, allocations: 439.6 kB / 1.169 GB, free: 0.6172 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 5.034e-05/0.9865, allocations: 12.92 kB / 1.169 GB, free: 0.6055 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.965e-05/0.9866, allocations: 30.75 kB / 1.169 GB, free: 0.5664 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.907e-05/0.9867, allocations: 16.89 kB / 1.169 GB, free: 0.5508 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001344/0.9868, allocations: 168.3 kB / 1.169 GB, free: 356 kB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.019e-05/0.9868, allocations: 12.31 kB / 1.169 GB, free: 344 kB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.524e-05/0.9869, allocations: 12.38 kB / 1.169 GB, free: 332 kB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001365/0.987, allocations: 46.23 kB / 1.17 GB, free: 280 kB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.22e-05/0.987, allocations: 3.938 kB / 1.17 GB, free: 276 kB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.918e-06/0.987, allocations: 0 / 1.17 GB, free: 276 kB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.842e-06/0.9871, allocations: 7.984 kB / 1.17 GB, free: 268 kB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.556e-05/0.9871, allocations: 12 kB / 1.17 GB, free: 256 kB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005987/0.9877, allocations: 356.7 kB / 1.17 GB, free: 15.85 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 9.11e-05/0.9878, allocations: 42.5 kB / 1.17 GB, free: 15.8 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.305e-05/0.9879, allocations: 16.86 kB / 1.17 GB, free: 15.78 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 9.708e-06/0.9879, allocations: 4.078 kB / 1.17 GB, free: 15.78 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001436/0.988, allocations: 75.38 kB / 1.17 GB, free: 15.69 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=7): time 1.893e-06/0.988, allocations: 4 kB / 1.17 GB, free: 15.69 MB / 0.9044 GB Notification: Performance of matching and sorting (n=7): time 0.0002722/0.9883, allocations: 109.5 kB / 1.17 GB, free: 15.57 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.05e-05/0.9884, allocations: 51.41 kB / 1.17 GB, free: 15.51 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001056/0.9885, allocations: 121.8 kB / 1.17 GB, free: 15.38 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 3.251e-05/0.9885, allocations: 33.7 kB / 1.17 GB, free: 15.34 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 6.898e-05/0.9886, allocations: 92.09 kB / 1.17 GB, free: 15.25 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 1.511e-05/0.9886, allocations: 12.22 kB / 1.17 GB, free: 15.24 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.865e-05/0.9887, allocations: 49.69 kB / 1.17 GB, free: 15.18 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001238/0.9888, allocations: 330.8 kB / 1.171 GB, free: 14.85 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001338/0.989, allocations: 55.97 kB / 1.171 GB, free: 14.8 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001515/0.9891, allocations: 100.7 kB / 1.171 GB, free: 14.68 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002045/0.9893, allocations: 163.6 kB / 1.171 GB, free: 14.5 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/0.9894, allocations: 0 / 1.171 GB, free: 14.5 MB / 0.9044 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004277/0.9898, allocations: 260.9 kB / 1.171 GB, free: 14.22 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 6.209e-05/0.9899, allocations: 67.39 kB / 1.171 GB, free: 14.14 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/0.9899, allocations: 4 kB / 1.171 GB, free: 14.14 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.727e-05/0.9899, allocations: 0 / 1.171 GB, free: 14.14 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.92e-05/0.9899, allocations: 7.984 kB / 1.171 GB, free: 14.13 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.856e-06/0.9899, allocations: 0 / 1.171 GB, free: 14.13 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003412/0.9903, allocations: 59.95 kB / 1.171 GB, free: 14.07 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.249e-05/0.9903, allocations: 8 kB / 1.171 GB, free: 14.07 MB / 0.9044 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.0001206/0.9905, allocations: 133.7 kB / 1.172 GB, free: 13.93 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.572e-05/0.9905, allocations: 7.953 kB / 1.172 GB, free: 13.92 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.026e-05/0.9905, allocations: 4.375 kB / 1.172 GB, free: 13.91 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.9905, allocations: 8 kB / 1.172 GB, free: 13.9 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.9905, allocations: 0 / 1.172 GB, free: 13.9 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.9905, allocations: 0 / 1.172 GB, free: 13.9 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001607/0.9907, allocations: 185.6 kB / 1.172 GB, free: 13.67 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.492e-06/0.9907, allocations: 0 / 1.172 GB, free: 13.67 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.686e-06/0.9907, allocations: 0 / 1.172 GB, free: 13.67 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.9907, allocations: 0 / 1.172 GB, free: 13.67 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.187e-05/0.9908, allocations: 4 kB / 1.172 GB, free: 13.67 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.9908, allocations: 0 / 1.172 GB, free: 13.67 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.9908, allocations: 0 / 1.172 GB, free: 13.67 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001588/0.9909, allocations: 125.2 kB / 1.172 GB, free: 13.53 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.133e-05/0.991, allocations: 81.19 kB / 1.172 GB, free: 13.43 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.647e-05/0.991, allocations: 7.938 kB / 1.172 GB, free: 13.42 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.044e-05/0.991, allocations: 0 / 1.172 GB, free: 13.42 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.95e-05/0.9911, allocations: 11.98 kB / 1.172 GB, free: 13.41 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.83e-06/0.9911, allocations: 0 / 1.172 GB, free: 13.41 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 4.612e-05/0.9912, allocations: 87.28 kB / 1.172 GB, free: 13.32 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.61e-07/0.9912, allocations: 3.938 kB / 1.172 GB, free: 13.32 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002721/0.9914, allocations: 39.92 kB / 1.172 GB, free: 13.28 MB / 0.9044 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.0004764/0.9919, allocations: 0.6611 MB / 1.173 GB, free: 12.59 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0003441/0.9923, allocations: 246.7 kB / 1.173 GB, free: 12.33 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.9923, allocations: 3.938 kB / 1.173 GB, free: 12.32 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 5.246e-05/0.9923, allocations: 28.23 kB / 1.173 GB, free: 12.3 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002267/0.9926, allocations: 16.17 kB / 1.173 GB, free: 12.28 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001888/0.9945, allocations: 1.719 MB / 1.175 GB, free: 10.44 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002713/0.9948, allocations: 0.6846 MB / 1.175 GB, free: 9.73 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 3.288e-05/0.9948, allocations: 4 kB / 1.175 GB, free: 9.727 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.011e-05/0.9949, allocations: 19.98 kB / 1.175 GB, free: 9.707 MB / 0.9044 GB Notification: Performance of SimCode: time 4.41e-07/0.9949, allocations: 0 / 1.175 GB, free: 9.707 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02246/1.017, allocations: 2.9 MB / 1.178 GB, free: 6.918 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.77/8.788, allocations: 3.953 kB / 1.178 GB, free: 6.914 MB / 0.9044 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Controls_OBC_CDL_Logical_Validation_Xor.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Xor_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Validation_Xor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches