Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.00119/0.00119, allocations: 107.2 kB / 16.36 MB, free: 5.824 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.001273/0.001273, allocations: 193.1 kB / 17.29 MB, free: 5.48 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.379/1.379, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.489/2.489, allocations: 442.6 MB / 0.7165 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001238, allocations: 67.72 kB / 0.8773 GB, free: 10.96 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2946/0.2958, allocations: 153 MB / 1.027 GB, free: 2.039 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Xor): time 0.001868/0.2977, allocations: 0.6651 MB / 1.027 GB, free: 1.379 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001351/0.2991, allocations: 1.197 MB / 1.029 GB, free: 172 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.374e-05/0.2991, allocations: 0 / 1.029 GB, free: 172 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.222e-05/0.2992, allocations: 3.938 kB / 1.029 GB, free: 168 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 7.023e-05/0.2993, allocations: 15.86 kB / 1.029 GB, free: 152 kB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.000712/0.3, allocations: 214.4 kB / 1.029 GB, free: 15.95 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003013/0.3003, allocations: 191.6 kB / 1.029 GB, free: 15.76 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001336/0.3005, allocations: 12 kB / 1.029 GB, free: 15.75 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001143/0.3006, allocations: 71.88 kB / 1.029 GB, free: 15.68 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001617/0.3007, allocations: 59.84 kB / 1.029 GB, free: 15.62 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.761e-05/0.3008, allocations: 16 kB / 1.029 GB, free: 15.6 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001031/0.3009, allocations: 27.98 kB / 1.029 GB, free: 15.57 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.871e-05/0.3009, allocations: 15.92 kB / 1.029 GB, free: 15.56 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001035/0.301, allocations: 51.89 kB / 1.029 GB, free: 15.51 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002477/0.3013, allocations: 159.5 kB / 1.029 GB, free: 15.35 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.3013, allocations: 4 kB / 1.029 GB, free: 15.35 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.305e-06/0.3013, allocations: 0 / 1.029 GB, free: 15.35 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.866e-06/0.3013, allocations: 3.984 kB / 1.029 GB, free: 15.34 MB / 0.8106 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.0006492/0.302, allocations: 426.7 kB / 1.03 GB, free: 14.86 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.232e-05/0.302, allocations: 12.03 kB / 1.03 GB, free: 14.85 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.918e-05/0.3021, allocations: 8.844 kB / 1.03 GB, free: 14.84 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001431/0.3023, allocations: 168.4 kB / 1.03 GB, free: 14.64 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.816e-05/0.3023, allocations: 4.375 kB / 1.03 GB, free: 14.64 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.346e-05/0.3023, allocations: 12.38 kB / 1.03 GB, free: 14.62 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001358/0.3025, allocations: 54.23 kB / 1.03 GB, free: 14.57 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.3025, allocations: 192 / 1.03 GB, free: 14.57 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.626e-05/0.3025, allocations: 3.938 kB / 1.03 GB, free: 14.56 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.536e-06/0.3025, allocations: 0 / 1.03 GB, free: 14.56 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.108e-05/0.3026, allocations: 19.94 kB / 1.03 GB, free: 14.54 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000546/0.3031, allocations: 352.7 kB / 1.03 GB, free: 14.15 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 8.016e-05/0.3032, allocations: 42.5 kB / 1.03 GB, free: 14.1 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.864e-05/0.3033, allocations: 16.86 kB / 1.03 GB, free: 14.08 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.323e-05/0.3033, allocations: 4.078 kB / 1.03 GB, free: 14.07 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001963/0.3035, allocations: 91.23 kB / 1.031 GB, free: 13.97 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.393e-06/0.3035, allocations: 0 / 1.031 GB, free: 13.97 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0002789/0.3038, allocations: 101.6 kB / 1.031 GB, free: 13.87 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.399e-05/0.3038, allocations: 55.41 kB / 1.031 GB, free: 13.8 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001048/0.304, allocations: 125.8 kB / 1.031 GB, free: 13.67 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.197e-05/0.304, allocations: 29.7 kB / 1.031 GB, free: 13.63 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.241e-05/0.3041, allocations: 92.08 kB / 1.031 GB, free: 13.54 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.549e-05/0.3041, allocations: 15.8 kB / 1.031 GB, free: 13.52 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.767e-05/0.3042, allocations: 53.69 kB / 1.031 GB, free: 13.46 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001196/0.3043, allocations: 318.8 kB / 1.031 GB, free: 13.14 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001292/0.3044, allocations: 59.97 kB / 1.031 GB, free: 13.09 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001476/0.3046, allocations: 100.2 kB / 1.031 GB, free: 12.97 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001756/0.3048, allocations: 151.6 kB / 1.032 GB, free: 12.8 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.3048, allocations: 0 / 1.032 GB, free: 12.8 MB / 0.8106 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003875/0.3052, allocations: 264.8 kB / 1.032 GB, free: 12.52 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 5.13e-05/0.3052, allocations: 71.86 kB / 1.032 GB, free: 12.44 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.199e-06/0.3053, allocations: 0 / 1.032 GB, free: 12.44 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.667e-05/0.3053, allocations: 7.984 kB / 1.032 GB, free: 12.43 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.319e-05/0.3053, allocations: 7.922 kB / 1.032 GB, free: 12.42 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.196e-06/0.3053, allocations: 4 kB / 1.032 GB, free: 12.42 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003143/0.3056, allocations: 52 kB / 1.032 GB, free: 12.37 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.087e-05/0.3057, allocations: 12 kB / 1.032 GB, free: 12.36 MB / 0.8106 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.0001128/0.3058, allocations: 137.6 kB / 1.032 GB, free: 12.21 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.507e-05/0.3058, allocations: 7.906 kB / 1.032 GB, free: 12.2 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.629e-05/0.3058, allocations: 4.375 kB / 1.032 GB, free: 12.2 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.804e-06/0.3059, allocations: 0 / 1.032 GB, free: 12.2 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.3059, allocations: 0 / 1.032 GB, free: 12.2 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.1e-06/0.3059, allocations: 4 kB / 1.032 GB, free: 12.2 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001265/0.306, allocations: 177.6 kB / 1.032 GB, free: 11.97 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.306, allocations: 12 kB / 1.032 GB, free: 11.96 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.008e-05/0.306, allocations: 3.938 kB / 1.032 GB, free: 11.96 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.306, allocations: 0 / 1.032 GB, free: 11.96 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.915e-06/0.3061, allocations: 0 / 1.032 GB, free: 11.96 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.3061, allocations: 4 kB / 1.032 GB, free: 11.95 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.3061, allocations: 0 / 1.032 GB, free: 11.95 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001407/0.3062, allocations: 112.9 kB / 1.032 GB, free: 11.82 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.008e-05/0.3063, allocations: 89 kB / 1.033 GB, free: 11.72 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.619e-05/0.3063, allocations: 0 / 1.033 GB, free: 11.72 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.192e-05/0.3063, allocations: 8 kB / 1.033 GB, free: 11.71 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.757e-05/0.3064, allocations: 7.984 kB / 1.033 GB, free: 11.7 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.855e-06/0.3064, allocations: 4 kB / 1.033 GB, free: 11.7 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.742e-05/0.3064, allocations: 91.22 kB / 1.033 GB, free: 11.61 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3064, allocations: 0 / 1.033 GB, free: 11.61 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002382/0.3067, allocations: 39.98 kB / 1.033 GB, free: 11.57 MB / 0.8106 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.0001537/0.3068, allocations: 103.2 kB / 1.033 GB, free: 11.46 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003311/0.3072, allocations: 250.6 kB / 1.033 GB, free: 11.19 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.093e-06/0.3072, allocations: 4 kB / 1.033 GB, free: 11.19 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 5.01e-05/0.3072, allocations: 27.98 kB / 1.033 GB, free: 11.16 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002352/0.3075, allocations: 12.81 kB / 1.033 GB, free: 11.15 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003533/0.3078, allocations: 154.8 kB / 1.033 GB, free: 10.96 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000213/0.3081, allocations: 0.6887 MB / 1.034 GB, free: 10.25 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 2.914e-05/0.3081, allocations: 7.984 kB / 1.034 GB, free: 10.24 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.191e-05/0.3081, allocations: 15.38 kB / 1.034 GB, free: 10.23 MB / 0.8106 GB Notification: Performance of SimCode: time 2.41e-07/0.3081, allocations: 0 / 1.034 GB, free: 10.23 MB / 0.8106 GB Notification: Performance of Templates: time 0.004286/0.3124, allocations: 1.856 MB / 1.036 GB, free: 8.391 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Xor -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Xor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_Xor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches