Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.Switch,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,fileNamePrefix="Buildings_9_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.008111/0.008112, allocations: 102.7 kB / 15.73 MB, free: 6.031 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.001802/0.001802, allocations: 190.1 kB / 16.67 MB, free: 5.953 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.356/1.356, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.143/2.143, allocations: 390.3 MB / 0.6648 GB, free: 0.6211 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001293/0.001293, allocations: 63.91 kB / 0.9504 GB, free: 8.121 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8355/0.8368, allocations: 140.4 MB / 1.087 GB, free: 5.285 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.002099/0.8389, allocations: 0.7054 MB / 1.088 GB, free: 4.844 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001558/0.8405, allocations: 1.274 MB / 1.089 GB, free: 3.91 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.27e-05/0.8406, allocations: 1.062 kB / 1.089 GB, free: 3.91 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.009e-05/0.8406, allocations: 4.5 kB / 1.089 GB, free: 3.906 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 8.003e-05/0.8407, allocations: 24.81 kB / 1.089 GB, free: 3.887 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008682/0.8416, allocations: 304.9 kB / 1.09 GB, free: 3.742 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003929/0.842, allocations: 278.8 kB / 1.09 GB, free: 3.625 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 9.444e-05/0.8421, allocations: 13.78 kB / 1.09 GB, free: 3.617 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001811/0.8423, allocations: 100.1 kB / 1.09 GB, free: 3.582 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002019/0.8425, allocations: 92.3 kB / 1.09 GB, free: 3.547 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 5.786e-05/0.8426, allocations: 22.97 kB / 1.09 GB, free: 3.547 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001088/0.8427, allocations: 44.75 kB / 1.09 GB, free: 3.535 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.487e-05/0.8427, allocations: 15.67 kB / 1.09 GB, free: 3.527 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001144/0.8428, allocations: 82.48 kB / 1.09 GB, free: 3.488 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000328/0.8432, allocations: 219.6 kB / 1.091 GB, free: 3.418 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.8432, allocations: 0 / 1.091 GB, free: 3.418 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.364e-06/0.8432, allocations: 0.5156 kB / 1.091 GB, free: 3.418 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.122e-05/0.8432, allocations: 1.062 kB / 1.091 GB, free: 3.418 MB / 0.8575 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.0006225/0.8438, allocations: 494.7 kB / 1.091 GB, free: 2.938 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/0.8439, allocations: 9.188 kB / 1.091 GB, free: 2.938 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.226e-05/0.8439, allocations: 37.38 kB / 1.091 GB, free: 2.895 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.107e-05/0.844, allocations: 20.25 kB / 1.091 GB, free: 2.887 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.346e-05/0.8441, allocations: 173.4 kB / 1.091 GB, free: 2.684 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.864e-05/0.8441, allocations: 12.69 kB / 1.091 GB, free: 2.68 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.353e-05/0.8442, allocations: 17.23 kB / 1.091 GB, free: 2.676 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001157/0.8443, allocations: 60.19 kB / 1.091 GB, free: 2.633 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.478e-06/0.8443, allocations: 0.6562 kB / 1.091 GB, free: 2.633 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.879e-06/0.8443, allocations: 1.625 kB / 1.091 GB, free: 2.633 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.959e-06/0.8443, allocations: 0.7188 kB / 1.091 GB, free: 2.633 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.637e-05/0.8444, allocations: 22.44 kB / 1.091 GB, free: 2.625 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005209/0.8449, allocations: 411.8 kB / 1.092 GB, free: 2.301 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 6.263e-05/0.845, allocations: 45.86 kB / 1.092 GB, free: 2.258 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.491e-05/0.845, allocations: 18.83 kB / 1.092 GB, free: 2.246 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.194e-05/0.8451, allocations: 1.516 kB / 1.092 GB, free: 2.246 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002308/0.8453, allocations: 109 kB / 1.092 GB, free: 2.176 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=10): time 1.593e-06/0.8453, allocations: 0 / 1.092 GB, free: 2.176 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10): time 0.0003368/0.8456, allocations: 136.7 kB / 1.092 GB, free: 2.113 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.573e-05/0.8457, allocations: 55.3 kB / 1.092 GB, free: 2.051 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001055/0.8458, allocations: 136 kB / 1.092 GB, free: 1.938 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.359e-05/0.8458, allocations: 31.27 kB / 1.092 GB, free: 1.906 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.098e-05/0.8459, allocations: 101.5 kB / 1.092 GB, free: 1.812 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.966e-05/0.8459, allocations: 20.53 kB / 1.092 GB, free: 1.797 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001318/0.8461, allocations: 71.38 kB / 1.092 GB, free: 1.766 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.766e-05/0.8461, allocations: 328.6 kB / 1.093 GB, free: 1.441 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001868/0.8463, allocations: 86.84 kB / 1.093 GB, free: 1.414 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002046/0.8465, allocations: 132.2 kB / 1.093 GB, free: 1.328 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002377/0.8468, allocations: 237.2 kB / 1.093 GB, free: 1.125 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.8468, allocations: 0 / 1.093 GB, free: 1.125 MB / 0.8575 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.000623/0.8474, allocations: 372.3 kB / 1.094 GB, free: 0.918 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 6.514e-05/0.8475, allocations: 106.1 kB / 1.094 GB, free: 0.8125 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.211e-05/0.8475, allocations: 2.062 kB / 1.094 GB, free: 0.8125 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.013e-05/0.8475, allocations: 2.797 kB / 1.094 GB, free: 0.8125 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.806e-05/0.8476, allocations: 7.312 kB / 1.094 GB, free: 0.8086 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.052e-05/0.8476, allocations: 3.578 kB / 1.094 GB, free: 0.8086 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005144/0.8481, allocations: 84.16 kB / 1.094 GB, free: 0.7969 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.082e-05/0.8481, allocations: 21.02 kB / 1.094 GB, free: 0.793 MB / 0.8575 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 9.176e-05/0.8482, allocations: 131.2 kB / 1.094 GB, free: 0.668 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.886e-05/0.8483, allocations: 8.562 kB / 1.094 GB, free: 0.6641 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.973e-05/0.8483, allocations: 7.219 kB / 1.094 GB, free: 0.6602 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.8483, allocations: 1.219 kB / 1.094 GB, free: 0.6602 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.8483, allocations: 1.031 kB / 1.094 GB, free: 0.6602 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.8483, allocations: 0.6094 kB / 1.094 GB, free: 0.6602 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001209/0.8485, allocations: 199.9 kB / 1.094 GB, free: 456 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.297e-06/0.8485, allocations: 8.672 kB / 1.094 GB, free: 448 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.182e-05/0.8485, allocations: 2.797 kB / 1.094 GB, free: 448 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.8485, allocations: 0.5938 kB / 1.094 GB, free: 448 kB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.175e-05/0.8485, allocations: 2.312 kB / 1.094 GB, free: 448 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.8485, allocations: 5.969 kB / 1.094 GB, free: 444 kB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.8485, allocations: 0 / 1.094 GB, free: 444 kB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001808/0.8487, allocations: 142.3 kB / 1.094 GB, free: 344 kB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.269e-05/0.8487, allocations: 87.44 kB / 1.094 GB, free: 240 kB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.956e-05/0.8488, allocations: 2.734 kB / 1.094 GB, free: 240 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.484e-05/0.8488, allocations: 1.578 kB / 1.094 GB, free: 240 kB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.72e-05/0.8488, allocations: 11.52 kB / 1.094 GB, free: 236 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.548e-06/0.8488, allocations: 4.359 kB / 1.094 GB, free: 236 kB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.523e-05/0.8489, allocations: 98.61 kB / 1.094 GB, free: 152 kB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8489, allocations: 0.7812 kB / 1.094 GB, free: 152 kB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002906/0.8492, allocations: 44.17 kB / 1.095 GB, free: 148 kB / 0.8575 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.0005299/0.8497, allocations: 0.6804 MB / 1.095 GB, free: 15.52 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0005408/0.8503, allocations: 370.9 kB / 1.096 GB, free: 15.25 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.8503, allocations: 0 / 1.096 GB, free: 15.25 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 7.73e-05/0.8504, allocations: 39.89 kB / 1.096 GB, free: 15.23 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000276/0.8507, allocations: 28.41 kB / 1.096 GB, free: 15.22 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002729/0.8534, allocations: 2.048 MB / 1.098 GB, free: 13.62 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002394/0.8537, allocations: 0.696 MB / 1.098 GB, free: 12.92 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 4.985e-05/0.8537, allocations: 12.8 kB / 1.098 GB, free: 12.92 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.744e-05/0.8538, allocations: 26.58 kB / 1.098 GB, free: 12.9 MB / 0.8731 GB Notification: Performance of SimCode: time 5.11e-07/0.8538, allocations: 0 / 1.098 GB, free: 12.9 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02163/0.8754, allocations: 3.917 MB / 1.102 GB, free: 12.29 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.075/8.951, allocations: 8.859 kB / 1.102 GB, free: 12.29 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Switch_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Switch.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches