Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,fileNamePrefix="Buildings_latest_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.008532/0.008533, allocations: 104.6 kB / 15.74 MB, free: 6.484 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.00157/0.00157, allocations: 189.1 kB / 16.67 MB, free: 6.379 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.451/1.451, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.811/2.811, allocations: 461.9 MB / 0.7348 GB, free: 14.58 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001484/0.001484, allocations: 64.12 kB / 1.054 GB, free: 7.617 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3079/0.3094, allocations: 157.4 MB / 1.207 GB, free: 10.12 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.00204/0.3115, allocations: 0.7073 MB / 1.208 GB, free: 9.406 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001657/0.3131, allocations: 1.26 MB / 1.209 GB, free: 8.133 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.372e-05/0.3132, allocations: 0 / 1.209 GB, free: 8.133 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.551e-05/0.3133, allocations: 3.938 kB / 1.209 GB, free: 8.129 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 8.583e-05/0.3134, allocations: 15.86 kB / 1.209 GB, free: 8.113 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008635/0.3143, allocations: 316.8 kB / 1.21 GB, free: 7.812 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0003558/0.3146, allocations: 275.5 kB / 1.21 GB, free: 7.543 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001141/0.3148, allocations: 20.16 kB / 1.21 GB, free: 7.52 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001612/0.3149, allocations: 91.88 kB / 1.21 GB, free: 7.43 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001911/0.3151, allocations: 95.72 kB / 1.21 GB, free: 7.336 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 5.007e-05/0.3152, allocations: 24 kB / 1.21 GB, free: 7.312 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001009/0.3153, allocations: 35.98 kB / 1.21 GB, free: 7.277 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.986e-05/0.3153, allocations: 19.92 kB / 1.21 GB, free: 7.258 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001091/0.3154, allocations: 79.8 kB / 1.21 GB, free: 7.18 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002878/0.3157, allocations: 235.6 kB / 1.21 GB, free: 6.949 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.3158, allocations: 0 / 1.21 GB, free: 6.949 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.774e-06/0.3158, allocations: 0 / 1.21 GB, free: 6.949 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.502e-06/0.3158, allocations: 0 / 1.21 GB, free: 6.949 MB / 0.9669 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.0006315/0.3164, allocations: 488.3 kB / 1.211 GB, free: 6.406 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.686e-05/0.3165, allocations: 12.62 kB / 1.211 GB, free: 6.395 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.05e-05/0.3165, allocations: 30.75 kB / 1.211 GB, free: 6.355 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.069e-05/0.3166, allocations: 20.78 kB / 1.211 GB, free: 6.336 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001306/0.3167, allocations: 176.3 kB / 1.211 GB, free: 6.125 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.693e-05/0.3168, allocations: 12.38 kB / 1.211 GB, free: 6.113 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.103e-05/0.3168, allocations: 12.38 kB / 1.211 GB, free: 6.102 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001298/0.317, allocations: 61.97 kB / 1.211 GB, free: 6.035 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.516e-06/0.317, allocations: 0 / 1.211 GB, free: 6.035 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.294e-05/0.317, allocations: 3.984 kB / 1.211 GB, free: 6.031 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.023e-06/0.317, allocations: 4 kB / 1.211 GB, free: 6.027 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.496e-05/0.3171, allocations: 19.94 kB / 1.211 GB, free: 6.008 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005902/0.3177, allocations: 420.4 kB / 1.212 GB, free: 5.547 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 6.524e-05/0.3177, allocations: 30.67 kB / 1.212 GB, free: 5.508 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.849e-05/0.3178, allocations: 20.84 kB / 1.212 GB, free: 5.484 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 9.989e-06/0.3178, allocations: 3.938 kB / 1.212 GB, free: 5.48 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001705/0.318, allocations: 99.34 kB / 1.212 GB, free: 5.371 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=10): time 1.513e-06/0.318, allocations: 0 / 1.212 GB, free: 5.371 MB / 0.9669 GB Notification: Performance of matching and sorting (n=10): time 0.0002995/0.3183, allocations: 137.5 kB / 1.212 GB, free: 5.23 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.167e-05/0.3183, allocations: 55.41 kB / 1.212 GB, free: 5.164 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001038/0.3184, allocations: 135.4 kB / 1.212 GB, free: 5.023 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 4.088e-05/0.3185, allocations: 37.7 kB / 1.212 GB, free: 4.98 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.908e-05/0.3186, allocations: 96.69 kB / 1.212 GB, free: 4.883 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.108e-05/0.3186, allocations: 19.72 kB / 1.212 GB, free: 4.863 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000114/0.3187, allocations: 69.67 kB / 1.212 GB, free: 4.789 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 9.768e-05/0.3188, allocations: 322.8 kB / 1.213 GB, free: 4.465 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000179/0.319, allocations: 99.84 kB / 1.213 GB, free: 4.367 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001986/0.3192, allocations: 138 kB / 1.213 GB, free: 4.211 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002499/0.3195, allocations: 236.7 kB / 1.213 GB, free: 3.941 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.601e-06/0.3195, allocations: 3.984 kB / 1.213 GB, free: 3.938 MB / 0.9669 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005506/0.32, allocations: 374.3 kB / 1.213 GB, free: 3.547 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 6.934e-05/0.3201, allocations: 107 kB / 1.213 GB, free: 3.426 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.3201, allocations: 4 kB / 1.213 GB, free: 3.422 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.536e-05/0.3201, allocations: 192 / 1.213 GB, free: 3.422 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.317e-05/0.3202, allocations: 8 kB / 1.213 GB, free: 3.414 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.394e-06/0.3202, allocations: 7.938 kB / 1.213 GB, free: 3.406 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004817/0.3207, allocations: 83.75 kB / 1.214 GB, free: 3.324 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.055e-05/0.3207, allocations: 15.98 kB / 1.214 GB, free: 3.309 MB / 0.9669 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.000123/0.3209, allocations: 137.7 kB / 1.214 GB, free: 3.164 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.946e-05/0.3209, allocations: 11.89 kB / 1.214 GB, free: 3.152 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.188e-05/0.3209, allocations: 8.375 kB / 1.214 GB, free: 3.141 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.43e-06/0.3209, allocations: 7.984 kB / 1.214 GB, free: 3.133 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.3209, allocations: 0 / 1.214 GB, free: 3.133 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.3209, allocations: 0 / 1.214 GB, free: 3.133 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001516/0.3211, allocations: 197.5 kB / 1.214 GB, free: 2.891 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.3211, allocations: 0 / 1.214 GB, free: 2.891 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.074e-05/0.3211, allocations: 0 / 1.214 GB, free: 2.891 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.3211, allocations: 4 kB / 1.214 GB, free: 2.887 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.027e-06/0.3211, allocations: 4 kB / 1.214 GB, free: 2.883 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.3212, allocations: 0 / 1.214 GB, free: 2.883 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.3212, allocations: 0 / 1.214 GB, free: 2.883 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001782/0.3213, allocations: 144.9 kB / 1.214 GB, free: 2.723 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.08e-05/0.3214, allocations: 85.02 kB / 1.214 GB, free: 2.621 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.72e-05/0.3214, allocations: 0 / 1.214 GB, free: 2.621 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.356e-05/0.3214, allocations: 4 kB / 1.214 GB, free: 2.617 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.706e-05/0.3215, allocations: 15.92 kB / 1.214 GB, free: 2.602 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.047e-06/0.3215, allocations: 7.984 kB / 1.214 GB, free: 2.594 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.193e-05/0.3216, allocations: 101.5 kB / 1.214 GB, free: 2.496 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3216, allocations: 0 / 1.214 GB, free: 2.496 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.000263/0.3218, allocations: 44 kB / 1.214 GB, free: 2.453 MB / 0.9669 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.0004624/0.3223, allocations: 0.6788 MB / 1.215 GB, free: 1.746 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0004454/0.3228, allocations: 362 kB / 1.215 GB, free: 1.355 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.3228, allocations: 3.938 kB / 1.215 GB, free: 1.352 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 6.078e-05/0.3228, allocations: 35.98 kB / 1.215 GB, free: 1.316 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002654/0.3231, allocations: 19.98 kB / 1.215 GB, free: 1.297 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002455/0.3256, allocations: 2.055 MB / 1.217 GB, free: 15.1 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002336/0.3258, allocations: 0.6963 MB / 1.218 GB, free: 14.38 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.23e-05/0.3259, allocations: 12.42 kB / 1.218 GB, free: 14.36 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.266e-05/0.3259, allocations: 27.42 kB / 1.218 GB, free: 14.34 MB / 0.9825 GB Notification: Performance of SimCode: time 1.252e-06/0.3259, allocations: 0 / 1.218 GB, free: 14.34 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01979/0.3457, allocations: 3.922 MB / 1.222 GB, free: 10.55 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.39/7.735, allocations: 2.281 kB / 1.222 GB, free: 10.55 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Switch_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Switch.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches