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.001936/0.001936, allocations: 114.3 kB / 18.94 MB, free: 2.957 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.002557/0.002557, allocations: 218.2 kB / 22.26 MB, free: 5.117 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.53/1.53, allocations: 230.6 MB / 256 MB, free: 8.031 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.19/3.19, allocations: 0.49 GB / 0.7951 GB, free: 33.45 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.001986/0.001986, allocations: 64.42 kB / 1.154 GB, free: 25.7 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3774/0.3793, allocations: 176.1 MB / 1.326 GB, free: 1.953 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.002634/0.382, allocations: 0.7781 MB / 1.327 GB, free: 1.18 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002258/0.3842, allocations: 1.284 MB / 1.328 GB, free: 15.88 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001082/0.3843, allocations: 4 kB / 1.328 GB, free: 15.88 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 5.4e-05/0.3844, allocations: 11.86 kB / 1.328 GB, free: 15.87 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0001065/0.3845, allocations: 15.8 kB / 1.328 GB, free: 15.85 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008544/0.3854, allocations: 263.6 kB / 1.328 GB, free: 15.6 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.000385/0.3857, allocations: 247.6 kB / 1.328 GB, free: 15.36 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001611/0.3859, allocations: 45.28 kB / 1.328 GB, free: 15.31 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001806/0.3861, allocations: 107.7 kB / 1.329 GB, free: 15.21 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001908/0.3863, allocations: 103.6 kB / 1.329 GB, free: 15.11 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 5.504e-05/0.3863, allocations: 24 kB / 1.329 GB, free: 15.08 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001338/0.3865, allocations: 39.98 kB / 1.329 GB, free: 15.04 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 4.232e-05/0.3865, allocations: 35.91 kB / 1.329 GB, free: 15.01 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001227/0.3866, allocations: 95.67 kB / 1.329 GB, free: 14.91 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003651/0.387, allocations: 247.4 kB / 1.329 GB, free: 14.67 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 8.556e-06/0.387, allocations: 4 kB / 1.329 GB, free: 14.67 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.813e-06/0.387, allocations: 0 / 1.329 GB, free: 14.67 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.028e-05/0.387, allocations: 3.938 kB / 1.329 GB, free: 14.66 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.0008531/0.3879, allocations: 426.6 kB / 1.33 GB, free: 14.2 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.757e-05/0.3879, allocations: 12.03 kB / 1.33 GB, free: 14.19 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.827e-05/0.388, allocations: 42.73 kB / 1.33 GB, free: 14.14 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.619e-05/0.3881, allocations: 28.84 kB / 1.33 GB, free: 14.11 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006061/0.3887, allocations: 182.5 kB / 1.33 GB, free: 13.91 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.447e-05/0.3887, allocations: 16.3 kB / 1.33 GB, free: 13.89 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.62e-05/0.3888, allocations: 20.38 kB / 1.33 GB, free: 13.88 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002872/0.3891, allocations: 131.9 kB / 1.33 GB, free: 13.74 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.188e-05/0.3891, allocations: 0 / 1.33 GB, free: 13.74 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.213e-05/0.3891, allocations: 7.984 kB / 1.33 GB, free: 13.73 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.585e-06/0.3891, allocations: 4 kB / 1.33 GB, free: 13.73 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001553/0.3893, allocations: 71.95 kB / 1.33 GB, free: 13.66 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000651/0.3899, allocations: 419.3 kB / 1.33 GB, free: 13.21 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001771/0.3901, allocations: 82.53 kB / 1.33 GB, free: 13.12 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.065e-05/0.3902, allocations: 36.83 kB / 1.331 GB, free: 13.08 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.075e-05/0.3902, allocations: 3.938 kB / 1.331 GB, free: 13.07 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003287/0.3905, allocations: 127.3 kB / 1.331 GB, free: 12.94 MB / 1.029 GB Notification: Performance of pre-optimization done (n=16): time 1.412e-06/0.3905, allocations: 0 / 1.331 GB, free: 12.94 MB / 1.029 GB Notification: Performance of matching and sorting (n=16): time 0.0004728/0.391, allocations: 251.8 kB / 1.331 GB, free: 12.69 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.301e-05/0.391, allocations: 51.41 kB / 1.331 GB, free: 12.62 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001319/0.3912, allocations: 141.7 kB / 1.331 GB, free: 12.48 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.692e-05/0.3912, allocations: 29.7 kB / 1.331 GB, free: 12.44 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 9.467e-05/0.3913, allocations: 120.6 kB / 1.331 GB, free: 12.32 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.866e-05/0.3913, allocations: 27.81 kB / 1.331 GB, free: 12.29 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001192/0.3914, allocations: 69.67 kB / 1.331 GB, free: 12.21 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001729/0.3916, allocations: 322.8 kB / 1.332 GB, free: 11.89 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000139/0.3917, allocations: 67.95 kB / 1.332 GB, free: 11.82 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001939/0.3919, allocations: 133 kB / 1.332 GB, free: 11.67 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000277/0.3922, allocations: 218.9 kB / 1.332 GB, free: 11.41 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.3922, allocations: 0 / 1.332 GB, free: 11.41 MB / 1.029 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005319/0.3928, allocations: 327.2 kB / 1.332 GB, free: 11.08 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 6.519e-05/0.3928, allocations: 71.39 kB / 1.332 GB, free: 11 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.3928, allocations: 256 / 1.332 GB, free: 11 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.792e-05/0.3928, allocations: 8 kB / 1.332 GB, free: 10.99 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.753e-05/0.3929, allocations: 4 kB / 1.332 GB, free: 10.98 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.58e-05/0.3929, allocations: 15.91 kB / 1.332 GB, free: 10.97 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003159/0.3932, allocations: 55.84 kB / 1.332 GB, free: 10.91 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.354e-05/0.3932, allocations: 15.98 kB / 1.333 GB, free: 10.9 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.0001448/0.3934, allocations: 134.4 kB / 1.333 GB, free: 10.76 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.634e-05/0.3934, allocations: 19.89 kB / 1.333 GB, free: 10.74 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.743e-05/0.3934, allocations: 8.781 kB / 1.333 GB, free: 10.73 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.3934, allocations: 4 kB / 1.333 GB, free: 10.72 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.3935, allocations: 3.938 kB / 1.333 GB, free: 10.72 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.184e-06/0.3935, allocations: 3.984 kB / 1.333 GB, free: 10.71 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005404/0.394, allocations: 449.4 kB / 1.333 GB, free: 10.23 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.394, allocations: 0 / 1.333 GB, free: 10.23 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.537e-05/0.394, allocations: 11.94 kB / 1.333 GB, free: 10.21 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/0.394, allocations: 3.984 kB / 1.333 GB, free: 10.21 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.599e-05/0.394, allocations: 8 kB / 1.333 GB, free: 10.2 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.394, allocations: 4 kB / 1.333 GB, free: 10.2 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.394, allocations: 0 / 1.333 GB, free: 10.2 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003612/0.3944, allocations: 291.3 kB / 1.333 GB, free: 9.898 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.927e-05/0.3944, allocations: 11.94 kB / 1.333 GB, free: 9.887 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.334e-05/0.3944, allocations: 4 kB / 1.333 GB, free: 9.883 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.878e-05/0.3945, allocations: 4 kB / 1.333 GB, free: 9.879 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.384e-05/0.3946, allocations: 19.97 kB / 1.333 GB, free: 9.859 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.859e-05/0.3946, allocations: 11.98 kB / 1.333 GB, free: 9.848 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.881e-05/0.3947, allocations: 95.27 kB / 1.334 GB, free: 9.754 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3947, allocations: 0 / 1.334 GB, free: 9.754 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003314/0.395, allocations: 55.83 kB / 1.334 GB, free: 9.699 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.0007717/0.3958, allocations: 0.8288 MB / 1.334 GB, free: 8.848 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0005108/0.3963, allocations: 266.6 kB / 1.335 GB, free: 8.562 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.3963, allocations: 4 kB / 1.335 GB, free: 8.559 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001682/0.3964, allocations: 51.92 kB / 1.335 GB, free: 8.508 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003775/0.3968, allocations: 36.41 kB / 1.335 GB, free: 8.473 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002983/0.3998, allocations: 2.05 MB / 1.337 GB, free: 6.281 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004292/0.4002, allocations: 0.7085 MB / 1.337 GB, free: 5.547 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 5.488e-05/0.4003, allocations: 13.08 kB / 1.337 GB, free: 5.535 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.866e-05/0.4004, allocations: 35.42 kB / 1.337 GB, free: 5.5 MB / 1.029 GB Notification: Performance of SimCode: time 1.152e-06/0.4004, allocations: 4 kB / 1.337 GB, free: 5.496 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03193/0.4323, allocations: 3.806 MB / 1.341 GB, free: 1.84 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.35/11.78, allocations: 0 / 1.341 GB, free: 1.84 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.54357191803865]