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.008473/0.008473, allocations: 103.1 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.001908/0.001908, allocations: 196.3 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.517/1.517, 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.504/2.504, allocations: 390.2 MB / 0.6648 GB, free: 172 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001438/0.001439, allocations: 68.58 kB / 0.9504 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3876/0.389, allocations: 140.4 MB / 1.087 GB, free: 1.934 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Xor): time 0.00225/0.3913, allocations: 0.6544 MB / 1.088 GB, free: 1.281 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001847/0.3932, allocations: 1.188 MB / 1.089 GB, free: 80 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.829e-05/0.3933, allocations: 0 / 1.089 GB, free: 80 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.412e-05/0.3933, allocations: 3.938 kB / 1.089 GB, free: 76 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 9.262e-05/0.3935, allocations: 15.84 kB / 1.089 GB, free: 60 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008696/0.3944, allocations: 221.7 kB / 1.09 GB, free: 15.84 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002859/0.3947, allocations: 187.6 kB / 1.09 GB, free: 15.66 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000104/0.3948, allocations: 12 kB / 1.09 GB, free: 15.65 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001351/0.3949, allocations: 67.88 kB / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001639/0.3951, allocations: 67.83 kB / 1.09 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.789e-05/0.3951, allocations: 16 kB / 1.09 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001062/0.3952, allocations: 23.94 kB / 1.09 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.167e-05/0.3953, allocations: 15.92 kB / 1.09 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 9.555e-05/0.3954, allocations: 59.88 kB / 1.09 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002508/0.3956, allocations: 150.4 kB / 1.09 GB, free: 15.26 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.3956, allocations: 0 / 1.09 GB, free: 15.26 MB / 0.8575 GB Notification: Performance of FrontEnd: time 4.168e-06/0.3957, allocations: 4 kB / 1.09 GB, free: 15.26 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.374e-06/0.3957, allocations: 0 / 1.09 GB, free: 15.26 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.0007245/0.3964, allocations: 431.6 kB / 1.091 GB, free: 14.77 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.893e-05/0.3965, allocations: 8.031 kB / 1.091 GB, free: 14.77 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.57e-05/0.3965, allocations: 34.75 kB / 1.091 GB, free: 14.72 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.569e-05/0.3966, allocations: 16.83 kB / 1.091 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001575/0.3967, allocations: 168.3 kB / 1.091 GB, free: 14.5 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.92e-05/0.3968, allocations: 8.375 kB / 1.091 GB, free: 14.5 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.554e-05/0.3968, allocations: 20.31 kB / 1.091 GB, free: 14.48 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001349/0.397, allocations: 46.23 kB / 1.091 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.187e-05/0.397, allocations: 3.938 kB / 1.091 GB, free: 14.42 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.114e-05/0.397, allocations: 0 / 1.091 GB, free: 14.42 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.065e-06/0.397, allocations: 4 kB / 1.091 GB, free: 14.42 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.205e-05/0.3971, allocations: 16 kB / 1.091 GB, free: 14.4 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005808/0.3977, allocations: 356.6 kB / 1.091 GB, free: 14 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 8.734e-05/0.3978, allocations: 42.52 kB / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.676e-05/0.3978, allocations: 20.94 kB / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 9.328e-06/0.3978, allocations: 0 / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001574/0.398, allocations: 75.38 kB / 1.091 GB, free: 13.84 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.162e-06/0.398, allocations: 0 / 1.091 GB, free: 13.84 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0002841/0.3983, allocations: 109.5 kB / 1.091 GB, free: 13.73 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.109e-05/0.3983, allocations: 59.41 kB / 1.091 GB, free: 13.66 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001099/0.3985, allocations: 117.8 kB / 1.092 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.46e-05/0.3985, allocations: 29.7 kB / 1.092 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 7.346e-05/0.3986, allocations: 96.05 kB / 1.092 GB, free: 13.4 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.495e-05/0.3986, allocations: 7.844 kB / 1.092 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001089/0.3987, allocations: 61.67 kB / 1.092 GB, free: 13.33 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001264/0.3988, allocations: 314.8 kB / 1.092 GB, free: 13.01 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001405/0.399, allocations: 63.97 kB / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001613/0.3992, allocations: 100.2 kB / 1.092 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002015/0.3994, allocations: 164 kB / 1.092 GB, free: 12.65 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.3994, allocations: 4 kB / 1.092 GB, free: 12.64 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004383/0.3998, allocations: 264.8 kB / 1.093 GB, free: 12.37 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 5.642e-05/0.3999, allocations: 63.41 kB / 1.093 GB, free: 12.29 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.684e-06/0.3999, allocations: 3.984 kB / 1.093 GB, free: 12.29 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.199e-05/0.3999, allocations: 4 kB / 1.093 GB, free: 12.29 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.466e-05/0.4, allocations: 0 / 1.093 GB, free: 12.29 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.155e-06/0.4, allocations: 4.312 kB / 1.093 GB, free: 12.28 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003538/0.4003, allocations: 59.91 kB / 1.093 GB, free: 12.22 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.275e-05/0.4004, allocations: 11.98 kB / 1.093 GB, free: 12.21 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.0001303/0.4005, allocations: 129.7 kB / 1.093 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.535e-05/0.4005, allocations: 4 kB / 1.093 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.843e-05/0.4006, allocations: 4.375 kB / 1.093 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.638e-06/0.4006, allocations: 4 kB / 1.093 GB, free: 12.06 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.7e-06/0.4006, allocations: 0 / 1.093 GB, free: 12.06 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/0.4006, allocations: 4 kB / 1.093 GB, free: 12.06 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001542/0.4007, allocations: 185.6 kB / 1.093 GB, free: 11.83 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.4008, allocations: 0 / 1.093 GB, free: 11.83 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.167e-06/0.4008, allocations: 0 / 1.093 GB, free: 11.83 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.4008, allocations: 0 / 1.093 GB, free: 11.83 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.18e-05/0.4008, allocations: 7.984 kB / 1.093 GB, free: 11.82 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.027e-06/0.4008, allocations: 3.984 kB / 1.093 GB, free: 11.82 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.4008, allocations: 0 / 1.093 GB, free: 11.82 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000173/0.401, allocations: 113 kB / 1.093 GB, free: 11.69 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.285e-05/0.401, allocations: 89 kB / 1.093 GB, free: 11.58 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.817e-05/0.4011, allocations: 3.938 kB / 1.093 GB, free: 11.58 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.531e-05/0.4011, allocations: 8 kB / 1.093 GB, free: 11.57 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.343e-05/0.4012, allocations: 7.984 kB / 1.093 GB, free: 11.56 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.692e-06/0.4012, allocations: 0 / 1.093 GB, free: 11.56 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 6.831e-05/0.4012, allocations: 95.2 kB / 1.093 GB, free: 11.47 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4013, allocations: 3.938 kB / 1.093 GB, free: 11.46 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002518/0.4015, allocations: 32 kB / 1.093 GB, free: 11.43 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.0005084/0.402, allocations: 0.6553 MB / 1.094 GB, free: 10.75 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003801/0.4024, allocations: 246.7 kB / 1.094 GB, free: 10.48 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.4024, allocations: 0 / 1.094 GB, free: 10.48 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 5.707e-05/0.4025, allocations: 31.92 kB / 1.094 GB, free: 10.45 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002523/0.4027, allocations: 22.45 kB / 1.094 GB, free: 10.43 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002039/0.4048, allocations: 1.716 MB / 1.096 GB, free: 8.602 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000278/0.4051, allocations: 0.6885 MB / 1.097 GB, free: 7.887 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 5.9e-05/0.4052, allocations: 4 kB / 1.097 GB, free: 7.883 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.664e-05/0.4052, allocations: 19.42 kB / 1.097 GB, free: 7.863 MB / 0.8575 GB Notification: Performance of SimCode: time 2.21e-07/0.4052, allocations: 0 / 1.097 GB, free: 7.863 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02215/0.4274, allocations: 2.889 MB / 1.1 GB, free: 5.074 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.551/7.979, allocations: 11.31 kB / 1.1 GB, free: 5.066 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