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: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Xor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|xor1.u1|xor1.u2|xor1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Xor") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Xor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|xor1.u1|xor1.u2|xor1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Xor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001235/0.001235, allocations: 110.9 kB / 16.37 MB, free: 6.469 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.001287/0.001287, allocations: 189.9 kB / 17.3 MB, free: 5.828 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.415/1.415, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.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.33/2.33, allocations: 390.3 MB / 0.6655 GB, free: 0.6094 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001885/0.001885, allocations: 69.55 kB / 0.814 GB, free: 32.83 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3228/0.3247, allocations: 140.4 MB / 0.9511 GB, free: 8.059 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Xor): time 0.002513/0.3273, allocations: 0.6706 MB / 0.9518 GB, free: 7.387 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001894/0.3292, allocations: 1.189 MB / 0.953 GB, free: 6.184 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.207e-05/0.3293, allocations: 0 / 0.953 GB, free: 6.184 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.816e-05/0.3293, allocations: 3.938 kB / 0.953 GB, free: 6.18 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 8.542e-05/0.3295, allocations: 11.88 kB / 0.953 GB, free: 6.168 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007635/0.3302, allocations: 219.3 kB / 0.9532 GB, free: 5.957 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0002769/0.3305, allocations: 187.7 kB / 0.9534 GB, free: 5.773 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001262/0.3307, allocations: 11.98 kB / 0.9534 GB, free: 5.762 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001066/0.3308, allocations: 67.89 kB / 0.9534 GB, free: 5.695 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000159/0.3309, allocations: 59.84 kB / 0.9535 GB, free: 5.637 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 3.808e-05/0.331, allocations: 16 kB / 0.9535 GB, free: 5.621 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001028/0.3311, allocations: 31.92 kB / 0.9535 GB, free: 5.59 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.75e-05/0.3311, allocations: 19.92 kB / 0.9536 GB, free: 5.57 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001/0.3312, allocations: 59.88 kB / 0.9536 GB, free: 5.512 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002464/0.3315, allocations: 147.6 kB / 0.9538 GB, free: 5.367 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.3315, allocations: 0 / 0.9538 GB, free: 5.367 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.944e-06/0.3315, allocations: 0 / 0.9538 GB, free: 5.367 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 7.664e-06/0.3315, allocations: 0 / 0.9538 GB, free: 5.367 MB / 0.7325 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.0006325/0.3322, allocations: 438.6 kB / 0.9542 GB, free: 4.875 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 5.034e-05/0.3322, allocations: 12.03 kB / 0.9542 GB, free: 4.863 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.566e-05/0.3323, allocations: 12.84 kB / 0.9542 GB, free: 4.852 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001683/0.3325, allocations: 160.4 kB / 0.9543 GB, free: 4.656 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.641e-05/0.3325, allocations: 12.38 kB / 0.9544 GB, free: 4.645 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.695e-05/0.3325, allocations: 16.36 kB / 0.9544 GB, free: 4.629 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001251/0.3327, allocations: 50.12 kB / 0.9544 GB, free: 4.574 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.187e-06/0.3327, allocations: 192 / 0.9544 GB, free: 4.574 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.76e-05/0.3327, allocations: 7.938 kB / 0.9544 GB, free: 4.566 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.476e-06/0.3327, allocations: 4 kB / 0.9544 GB, free: 4.562 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.117e-05/0.3328, allocations: 15.98 kB / 0.9544 GB, free: 4.547 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005948/0.3334, allocations: 352.7 kB / 0.9548 GB, free: 4.152 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 9.405e-05/0.3335, allocations: 46.44 kB / 0.9548 GB, free: 4.098 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.135e-05/0.3335, allocations: 16.86 kB / 0.9548 GB, free: 4.078 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.346e-05/0.3336, allocations: 0 / 0.9548 GB, free: 4.078 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000216/0.3338, allocations: 83.45 kB / 0.9549 GB, free: 3.984 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 1.613e-06/0.3338, allocations: 0 / 0.9549 GB, free: 3.984 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.0003302/0.3341, allocations: 113.5 kB / 0.955 GB, free: 3.867 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.173e-05/0.3342, allocations: 55.41 kB / 0.9551 GB, free: 3.801 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001298/0.3343, allocations: 113.8 kB / 0.9552 GB, free: 3.68 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.222e-05/0.3344, allocations: 29.7 kB / 0.9552 GB, free: 3.645 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 8.383e-05/0.3345, allocations: 96.12 kB / 0.9553 GB, free: 3.547 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.822e-05/0.3345, allocations: 15.75 kB / 0.9553 GB, free: 3.531 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001063/0.3346, allocations: 49.69 kB / 0.9554 GB, free: 3.477 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001278/0.3347, allocations: 322.8 kB / 0.9557 GB, free: 3.152 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000121/0.3349, allocations: 55.97 kB / 0.9557 GB, free: 3.098 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001514/0.335, allocations: 96.27 kB / 0.9558 GB, free: 2.988 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002027/0.3352, allocations: 156.1 kB / 0.956 GB, free: 2.809 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.3352, allocations: 4 kB / 0.956 GB, free: 2.805 MB / 0.7325 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004485/0.3357, allocations: 272.7 kB / 0.9562 GB, free: 2.52 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 6.393e-05/0.3358, allocations: 67.39 kB / 0.9563 GB, free: 2.441 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.3358, allocations: 3.938 kB / 0.9563 GB, free: 2.438 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.372e-05/0.3358, allocations: 4 kB / 0.9563 GB, free: 2.434 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.376e-05/0.3358, allocations: 0 / 0.9563 GB, free: 2.434 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.973e-06/0.3359, allocations: 4 kB / 0.9563 GB, free: 2.43 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003323/0.3362, allocations: 52.06 kB / 0.9564 GB, free: 2.379 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.789e-05/0.3362, allocations: 15.98 kB / 0.9564 GB, free: 2.363 MB / 0.7325 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.0001234/0.3364, allocations: 130.8 kB / 0.9565 GB, free: 2.23 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.479e-05/0.3364, allocations: 7.906 kB / 0.9565 GB, free: 2.223 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.428e-05/0.3364, allocations: 12.36 kB / 0.9565 GB, free: 2.211 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.3364, allocations: 4 kB / 0.9565 GB, free: 2.207 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.3364, allocations: 0 / 0.9565 GB, free: 2.207 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.3365, allocations: 7.938 kB / 0.9565 GB, free: 2.199 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000168/0.3366, allocations: 177.6 kB / 0.9567 GB, free: 1.977 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.3366, allocations: 0 / 0.9567 GB, free: 1.977 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.186e-06/0.3367, allocations: 0 / 0.9567 GB, free: 1.977 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.3367, allocations: 0 / 0.9567 GB, free: 1.977 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.28e-05/0.3367, allocations: 4 kB / 0.9567 GB, free: 1.973 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.3367, allocations: 0 / 0.9567 GB, free: 1.973 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.3367, allocations: 0 / 0.9567 GB, free: 1.973 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001654/0.3369, allocations: 113 kB / 0.9568 GB, free: 1.844 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.803e-05/0.3369, allocations: 81.11 kB / 0.9569 GB, free: 1.746 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.953e-05/0.3369, allocations: 4 kB / 0.9569 GB, free: 1.742 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.101e-05/0.337, allocations: 7.984 kB / 0.9569 GB, free: 1.734 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.732e-05/0.337, allocations: 4 kB / 0.9569 GB, free: 1.73 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.188e-05/0.337, allocations: 7.984 kB / 0.9569 GB, free: 1.723 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 6.226e-05/0.3371, allocations: 91.2 kB / 0.957 GB, free: 1.633 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3371, allocations: 3.938 kB / 0.957 GB, free: 1.629 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.000243/0.3374, allocations: 35.91 kB / 0.957 GB, free: 1.594 MB / 0.7325 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.0001902/0.3376, allocations: 111.5 kB / 0.9572 GB, free: 1.473 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0003822/0.3379, allocations: 255.1 kB / 0.9574 GB, free: 1.199 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.338, allocations: 0 / 0.9574 GB, free: 1.199 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 5.031e-05/0.338, allocations: 27.94 kB / 0.9574 GB, free: 1.172 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002526/0.3383, allocations: 20.12 kB / 0.9574 GB, free: 1.152 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003888/0.3387, allocations: 159 kB / 0.9576 GB, free: 0.9688 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003233/0.339, allocations: 0.6944 MB / 0.9583 GB, free: 256 kB / 0.7325 GB Notification: Performance of simCode: alias equations: time 2.923e-05/0.339, allocations: 4 kB / 0.9583 GB, free: 252 kB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.775e-05/0.3391, allocations: 15.44 kB / 0.9583 GB, free: 236 kB / 0.7325 GB Notification: Performance of SimCode: time 2.41e-07/0.3391, allocations: 0 / 0.9583 GB, free: 236 kB / 0.7325 GB Notification: Performance of Templates: time 0.005159/0.3443, allocations: 1.858 MB / 0.9601 GB, free: 14.39 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.makefile (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 & ./Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Xor -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > 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