Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001678/0.001678, allocations: 99.75 kB / 18.95 MB, free: 2.832 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001618/0.001618, allocations: 220.9 kB / 22.25 MB, free: 5.105 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.476/1.476, allocations: 230.6 MB / 256 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.171/3.171, allocations: 0.49 GB / 0.7951 GB, free: 35.57 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Logical_Validation_Latch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Logical_Validation_Latch",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002026/0.002026, allocations: 69.39 kB / 1.154 GB, free: 25.46 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3735/0.3756, allocations: 176.1 MB / 1.326 GB, free: 1.523 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.002429/0.378, allocations: 0.7536 MB / 1.327 GB, free: 0.7734 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001872/0.3799, allocations: 1.268 MB / 1.328 GB, free: 15.49 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.302e-05/0.3799, allocations: 0 / 1.328 GB, free: 15.49 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 4.81e-05/0.38, allocations: 7.875 kB / 1.328 GB, free: 15.48 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 9.748e-05/0.3801, allocations: 27.8 kB / 1.328 GB, free: 15.46 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008074/0.3809, allocations: 251 kB / 1.328 GB, free: 15.22 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003715/0.3813, allocations: 255.6 kB / 1.328 GB, free: 14.97 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001612/0.3814, allocations: 33.3 kB / 1.328 GB, free: 14.93 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001585/0.3816, allocations: 107.7 kB / 1.328 GB, free: 14.83 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001911/0.3818, allocations: 107.7 kB / 1.329 GB, free: 14.72 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 4.827e-05/0.3818, allocations: 24 kB / 1.329 GB, free: 14.7 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 9.545e-05/0.3819, allocations: 43.98 kB / 1.329 GB, free: 14.66 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 5.189e-05/0.382, allocations: 43.77 kB / 1.329 GB, free: 14.61 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001261/0.3821, allocations: 83.75 kB / 1.329 GB, free: 14.53 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003621/0.3825, allocations: 243.5 kB / 1.329 GB, free: 14.29 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 7.144e-06/0.3825, allocations: 7.984 kB / 1.329 GB, free: 14.29 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.372e-06/0.3825, allocations: 0 / 1.329 GB, free: 14.29 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.76e-06/0.3825, allocations: 3.938 kB / 1.329 GB, free: 14.28 MB / 1.029 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.0007129/0.3832, allocations: 421.2 kB / 1.329 GB, free: 13.82 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.417e-05/0.3832, allocations: 8.031 kB / 1.329 GB, free: 13.82 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.934e-05/0.3833, allocations: 46.72 kB / 1.329 GB, free: 13.76 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.977e-05/0.3834, allocations: 28.83 kB / 1.33 GB, free: 13.73 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005497/0.3839, allocations: 174.5 kB / 1.33 GB, free: 13.54 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.739e-05/0.384, allocations: 24.23 kB / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.076e-05/0.384, allocations: 16.38 kB / 1.33 GB, free: 13.5 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002642/0.3843, allocations: 135.7 kB / 1.33 GB, free: 13.36 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/0.3843, allocations: 0 / 1.33 GB, free: 13.36 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.794e-05/0.3843, allocations: 4 kB / 1.33 GB, free: 13.36 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/0.3843, allocations: 0 / 1.33 GB, free: 13.36 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001437/0.3844, allocations: 71.95 kB / 1.33 GB, free: 13.29 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006508/0.3851, allocations: 379.5 kB / 1.33 GB, free: 12.88 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001853/0.3853, allocations: 86.47 kB / 1.33 GB, free: 12.78 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.974e-05/0.3853, allocations: 32.84 kB / 1.33 GB, free: 12.75 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 8.696e-06/0.3853, allocations: 3.938 kB / 1.33 GB, free: 12.74 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003145/0.3857, allocations: 129.6 kB / 1.331 GB, free: 12.61 MB / 1.029 GB Notification: Performance of pre-optimization done (n=16): time 1.533e-06/0.3857, allocations: 0 / 1.331 GB, free: 12.61 MB / 1.029 GB Notification: Performance of matching and sorting (n=16): time 0.0004711/0.3861, allocations: 249.4 kB / 1.331 GB, free: 12.36 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.191e-05/0.3862, allocations: 55.41 kB / 1.331 GB, free: 12.29 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001376/0.3863, allocations: 149.6 kB / 1.331 GB, free: 12.13 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.044e-05/0.3864, allocations: 33.7 kB / 1.331 GB, free: 12.09 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 8.896e-05/0.3865, allocations: 108.6 kB / 1.331 GB, free: 11.98 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.914e-05/0.3865, allocations: 31.78 kB / 1.331 GB, free: 11.95 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001289/0.3866, allocations: 73.67 kB / 1.331 GB, free: 11.87 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001692/0.3868, allocations: 322.8 kB / 1.331 GB, free: 11.55 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001939/0.387, allocations: 127.4 kB / 1.332 GB, free: 11.41 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002325/0.3872, allocations: 188.3 kB / 1.332 GB, free: 11.19 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002792/0.3875, allocations: 221 kB / 1.332 GB, free: 10.93 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.3875, allocations: 0 / 1.332 GB, free: 10.93 MB / 1.029 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005476/0.388, allocations: 384.2 kB / 1.332 GB, free: 10.53 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 6.605e-05/0.3881, allocations: 67.39 kB / 1.332 GB, free: 10.45 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.717e-06/0.3881, allocations: 7.938 kB / 1.332 GB, free: 10.44 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.932e-05/0.3881, allocations: 4 kB / 1.332 GB, free: 10.44 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.845e-05/0.3882, allocations: 7.984 kB / 1.332 GB, free: 10.43 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.406e-06/0.3882, allocations: 7.938 kB / 1.332 GB, free: 10.42 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003238/0.3885, allocations: 59.83 kB / 1.333 GB, free: 10.36 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.256e-05/0.3885, allocations: 16.09 kB / 1.333 GB, free: 10.35 MB / 1.029 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.0001397/0.3887, allocations: 134.3 kB / 1.333 GB, free: 10.21 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.31e-05/0.3887, allocations: 15.89 kB / 1.333 GB, free: 10.19 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.821e-05/0.3887, allocations: 12.78 kB / 1.333 GB, free: 10.18 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.449e-06/0.3887, allocations: 4 kB / 1.333 GB, free: 10.17 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.3887, allocations: 0 / 1.333 GB, free: 10.17 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.3887, allocations: 3.984 kB / 1.333 GB, free: 10.17 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005122/0.3893, allocations: 451.9 kB / 1.333 GB, free: 9.68 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.3893, allocations: 4 kB / 1.333 GB, free: 9.676 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.319e-05/0.3893, allocations: 4 kB / 1.333 GB, free: 9.672 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.3893, allocations: 0 / 1.333 GB, free: 9.672 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.744e-05/0.3893, allocations: 11.92 kB / 1.333 GB, free: 9.66 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.3893, allocations: 4 kB / 1.333 GB, free: 9.656 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.3893, allocations: 0 / 1.333 GB, free: 9.656 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003393/0.3896, allocations: 299.2 kB / 1.333 GB, free: 9.348 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.395e-05/0.3896, allocations: 7.953 kB / 1.333 GB, free: 9.34 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.611e-05/0.3897, allocations: 7.984 kB / 1.333 GB, free: 9.332 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.953e-05/0.3897, allocations: 0 / 1.333 GB, free: 9.332 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.879e-05/0.3898, allocations: 19.95 kB / 1.333 GB, free: 9.312 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.218e-05/0.3898, allocations: 12 kB / 1.333 GB, free: 9.301 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.396e-05/0.3899, allocations: 102.8 kB / 1.334 GB, free: 9.203 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3899, allocations: 0 / 1.334 GB, free: 9.203 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003095/0.3902, allocations: 55.88 kB / 1.334 GB, free: 9.148 MB / 1.029 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.0007171/0.3909, allocations: 0.8294 MB / 1.334 GB, free: 8.293 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.000441/0.3913, allocations: 332.3 kB / 1.335 GB, free: 7.934 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3913, allocations: 0.5 kB / 1.335 GB, free: 7.934 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001015/0.3914, allocations: 59.97 kB / 1.335 GB, free: 7.875 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003095/0.3917, allocations: 27.02 kB / 1.335 GB, free: 7.852 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002574/0.3943, allocations: 2.295 MB / 1.337 GB, free: 5.363 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001185/0.3944, allocations: 106.7 kB / 1.337 GB, free: 5.238 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.701e-05/0.3945, allocations: 9.094 kB / 1.337 GB, free: 5.23 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.83e-05/0.3945, allocations: 35.42 kB / 1.337 GB, free: 5.195 MB / 1.029 GB Notification: Performance of SimCode: time 3.71e-07/0.3945, allocations: 0 / 1.337 GB, free: 5.195 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03127/0.4258, allocations: 4.402 MB / 1.342 GB, free: 0.9648 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.08/11.51, allocations: 3.719 kB / 1.342 GB, free: 0.9648 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Latch_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Logical_Validation_Latch_fmu --startTime=0 --stopTime=10 --stepSize=0.004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Logical_Validation_Latch.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Latch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Logical_Validation_Latch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.275712272996316]