Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.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.Latch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Latch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Latch",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.001131/0.001131, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001145/0.001145, allocations: 194 kB / 16.53 MB, free: 6.391 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.283/1.283, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.729/2.729, allocations: 461.9 MB / 0.7346 GB, free: 14.67 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001235/0.001235, allocations: 66.78 kB / 0.8992 GB, free: 36.95 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3093/0.3105, allocations: 157.4 MB / 1.053 GB, free: 8.195 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.002497/0.3131, allocations: 0.7712 MB / 1.054 GB, free: 7.422 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001796/0.3149, allocations: 1.264 MB / 1.055 GB, free: 6.145 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.706e-05/0.315, allocations: 0 / 1.055 GB, free: 6.145 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 4.917e-05/0.3151, allocations: 7.875 kB / 1.055 GB, free: 6.137 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 9.666e-05/0.3152, allocations: 23.78 kB / 1.055 GB, free: 6.113 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008874/0.3161, allocations: 253.9 kB / 1.055 GB, free: 5.871 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003644/0.3165, allocations: 259.7 kB / 1.055 GB, free: 5.617 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001875/0.3167, allocations: 45.09 kB / 1.055 GB, free: 5.574 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001984/0.3169, allocations: 111.7 kB / 1.056 GB, free: 5.465 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000151/0.3171, allocations: 91.7 kB / 1.056 GB, free: 5.375 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 6.578e-05/0.3171, allocations: 24 kB / 1.056 GB, free: 5.352 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001358/0.3173, allocations: 35.98 kB / 1.056 GB, free: 5.316 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 5.015e-05/0.3173, allocations: 35.89 kB / 1.056 GB, free: 5.281 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001263/0.3175, allocations: 91.69 kB / 1.056 GB, free: 5.191 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003939/0.3179, allocations: 251.5 kB / 1.056 GB, free: 4.945 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.3179, allocations: 0 / 1.056 GB, free: 4.945 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.605e-06/0.3179, allocations: 0 / 1.056 GB, free: 4.945 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.405e-06/0.3179, allocations: 0 / 1.056 GB, free: 4.945 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.0007826/0.3187, allocations: 498.5 kB / 1.057 GB, free: 4.395 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.077e-05/0.3187, allocations: 8.625 kB / 1.057 GB, free: 4.387 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.395e-05/0.3188, allocations: 46.73 kB / 1.057 GB, free: 4.332 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.025e-05/0.3189, allocations: 24.77 kB / 1.057 GB, free: 4.309 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006549/0.3196, allocations: 240.2 kB / 1.057 GB, free: 4.035 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.125e-05/0.3196, allocations: 16.36 kB / 1.057 GB, free: 4.02 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.636e-05/0.3197, allocations: 16.38 kB / 1.057 GB, free: 4.004 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002443/0.3199, allocations: 139.2 kB / 1.057 GB, free: 3.863 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.085e-05/0.3199, allocations: 3.984 kB / 1.057 GB, free: 3.859 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.91e-05/0.32, allocations: 4 kB / 1.057 GB, free: 3.855 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.574e-06/0.32, allocations: 4 kB / 1.057 GB, free: 3.852 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001439/0.3201, allocations: 71.89 kB / 1.057 GB, free: 3.781 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006525/0.3208, allocations: 464.1 kB / 1.058 GB, free: 3.277 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001727/0.321, allocations: 90.55 kB / 1.058 GB, free: 3.18 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.561e-05/0.321, allocations: 44.83 kB / 1.058 GB, free: 3.133 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 9.899e-06/0.3211, allocations: 3.938 kB / 1.058 GB, free: 3.129 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002668/0.3213, allocations: 133.4 kB / 1.058 GB, free: 2.988 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=16): time 2.224e-06/0.3213, allocations: 0 / 1.058 GB, free: 2.988 MB / 0.8106 GB Notification: Performance of matching and sorting (n=16): time 0.0004374/0.3218, allocations: 237.4 kB / 1.058 GB, free: 2.75 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.155e-05/0.3218, allocations: 55.41 kB / 1.058 GB, free: 2.684 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001301/0.322, allocations: 148.5 kB / 1.058 GB, free: 2.531 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.794e-05/0.322, allocations: 33.7 kB / 1.058 GB, free: 2.492 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 9.171e-05/0.3221, allocations: 113.1 kB / 1.058 GB, free: 2.379 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.062e-05/0.3222, allocations: 39.53 kB / 1.058 GB, free: 2.34 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001112/0.3223, allocations: 69.69 kB / 1.058 GB, free: 2.266 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001174/0.3224, allocations: 322.8 kB / 1.059 GB, free: 1.941 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001472/0.3226, allocations: 67.95 kB / 1.059 GB, free: 1.875 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001928/0.3228, allocations: 133.7 kB / 1.059 GB, free: 1.719 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002649/0.323, allocations: 213.1 kB / 1.059 GB, free: 1.473 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.3231, allocations: 4 kB / 1.059 GB, free: 1.469 MB / 0.8106 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005149/0.3236, allocations: 312.5 kB / 1.059 GB, free: 1.145 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 6.592e-05/0.3236, allocations: 71.39 kB / 1.06 GB, free: 1.062 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-06/0.3237, allocations: 0 / 1.06 GB, free: 1.062 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.062e-05/0.3237, allocations: 4 kB / 1.06 GB, free: 1.059 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.938e-05/0.3237, allocations: 7.938 kB / 1.06 GB, free: 1.051 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.103e-05/0.3237, allocations: 8.234 kB / 1.06 GB, free: 1.043 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003593/0.3241, allocations: 55.94 kB / 1.06 GB, free: 0.9883 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.275e-05/0.3241, allocations: 12 kB / 1.06 GB, free: 0.9766 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition7,$whenCondition8,$whenCondition5,$whenCondition6,truCleFalIni.y,truCleTruIni.y,latInp.y,$PRE.latInp.y,cleInp.y,$PRE.cleInp.y,swiCleInp1.y,swiCleInp.y,falCleFalIni.y,falCleTruIni.y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,tru.y,fal.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 18 * 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.0001517/0.3243, allocations: 142.3 kB / 1.06 GB, free: 0.8281 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.635e-05/0.3243, allocations: 19.75 kB / 1.06 GB, free: 0.8086 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.628e-05/0.3244, allocations: 16.78 kB / 1.06 GB, free: 0.793 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.22e-06/0.3244, allocations: 4 kB / 1.06 GB, free: 0.7891 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/0.3244, allocations: 0 / 1.06 GB, free: 0.7891 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/0.3244, allocations: 3.984 kB / 1.06 GB, free: 0.7852 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005283/0.325, allocations: 480.6 kB / 1.06 GB, free: 268 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.325, allocations: 4 kB / 1.06 GB, free: 264 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.364e-05/0.325, allocations: 7.922 kB / 1.06 GB, free: 256 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.42e-06/0.325, allocations: 4 kB / 1.06 GB, free: 252 kB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.886e-05/0.325, allocations: 8 kB / 1.06 GB, free: 244 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.248e-06/0.325, allocations: 0 / 1.06 GB, free: 244 kB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.522e-06/0.325, allocations: 3.938 kB / 1.06 GB, free: 240 kB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003093/0.3254, allocations: 283.3 kB / 1.061 GB, free: 15.94 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.352e-05/0.3254, allocations: 88.94 kB / 1.061 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.492e-05/0.3255, allocations: 8 kB / 1.061 GB, free: 15.83 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.067e-05/0.3255, allocations: 3.984 kB / 1.061 GB, free: 15.82 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.72e-05/0.3256, allocations: 19.98 kB / 1.061 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.291e-05/0.3256, allocations: 8 kB / 1.061 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.115e-05/0.3257, allocations: 103.2 kB / 1.061 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of sort global known variables: time 9e-08/0.3257, allocations: 0 / 1.061 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003332/0.326, allocations: 47.89 kB / 1.061 GB, free: 15.65 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition7,$whenCondition8,$whenCondition5,$whenCondition6,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,falCleTruIni.y,truCleTruIni.y,falCleFalIni.y,truCleFalIni.y,swiCleInp.y,swiCleInp1.y,cleInp.y,latInp.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.0006174/0.3266, allocations: 0.828 MB / 1.062 GB, free: 14.8 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004093/0.3271, allocations: 302.5 kB / 1.062 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.3271, allocations: 3.938 kB / 1.062 GB, free: 14.47 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001038/0.3272, allocations: 71.98 kB / 1.062 GB, free: 14.4 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003319/0.3275, allocations: 20.47 kB / 1.062 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002241/0.3298, allocations: 2.04 MB / 1.064 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003005/0.3301, allocations: 0.7046 MB / 1.065 GB, free: 11.47 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 5.483e-05/0.3301, allocations: 17.08 kB / 1.065 GB, free: 11.45 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.032e-05/0.3302, allocations: 35.42 kB / 1.065 GB, free: 11.42 MB / 0.8262 GB Notification: Performance of SimCode: time 1.463e-06/0.3302, allocations: 0 / 1.065 GB, free: 11.42 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02515/0.3554, allocations: 3.557 MB / 1.068 GB, free: 7.957 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.317/7.673, allocations: 12.77 kB / 1.068 GB, free: 7.945 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Latch_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Latch.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_Latch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches