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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001787/0.001786, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002224/0.002224, allocations: 197.9 kB / 16.14 MB, free: 6.719 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.414/1.414, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.464/2.464, allocations: 390.2 MB / 0.6643 GB, free: 0.5859 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001472/0.001472, allocations: 63.91 kB / 0.812 GB, free: 14.76 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8839/0.8854, allocations: 140.4 MB / 0.9491 GB, free: 9.078 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Xor): time 0.002389/0.8878, allocations: 0.7139 MB / 0.9498 GB, free: 8.531 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001813/0.8897, allocations: 1.212 MB / 0.9509 GB, free: 7.562 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.823e-05/0.8897, allocations: 1.375 kB / 0.9509 GB, free: 7.562 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.866e-05/0.8898, allocations: 3.984 kB / 0.951 GB, free: 7.559 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.729e-05/0.8899, allocations: 9.25 kB / 0.951 GB, free: 7.551 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005622/0.8905, allocations: 194.3 kB / 0.9511 GB, free: 7.43 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001716/0.8906, allocations: 157.8 kB / 0.9513 GB, free: 7.344 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001247/0.8908, allocations: 17.48 kB / 0.9513 GB, free: 7.332 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.65e-05/0.8909, allocations: 56.45 kB / 0.9514 GB, free: 7.309 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.551e-05/0.891, allocations: 48.86 kB / 0.9514 GB, free: 7.273 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.353e-05/0.891, allocations: 8.969 kB / 0.9514 GB, free: 7.273 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.549e-05/0.8911, allocations: 23.92 kB / 0.9514 GB, free: 7.266 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.105e-05/0.8911, allocations: 10.86 kB / 0.9515 GB, free: 7.258 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 8.535e-05/0.8912, allocations: 58.34 kB / 0.9515 GB, free: 7.219 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001932/0.8914, allocations: 136.9 kB / 0.9516 GB, free: 7.121 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.8914, allocations: 4 kB / 0.9516 GB, free: 7.117 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.663e-06/0.8914, allocations: 0 / 0.9516 GB, free: 7.117 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.53e-06/0.8915, allocations: 0 / 0.9516 GB, free: 7.117 MB / 0.7169 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.0005198/0.892, allocations: 441.5 kB / 0.9521 GB, free: 6.656 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.084e-05/0.892, allocations: 9.094 kB / 0.9521 GB, free: 6.656 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.845e-05/0.8921, allocations: 35.97 kB / 0.9521 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.7e-05/0.8921, allocations: 8.75 kB / 0.9521 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.312e-05/0.8922, allocations: 175.3 kB / 0.9523 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.661e-05/0.8922, allocations: 8.219 kB / 0.9523 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.211e-05/0.8923, allocations: 9.188 kB / 0.9523 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001108/0.8924, allocations: 55.89 kB / 0.9524 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.454e-06/0.8924, allocations: 3.938 kB / 0.9524 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.169e-05/0.8924, allocations: 1.312 kB / 0.9524 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-06/0.8924, allocations: 0 / 0.9524 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.564e-05/0.8925, allocations: 16.94 kB / 0.9524 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004396/0.8929, allocations: 359.9 kB / 0.9527 GB, free: 5.973 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 7.2e-05/0.893, allocations: 32.3 kB / 0.9527 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.045e-05/0.8931, allocations: 23.94 kB / 0.9528 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 9.628e-06/0.8931, allocations: 0 / 0.9528 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001758/0.8933, allocations: 84.53 kB / 0.9529 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.102e-06/0.8933, allocations: 0 / 0.9529 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0002524/0.8935, allocations: 101.2 kB / 0.9529 GB, free: 5.789 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.697e-05/0.8936, allocations: 52.62 kB / 0.953 GB, free: 5.727 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.754e-05/0.8936, allocations: 126.7 kB / 0.9531 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.772e-05/0.8937, allocations: 29.7 kB / 0.9531 GB, free: 5.574 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.006e-05/0.8937, allocations: 93 kB / 0.9532 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.56e-05/0.8938, allocations: 14.66 kB / 0.9533 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.944e-05/0.8939, allocations: 48.22 kB / 0.9533 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.388e-05/0.8939, allocations: 330 kB / 0.9536 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000136/0.8941, allocations: 59 kB / 0.9537 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001436/0.8942, allocations: 98.81 kB / 0.9538 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001715/0.8944, allocations: 156.8 kB / 0.9539 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.8944, allocations: 0 / 0.9539 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004168/0.8948, allocations: 262.1 kB / 0.9542 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 5.138e-05/0.8949, allocations: 69.33 kB / 0.9542 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/0.8949, allocations: 1.375 kB / 0.9542 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.524e-05/0.8949, allocations: 5.094 kB / 0.9542 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.267e-05/0.8949, allocations: 6.453 kB / 0.9542 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.046e-05/0.895, allocations: 6.094 kB / 0.9542 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000366/0.8953, allocations: 59.84 kB / 0.9543 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.425e-05/0.8954, allocations: 13.42 kB / 0.9543 GB, free: 4.578 MB / 0.7169 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 9.679e-05/0.8955, allocations: 121.9 kB / 0.9544 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.628e-05/0.8955, allocations: 7.031 kB / 0.9544 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.218e-05/0.8955, allocations: 13.58 kB / 0.9545 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.8955, allocations: 1.125 kB / 0.9545 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.623e-06/0.8955, allocations: 4.062 kB / 0.9545 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.8956, allocations: 1.031 kB / 0.9545 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001123/0.8957, allocations: 181 kB / 0.9546 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.8957, allocations: 0 / 0.9546 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.558e-06/0.8957, allocations: 5.391 kB / 0.9546 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.222e-06/0.8957, allocations: 1.25 kB / 0.9546 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.089e-05/0.8957, allocations: 5.25 kB / 0.9546 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.727e-06/0.8957, allocations: 9.859 kB / 0.9547 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.534e-06/0.8957, allocations: 0 / 0.9547 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001495/0.8959, allocations: 115 kB / 0.9548 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.682e-05/0.8959, allocations: 83.33 kB / 0.9548 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.771e-05/0.8959, allocations: 0.9688 kB / 0.9548 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.08e-05/0.896, allocations: 1.219 kB / 0.9548 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.37e-05/0.896, allocations: 7.891 kB / 0.9548 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.739e-06/0.896, allocations: 6.844 kB / 0.9549 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.105e-05/0.8961, allocations: 90.89 kB / 0.9549 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8961, allocations: 0 / 0.9549 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002433/0.8963, allocations: 27.72 kB / 0.955 GB, free: 3.922 MB / 0.7169 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.0004028/0.8968, allocations: 0.6585 MB / 0.9556 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003354/0.8971, allocations: 245.7 kB / 0.9558 GB, free: 3.094 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.8971, allocations: 0 / 0.9558 GB, free: 3.094 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 5.085e-05/0.8972, allocations: 24.94 kB / 0.9559 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002344/0.8974, allocations: 25.39 kB / 0.9559 GB, free: 3.07 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001933/0.8994, allocations: 1.725 MB / 0.9576 GB, free: 1.543 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001713/0.8995, allocations: 0.6871 MB / 0.9582 GB, free: 0.8398 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.293e-05/0.8996, allocations: 8 kB / 0.9583 GB, free: 0.8359 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.883e-05/0.8996, allocations: 19.38 kB / 0.9583 GB, free: 0.8203 MB / 0.7169 GB Notification: Performance of SimCode: time 3e-07/0.8996, allocations: 0 / 0.9583 GB, free: 0.8203 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01563/0.9153, allocations: 2.682 MB / 0.9609 GB, free: 15.45 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000197/0.9155, allocations: 202.8 kB / 0.9611 GB, free: 15.2 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.766/2.681, allocations: 0 / 0.9611 GB, free: 15.2 MB / 0.7325 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Xor_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Xor_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 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.mat","/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