Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Logical_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Logical_Validation_Switch",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.009106/0.009107, allocations: 101.9 kB / 15.73 MB, free: 6.008 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.001699/0.001699, allocations: 194.1 kB / 16.67 MB, free: 5.93 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.397/1.397, allocations: 222.9 MB / 240.4 MB, free: 15.16 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.488/2.488, allocations: 437 MB / 0.7105 GB, free: 4.391 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 67.84 kB / 1.018 GB, free: 9.875 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9121/0.9134, allocations: 151.6 MB / 1.166 GB, free: 3.766 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.001945/0.9154, allocations: 0.7126 MB / 1.167 GB, free: 3.059 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001592/0.917, allocations: 1.263 MB / 1.168 GB, free: 1.781 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.036e-05/0.9171, allocations: 0 / 1.168 GB, free: 1.781 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 3.297e-05/0.9172, allocations: 11.81 kB / 1.168 GB, free: 1.77 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001126/0.9173, allocations: 23.86 kB / 1.168 GB, free: 1.746 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.000849/0.9181, allocations: 308.4 kB / 1.168 GB, free: 1.453 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0003219/0.9185, allocations: 275.6 kB / 1.169 GB, free: 1.184 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001024/0.9186, allocations: 16.17 kB / 1.169 GB, free: 1.164 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001813/0.9188, allocations: 99.86 kB / 1.169 GB, free: 1.066 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001787/0.919, allocations: 91.73 kB / 1.169 GB, free: 0.9766 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 5.716e-05/0.919, allocations: 24 kB / 1.169 GB, free: 0.9531 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001053/0.9191, allocations: 39.98 kB / 1.169 GB, free: 0.9141 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 2.705e-05/0.9192, allocations: 15.92 kB / 1.169 GB, free: 0.8984 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0001164/0.9193, allocations: 87.73 kB / 1.169 GB, free: 0.8125 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002762/0.9196, allocations: 217.7 kB / 1.169 GB, free: 0.6016 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.9196, allocations: 0 / 1.169 GB, free: 0.6016 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.532e-06/0.9196, allocations: 4 kB / 1.169 GB, free: 0.5977 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 6.172e-06/0.9196, allocations: 3.938 kB / 1.169 GB, free: 0.5938 MB / 0.8887 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0006051/0.9202, allocations: 488.3 kB / 1.17 GB, free: 52 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.9203, allocations: 12.86 kB / 1.17 GB, free: 40 kB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.929e-05/0.9203, allocations: 38.83 kB / 1.17 GB, free: 15.99 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.382e-05/0.9204, allocations: 16.84 kB / 1.17 GB, free: 15.97 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001107/0.9205, allocations: 176.2 kB / 1.17 GB, free: 15.76 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.629e-05/0.9205, allocations: 8.375 kB / 1.17 GB, free: 15.75 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.538e-05/0.9206, allocations: 20.36 kB / 1.17 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001246/0.9207, allocations: 61.98 kB / 1.17 GB, free: 15.67 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.883e-06/0.9207, allocations: 0 / 1.17 GB, free: 15.67 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.073e-05/0.9207, allocations: 3.984 kB / 1.17 GB, free: 15.66 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.9208, allocations: 0 / 1.17 GB, free: 15.66 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.326e-05/0.9208, allocations: 19.94 kB / 1.17 GB, free: 15.64 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000532/0.9214, allocations: 424.4 kB / 1.17 GB, free: 15.18 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 6.591e-05/0.9214, allocations: 26.58 kB / 1.171 GB, free: 15.15 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.658e-05/0.9215, allocations: 24.94 kB / 1.171 GB, free: 15.12 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 1.038e-05/0.9215, allocations: 0 / 1.171 GB, free: 15.12 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002082/0.9217, allocations: 99.28 kB / 1.171 GB, free: 15.01 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=10): time 1.563e-06/0.9217, allocations: 4 kB / 1.171 GB, free: 15.01 MB / 0.9044 GB Notification: Performance of matching and sorting (n=10): time 0.0002987/0.922, allocations: 137.5 kB / 1.171 GB, free: 14.87 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.977e-05/0.9221, allocations: 59.41 kB / 1.171 GB, free: 14.8 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001078/0.9222, allocations: 135.4 kB / 1.171 GB, free: 14.66 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 3.669e-05/0.9222, allocations: 33.7 kB / 1.171 GB, free: 14.62 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 7.821e-05/0.9223, allocations: 96.12 kB / 1.171 GB, free: 14.52 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.242e-05/0.9223, allocations: 23.78 kB / 1.171 GB, free: 14.5 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001312/0.9225, allocations: 65.67 kB / 1.171 GB, free: 14.43 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001072/0.9226, allocations: 330.8 kB / 1.171 GB, free: 14.09 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001855/0.9228, allocations: 83.95 kB / 1.172 GB, free: 14.01 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001996/0.923, allocations: 142.2 kB / 1.172 GB, free: 13.85 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002619/0.9233, allocations: 232.9 kB / 1.172 GB, free: 13.59 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.9233, allocations: 0 / 1.172 GB, free: 13.59 MB / 0.9044 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.000576/0.9239, allocations: 386.4 kB / 1.172 GB, free: 13.18 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001036/0.924, allocations: 105.2 kB / 1.172 GB, free: 13.06 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.924, allocations: 0 / 1.172 GB, free: 13.06 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.987e-05/0.924, allocations: 7.984 kB / 1.172 GB, free: 13.05 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.382e-05/0.924, allocations: 4 kB / 1.172 GB, free: 13.05 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.621e-06/0.924, allocations: 0 / 1.172 GB, free: 13.05 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004488/0.9245, allocations: 79.84 kB / 1.172 GB, free: 12.97 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.167e-05/0.9246, allocations: 23.98 kB / 1.172 GB, free: 12.95 MB / 0.9044 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,logicalSwitch.y,booPul3.y,$PRE.booPul3.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 (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 3 * 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.0001101/0.9247, allocations: 132.4 kB / 1.173 GB, free: 12.81 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.003e-05/0.9247, allocations: 11.89 kB / 1.173 GB, free: 12.8 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.107e-05/0.9247, allocations: 12.38 kB / 1.173 GB, free: 12.79 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.325e-06/0.9247, allocations: 0 / 1.173 GB, free: 12.79 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.9247, allocations: 0 / 1.173 GB, free: 12.79 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.9248, allocations: 0 / 1.173 GB, free: 12.79 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001459/0.9249, allocations: 197.5 kB / 1.173 GB, free: 12.54 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.9249, allocations: 8 kB / 1.173 GB, free: 12.54 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.213e-05/0.9249, allocations: 4 kB / 1.173 GB, free: 12.53 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.9249, allocations: 0 / 1.173 GB, free: 12.53 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.01e-05/0.925, allocations: 4 kB / 1.173 GB, free: 12.53 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.925, allocations: 0 / 1.173 GB, free: 12.53 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.925, allocations: 0 / 1.173 GB, free: 12.53 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000179/0.9251, allocations: 140.9 kB / 1.173 GB, free: 12.37 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.001e-05/0.9252, allocations: 81.02 kB / 1.173 GB, free: 12.27 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.887e-05/0.9252, allocations: 16 kB / 1.173 GB, free: 12.26 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.335e-05/0.9253, allocations: 0 / 1.173 GB, free: 12.26 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.753e-05/0.9253, allocations: 7.984 kB / 1.173 GB, free: 12.25 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.063e-05/0.9253, allocations: 8 kB / 1.173 GB, free: 12.24 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 5.988e-05/0.9254, allocations: 102.3 kB / 1.173 GB, free: 12.14 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.5e-07/0.9254, allocations: 3.938 kB / 1.173 GB, free: 12.14 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.000261/0.9257, allocations: 40 kB / 1.173 GB, free: 12.1 MB / 0.9044 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul1.y,booPul2.y,booPul3.y,logicalSwitch.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0005032/0.9262, allocations: 0.6865 MB / 1.174 GB, free: 11.39 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0004628/0.9266, allocations: 358.1 kB / 1.174 GB, free: 11 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.9267, allocations: 3.938 kB / 1.174 GB, free: 11 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 6.423e-05/0.9267, allocations: 43.92 kB / 1.174 GB, free: 10.95 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002609/0.927, allocations: 24.36 kB / 1.174 GB, free: 10.93 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002299/0.9293, allocations: 2.06 MB / 1.176 GB, free: 8.73 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002174/0.9295, allocations: 0.6924 MB / 1.177 GB, free: 8.012 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 3.831e-05/0.9296, allocations: 8.422 kB / 1.177 GB, free: 8.004 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.913e-05/0.9296, allocations: 35.42 kB / 1.177 GB, free: 7.969 MB / 0.9044 GB Notification: Performance of SimCode: time 2.3e-07/0.9296, allocations: 0 / 1.177 GB, free: 7.969 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02073/0.9504, allocations: 3.823 MB / 1.181 GB, free: 4.262 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.591/8.541, allocations: 6.453 kB / 1.181 GB, free: 4.258 MB / 0.9044 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Logical_Validation_Switch_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Logical_Validation_Switch.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches