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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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: "" <> 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.004699/0.004698, allocations: 99.67 kB / 15.73 MB, free: 6.043 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.001298/0.001298, allocations: 199.4 kB / 16.68 MB, free: 5.965 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.425/1.425, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.919/2.919, allocations: 482.4 MB / 0.7548 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001912/0.001913, allocations: 64.11 kB / 1.083 GB, free: 12.5 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3013/0.3033, allocations: 162.2 MB / 1.241 GB, free: 10.16 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.001859/0.3052, allocations: 0.7656 MB / 1.242 GB, free: 9.391 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001665/0.3068, allocations: 1.236 MB / 1.243 GB, free: 8.141 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.215e-05/0.3069, allocations: 4 kB / 1.243 GB, free: 8.137 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 4.694e-05/0.307, allocations: 15.75 kB / 1.243 GB, free: 8.121 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 8.288e-05/0.3071, allocations: 15.84 kB / 1.243 GB, free: 8.105 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007327/0.3078, allocations: 258.3 kB / 1.244 GB, free: 7.859 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.000351/0.3082, allocations: 271.5 kB / 1.244 GB, free: 7.594 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000151/0.3083, allocations: 57.08 kB / 1.244 GB, free: 7.539 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001279/0.3085, allocations: 99.8 kB / 1.244 GB, free: 7.441 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001781/0.3086, allocations: 107.7 kB / 1.244 GB, free: 7.336 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 4.527e-05/0.3087, allocations: 24 kB / 1.244 GB, free: 7.312 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 9.069e-05/0.3088, allocations: 35.98 kB / 1.244 GB, free: 7.277 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 4.248e-05/0.3088, allocations: 35.91 kB / 1.244 GB, free: 7.242 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001238/0.309, allocations: 95.67 kB / 1.244 GB, free: 7.148 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003123/0.3093, allocations: 251.1 kB / 1.245 GB, free: 6.902 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 2.855e-06/0.3093, allocations: 4 kB / 1.245 GB, free: 6.898 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.222e-06/0.3093, allocations: 0 / 1.245 GB, free: 6.898 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.578e-06/0.3093, allocations: 0 / 1.245 GB, free: 6.898 MB / 0.9981 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.0006625/0.31, allocations: 0.4906 MB / 1.245 GB, free: 6.344 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.683e-05/0.31, allocations: 8.031 kB / 1.245 GB, free: 6.336 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.79e-05/0.3101, allocations: 50.73 kB / 1.245 GB, free: 6.277 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.159e-05/0.3102, allocations: 20.88 kB / 1.245 GB, free: 6.258 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005489/0.3107, allocations: 244.2 kB / 1.245 GB, free: 5.98 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.201e-05/0.3107, allocations: 12.38 kB / 1.245 GB, free: 5.969 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.591e-05/0.3108, allocations: 24.36 kB / 1.245 GB, free: 5.945 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002383/0.311, allocations: 134.7 kB / 1.246 GB, free: 5.809 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.945e-06/0.3111, allocations: 0 / 1.246 GB, free: 5.809 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.78e-05/0.3111, allocations: 7.984 kB / 1.246 GB, free: 5.801 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.753e-06/0.3111, allocations: 4 kB / 1.246 GB, free: 5.797 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001322/0.3112, allocations: 71.91 kB / 1.246 GB, free: 5.727 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005912/0.3118, allocations: 452.3 kB / 1.246 GB, free: 5.234 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001771/0.312, allocations: 98.52 kB / 1.246 GB, free: 5.129 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.898e-05/0.3121, allocations: 44.83 kB / 1.246 GB, free: 5.082 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.024e-05/0.3121, allocations: 3.938 kB / 1.246 GB, free: 5.078 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002866/0.3124, allocations: 135.2 kB / 1.246 GB, free: 4.934 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=16): time 1.433e-06/0.3124, allocations: 0 / 1.246 GB, free: 4.934 MB / 0.9981 GB Notification: Performance of matching and sorting (n=16): time 0.0004373/0.3129, allocations: 240.3 kB / 1.247 GB, free: 4.695 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.911e-05/0.3129, allocations: 55.41 kB / 1.247 GB, free: 4.629 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001207/0.313, allocations: 148.6 kB / 1.247 GB, free: 4.477 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 3.543e-05/0.3131, allocations: 33.7 kB / 1.247 GB, free: 4.438 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 8.848e-05/0.3132, allocations: 112.7 kB / 1.247 GB, free: 4.324 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 3.315e-05/0.3132, allocations: 39.69 kB / 1.247 GB, free: 4.285 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001229/0.3133, allocations: 77.62 kB / 1.247 GB, free: 4.203 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001671/0.3135, allocations: 322.8 kB / 1.247 GB, free: 3.879 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001456/0.3137, allocations: 67.95 kB / 1.247 GB, free: 3.812 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002062/0.3139, allocations: 132.1 kB / 1.248 GB, free: 3.66 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002715/0.3142, allocations: 211 kB / 1.248 GB, free: 3.414 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.3142, allocations: 4 kB / 1.248 GB, free: 3.41 MB / 0.9981 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004959/0.3147, allocations: 307.2 kB / 1.248 GB, free: 3.094 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 6.98e-05/0.3148, allocations: 75.33 kB / 1.248 GB, free: 3.008 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.099e-06/0.3148, allocations: 0 / 1.248 GB, free: 3.008 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.516e-05/0.3148, allocations: 4 kB / 1.248 GB, free: 3.004 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.661e-05/0.3148, allocations: 7.938 kB / 1.248 GB, free: 2.996 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.584e-06/0.3148, allocations: 4.25 kB / 1.248 GB, free: 2.992 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003389/0.3152, allocations: 63.83 kB / 1.248 GB, free: 2.93 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.435e-05/0.3152, allocations: 15.98 kB / 1.248 GB, free: 2.914 MB / 0.9981 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.0001317/0.3154, allocations: 139 kB / 1.248 GB, free: 2.77 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.221e-05/0.3154, allocations: 15.88 kB / 1.248 GB, free: 2.754 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.594e-05/0.3154, allocations: 12.84 kB / 1.248 GB, free: 2.734 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.3154, allocations: 4 kB / 1.248 GB, free: 2.73 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.3154, allocations: 0 / 1.248 GB, free: 2.73 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.3155, allocations: 0 / 1.248 GB, free: 2.73 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000513/0.316, allocations: 490.3 kB / 1.249 GB, free: 2.195 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.426e-06/0.316, allocations: 4 kB / 1.249 GB, free: 2.191 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.608e-05/0.316, allocations: 7.938 kB / 1.249 GB, free: 2.184 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.774e-06/0.316, allocations: 0 / 1.249 GB, free: 2.184 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.646e-05/0.316, allocations: 7.984 kB / 1.249 GB, free: 2.176 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.316, allocations: 4 kB / 1.249 GB, free: 2.172 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.316, allocations: 0 / 1.249 GB, free: 2.172 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003119/0.3164, allocations: 287.3 kB / 1.249 GB, free: 1.875 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.223e-05/0.3164, allocations: 85.06 kB / 1.249 GB, free: 1.773 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.102e-05/0.3164, allocations: 7.984 kB / 1.249 GB, free: 1.766 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.158e-05/0.3165, allocations: 4 kB / 1.249 GB, free: 1.762 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.581e-05/0.3166, allocations: 15.98 kB / 1.249 GB, free: 1.746 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.378e-05/0.3166, allocations: 11.98 kB / 1.249 GB, free: 1.734 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 6.706e-05/0.3167, allocations: 103.3 kB / 1.249 GB, free: 1.633 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3167, allocations: 3.938 kB / 1.249 GB, free: 1.629 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003046/0.317, allocations: 47.89 kB / 1.249 GB, free: 1.582 MB / 0.9981 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.0007079/0.3177, allocations: 0.8244 MB / 1.25 GB, free: 0.7344 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0004249/0.3181, allocations: 306.5 kB / 1.251 GB, free: 420 kB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.3181, allocations: 3.938 kB / 1.251 GB, free: 416 kB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001109/0.3183, allocations: 75.91 kB / 1.251 GB, free: 340 kB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003035/0.3186, allocations: 21.02 kB / 1.251 GB, free: 320 kB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5365/0.8551, allocations: 2.034 MB / 1.253 GB, free: 13.71 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001475/0.8553, allocations: 0.7099 MB / 1.253 GB, free: 13.01 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 6.305e-05/0.8553, allocations: 12.94 kB / 1.253 GB, free: 13 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.381e-05/0.8554, allocations: 37.8 kB / 1.253 GB, free: 13 MB / 0.9981 GB Notification: Performance of SimCode: time 9.92e-07/0.8554, allocations: 0 / 1.253 GB, free: 13 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02554/0.881, allocations: 3.607 MB / 1.257 GB, free: 12.57 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.919/8.8, allocations: 5.703 kB / 1.257 GB, free: 12.57 MB / 0.9981 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch_res.csv --start-time 0 --stop-time 10 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 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.csv","/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