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: 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_10_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_10_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.001522/0.001522, allocations: 102.2 kB / 16.27 MB, free: 6 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.001529/0.001529, allocations: 191 kB / 17.2 MB, free: 5.609 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.408/1.408, allocations: 222.9 MB / 240.9 MB, free: 15.27 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.567/2.567, allocations: 437.1 MB / 0.711 GB, free: 4.504 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001953/0.001953, allocations: 67.59 kB / 0.8699 GB, free: 2.164 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3068/0.3088, allocations: 151.6 MB / 1.018 GB, free: 10.62 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Xor): time 0.001902/0.3107, allocations: 0.6717 MB / 1.019 GB, free: 9.945 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.00156/0.3123, allocations: 1.184 MB / 1.02 GB, free: 8.746 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.301e-05/0.3123, allocations: 0 / 1.02 GB, free: 8.746 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 2.913e-05/0.3124, allocations: 3.938 kB / 1.02 GB, free: 8.742 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 6.124e-05/0.3125, allocations: 15.91 kB / 1.02 GB, free: 8.727 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006338/0.3131, allocations: 217 kB / 1.02 GB, free: 8.52 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0002311/0.3133, allocations: 187.7 kB / 1.02 GB, free: 8.336 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 8.899e-05/0.3134, allocations: 11.94 kB / 1.02 GB, free: 8.324 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 9.213e-05/0.3135, allocations: 67.88 kB / 1.02 GB, free: 8.258 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 9.341e-05/0.3136, allocations: 51.86 kB / 1.02 GB, free: 8.207 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 4.035e-05/0.3137, allocations: 16 kB / 1.02 GB, free: 8.191 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 8.024e-05/0.3138, allocations: 32 kB / 1.02 GB, free: 8.16 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 2.361e-05/0.3138, allocations: 11.92 kB / 1.02 GB, free: 8.148 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 9.102e-05/0.3139, allocations: 55.88 kB / 1.02 GB, free: 8.094 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0002133/0.3141, allocations: 155.6 kB / 1.021 GB, free: 7.941 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.3141, allocations: 0 / 1.021 GB, free: 7.941 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.082e-06/0.3141, allocations: 0 / 1.021 GB, free: 7.941 MB / 0.795 GB Notification: Performance of Transformations before backend: time 4.699e-06/0.3141, allocations: 0 / 1.021 GB, free: 7.941 MB / 0.795 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.0005729/0.3147, allocations: 442.9 kB / 1.021 GB, free: 7.445 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.349e-05/0.3148, allocations: 8.922 kB / 1.021 GB, free: 7.438 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.394e-05/0.3148, allocations: 12.84 kB / 1.021 GB, free: 7.426 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000133/0.315, allocations: 172.3 kB / 1.021 GB, free: 7.219 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.849e-05/0.315, allocations: 8.375 kB / 1.021 GB, free: 7.211 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.074e-05/0.315, allocations: 12.38 kB / 1.021 GB, free: 7.199 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001175/0.3151, allocations: 42.25 kB / 1.021 GB, free: 7.152 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.669e-06/0.3152, allocations: 8.109 kB / 1.021 GB, free: 7.145 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.135e-05/0.3152, allocations: 3.938 kB / 1.021 GB, free: 7.141 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.124e-06/0.3152, allocations: 4 kB / 1.021 GB, free: 7.137 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.621e-05/0.3152, allocations: 16 kB / 1.021 GB, free: 7.121 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004923/0.3157, allocations: 352.7 kB / 1.022 GB, free: 6.727 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 9.124e-05/0.3158, allocations: 46.44 kB / 1.022 GB, free: 6.672 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.176e-05/0.3159, allocations: 16.86 kB / 1.022 GB, free: 6.652 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 1.083e-05/0.3159, allocations: 0 / 1.022 GB, free: 6.652 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001854/0.3161, allocations: 79.45 kB / 1.022 GB, free: 6.562 MB / 0.795 GB Notification: Performance of pre-optimization done (n=7): time 4.168e-06/0.3161, allocations: 7.984 kB / 1.022 GB, free: 6.555 MB / 0.795 GB Notification: Performance of matching and sorting (n=7): time 0.0002586/0.3164, allocations: 109.5 kB / 1.022 GB, free: 6.441 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.682e-05/0.3164, allocations: 55.41 kB / 1.022 GB, free: 6.375 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001305/0.3166, allocations: 121.8 kB / 1.022 GB, free: 6.246 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 4.188e-05/0.3166, allocations: 29.7 kB / 1.022 GB, free: 6.211 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 7.187e-05/0.3167, allocations: 88.14 kB / 1.022 GB, free: 6.121 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 1.755e-05/0.3167, allocations: 11.81 kB / 1.022 GB, free: 6.109 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.822e-05/0.3168, allocations: 49.69 kB / 1.022 GB, free: 6.055 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.000159/0.317, allocations: 326.8 kB / 1.023 GB, free: 5.727 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001364/0.3171, allocations: 55.97 kB / 1.023 GB, free: 5.672 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001635/0.3173, allocations: 100.2 kB / 1.023 GB, free: 5.559 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000212/0.3175, allocations: 160 kB / 1.023 GB, free: 5.375 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.3175, allocations: 0 / 1.023 GB, free: 5.375 MB / 0.795 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004588/0.318, allocations: 272.7 kB / 1.023 GB, free: 5.09 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 7.081e-05/0.3181, allocations: 67.39 kB / 1.023 GB, free: 5.012 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/0.3181, allocations: 4 kB / 1.023 GB, free: 5.008 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.376e-05/0.3181, allocations: 0 / 1.023 GB, free: 5.008 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.196e-05/0.3181, allocations: 4 kB / 1.023 GB, free: 5.004 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.043e-06/0.3181, allocations: 3.984 kB / 1.023 GB, free: 5 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003758/0.3185, allocations: 52.06 kB / 1.023 GB, free: 4.949 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.476e-05/0.3186, allocations: 15.98 kB / 1.023 GB, free: 4.934 MB / 0.795 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.0001224/0.3187, allocations: 132.8 kB / 1.023 GB, free: 4.797 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.749e-05/0.3187, allocations: 7.906 kB / 1.023 GB, free: 4.789 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.768e-05/0.3187, allocations: 8.375 kB / 1.023 GB, free: 4.781 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.3188, allocations: 8 kB / 1.023 GB, free: 4.773 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.3188, allocations: 4.062 kB / 1.023 GB, free: 4.77 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.3188, allocations: 3.984 kB / 1.023 GB, free: 4.766 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001626/0.3189, allocations: 173.6 kB / 1.024 GB, free: 4.547 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.319, allocations: 0 / 1.024 GB, free: 4.547 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.145e-06/0.319, allocations: 0 / 1.024 GB, free: 4.547 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.319, allocations: 0 / 1.024 GB, free: 4.547 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.248e-05/0.319, allocations: 7.984 kB / 1.024 GB, free: 4.539 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.319, allocations: 0 / 1.024 GB, free: 4.539 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.319, allocations: 0 / 1.024 GB, free: 4.539 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001656/0.3192, allocations: 120.9 kB / 1.024 GB, free: 4.402 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 5.356e-05/0.3192, allocations: 81.02 kB / 1.024 GB, free: 4.305 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.772e-05/0.3193, allocations: 4 kB / 1.024 GB, free: 4.301 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.281e-05/0.3193, allocations: 4 kB / 1.024 GB, free: 4.297 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.161e-05/0.3193, allocations: 7.984 kB / 1.024 GB, free: 4.289 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.084e-06/0.3193, allocations: 4 kB / 1.024 GB, free: 4.285 MB / 0.795 GB Notification: Performance of sorting global known variables: time 5.383e-05/0.3194, allocations: 91.2 kB / 1.024 GB, free: 4.195 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3194, allocations: 4 kB / 1.024 GB, free: 4.191 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.000238/0.3197, allocations: 32 kB / 1.024 GB, free: 4.16 MB / 0.795 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.0001622/0.3198, allocations: 103.2 kB / 1.024 GB, free: 4.051 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0003806/0.3202, allocations: 250.6 kB / 1.024 GB, free: 3.781 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.3202, allocations: 3.938 kB / 1.024 GB, free: 3.777 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 6.049e-05/0.3203, allocations: 36.31 kB / 1.024 GB, free: 3.742 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000242/0.3205, allocations: 24.38 kB / 1.024 GB, free: 3.719 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003623/0.3209, allocations: 181.8 kB / 1.024 GB, free: 3.508 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003236/0.3212, allocations: 0.6891 MB / 1.025 GB, free: 2.793 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.307e-05/0.3213, allocations: 11.44 kB / 1.025 GB, free: 2.781 MB / 0.795 GB Notification: Performance of SimCode: time 2.1e-07/0.3213, allocations: 0 / 1.025 GB, free: 2.781 MB / 0.795 GB Notification: Performance of Templates: time 0.003191/0.3245, allocations: 1.391 MB / 1.027 GB, free: 1.402 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.makefile (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 & ./Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Xor -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Xor_res.mat","/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