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.001767/0.001767, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.002285/0.002285, allocations: 212.3 kB / 22.25 MB, free: 4.859 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.492/1.492, allocations: 230.6 MB / 256 MB, free: 7.801 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.196/3.196, allocations: 0.4892 GB / 0.7944 GB, free: 35.68 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.002123/0.002123, allocations: 66.89 kB / 1.153 GB, free: 25.7 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3543/0.3564, allocations: 176.1 MB / 1.325 GB, free: 2.379 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.002406/0.3588, allocations: 0.7438 MB / 1.326 GB, free: 1.641 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.00236/0.3612, allocations: 1.268 MB / 1.327 GB, free: 368 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.709e-05/0.3613, allocations: 4 kB / 1.327 GB, free: 364 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 5.497e-05/0.3614, allocations: 11.86 kB / 1.327 GB, free: 352 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 9.282e-05/0.3614, allocations: 19.88 kB / 1.327 GB, free: 332 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008059/0.3623, allocations: 252.9 kB / 1.327 GB, free: 84 kB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0004559/0.3627, allocations: 251.6 kB / 1.328 GB, free: 15.84 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001672/0.3629, allocations: 41.28 kB / 1.328 GB, free: 15.79 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000195/0.3631, allocations: 103.8 kB / 1.328 GB, free: 15.69 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002035/0.3633, allocations: 87.67 kB / 1.328 GB, free: 15.61 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 6.519e-05/0.3633, allocations: 24 kB / 1.328 GB, free: 15.58 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001037/0.3634, allocations: 39.98 kB / 1.328 GB, free: 15.54 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001064/0.3635, allocations: 31.91 kB / 1.328 GB, free: 15.51 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001333/0.3637, allocations: 91.73 kB / 1.328 GB, free: 15.42 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003985/0.3641, allocations: 251.4 kB / 1.328 GB, free: 15.18 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.3641, allocations: 0 / 1.328 GB, free: 15.18 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.104e-06/0.3641, allocations: 0 / 1.328 GB, free: 15.18 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.372e-05/0.3641, allocations: 0 / 1.328 GB, free: 15.18 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.0008579/0.365, allocations: 433.1 kB / 1.329 GB, free: 14.71 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.604e-05/0.365, allocations: 12.03 kB / 1.329 GB, free: 14.7 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.79e-05/0.3651, allocations: 42.73 kB / 1.329 GB, free: 14.64 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.782e-05/0.3651, allocations: 32.84 kB / 1.329 GB, free: 14.61 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005602/0.3657, allocations: 174.5 kB / 1.329 GB, free: 14.42 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.35e-05/0.3657, allocations: 16.31 kB / 1.329 GB, free: 14.4 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.227e-05/0.3658, allocations: 24.36 kB / 1.329 GB, free: 14.38 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002497/0.366, allocations: 133.9 kB / 1.329 GB, free: 14.24 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.779e-06/0.366, allocations: 0 / 1.329 GB, free: 14.24 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.779e-05/0.3661, allocations: 3.984 kB / 1.329 GB, free: 14.24 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.775e-06/0.3661, allocations: 4 kB / 1.329 GB, free: 14.23 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001384/0.3662, allocations: 67.97 kB / 1.329 GB, free: 14.17 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006624/0.3669, allocations: 383.5 kB / 1.329 GB, free: 13.75 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002089/0.3671, allocations: 82.53 kB / 1.33 GB, free: 13.66 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.977e-05/0.3672, allocations: 32.83 kB / 1.33 GB, free: 13.62 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.605e-05/0.3672, allocations: 11.88 kB / 1.33 GB, free: 13.61 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003322/0.3675, allocations: 123.3 kB / 1.33 GB, free: 13.48 MB / 1.029 GB Notification: Performance of pre-optimization done (n=16): time 1.684e-06/0.3675, allocations: 0 / 1.33 GB, free: 13.48 MB / 1.029 GB Notification: Performance of matching and sorting (n=16): time 0.000514/0.368, allocations: 251.7 kB / 1.33 GB, free: 13.23 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.684e-05/0.3681, allocations: 55.41 kB / 1.33 GB, free: 13.16 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001646/0.3682, allocations: 148.2 kB / 1.33 GB, free: 13.01 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.467e-05/0.3683, allocations: 33.7 kB / 1.33 GB, free: 12.97 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002262/0.3685, allocations: 112.6 kB / 1.33 GB, free: 12.86 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 4.335e-05/0.3686, allocations: 35.78 kB / 1.33 GB, free: 12.82 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001267/0.3687, allocations: 65.69 kB / 1.33 GB, free: 12.75 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.000252/0.3689, allocations: 322.8 kB / 1.331 GB, free: 12.43 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002247/0.3692, allocations: 127.4 kB / 1.331 GB, free: 12.29 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002483/0.3694, allocations: 187.1 kB / 1.331 GB, free: 12.07 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004029/0.3698, allocations: 218.9 kB / 1.331 GB, free: 11.81 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.3698, allocations: 3.938 kB / 1.331 GB, free: 11.81 MB / 1.029 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000615/0.3704, allocations: 386.9 kB / 1.332 GB, free: 11.4 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001527/0.3706, allocations: 67.39 kB / 1.332 GB, free: 11.32 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.728e-06/0.3706, allocations: 4 kB / 1.332 GB, free: 11.32 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.653e-05/0.3706, allocations: 0 / 1.332 GB, free: 11.32 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.058e-05/0.3707, allocations: 11.94 kB / 1.332 GB, free: 11.31 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.654e-06/0.3707, allocations: 0 / 1.332 GB, free: 11.31 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003688/0.371, allocations: 63.83 kB / 1.332 GB, free: 11.25 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.431e-05/0.3711, allocations: 20.11 kB / 1.332 GB, free: 11.23 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.000154/0.3712, allocations: 130.3 kB / 1.332 GB, free: 11.09 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.281e-05/0.3713, allocations: 23.88 kB / 1.332 GB, free: 11.07 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.564e-05/0.3713, allocations: 8.781 kB / 1.332 GB, free: 11.05 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.718e-06/0.3713, allocations: 7.922 kB / 1.332 GB, free: 11.05 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.461e-06/0.3713, allocations: 4 kB / 1.332 GB, free: 11.04 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.3713, allocations: 0 / 1.332 GB, free: 11.04 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005701/0.3719, allocations: 453.4 kB / 1.332 GB, free: 10.55 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.3719, allocations: 4 kB / 1.332 GB, free: 10.55 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.23e-05/0.3719, allocations: 0 / 1.332 GB, free: 10.55 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.25e-06/0.3719, allocations: 4 kB / 1.332 GB, free: 10.54 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.901e-05/0.3719, allocations: 7.984 kB / 1.332 GB, free: 10.54 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.948e-06/0.3719, allocations: 4 kB / 1.332 GB, free: 10.53 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.3719, allocations: 4 kB / 1.332 GB, free: 10.53 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003477/0.3723, allocations: 299.2 kB / 1.333 GB, free: 10.22 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.563e-05/0.3723, allocations: 7.953 kB / 1.333 GB, free: 10.21 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.072e-05/0.3723, allocations: 0 / 1.333 GB, free: 10.21 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.925e-05/0.3724, allocations: 7.984 kB / 1.333 GB, free: 10.2 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.565e-05/0.3724, allocations: 11.98 kB / 1.333 GB, free: 10.19 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.503e-05/0.3724, allocations: 15.98 kB / 1.333 GB, free: 10.18 MB / 1.029 GB Notification: Performance of sorting global known variables: time 7.582e-05/0.3725, allocations: 99.27 kB / 1.333 GB, free: 10.08 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3725, allocations: 0 / 1.333 GB, free: 10.08 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003228/0.3728, allocations: 51.88 kB / 1.333 GB, free: 10.03 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.0007392/0.3736, allocations: 0.84 MB / 1.334 GB, free: 9.164 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004663/0.374, allocations: 322.1 kB / 1.334 GB, free: 8.812 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.374, allocations: 0.5 kB / 1.334 GB, free: 8.812 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 9.94e-05/0.3741, allocations: 59.91 kB / 1.334 GB, free: 8.754 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003351/0.3745, allocations: 26.91 kB / 1.334 GB, free: 8.73 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003035/0.3775, allocations: 2.3 MB / 1.336 GB, free: 6.238 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001166/0.3776, allocations: 98.78 kB / 1.336 GB, free: 6.121 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 4.91e-05/0.3777, allocations: 9.078 kB / 1.336 GB, free: 6.113 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.695e-05/0.3777, allocations: 39.42 kB / 1.336 GB, free: 6.074 MB / 1.029 GB Notification: Performance of SimCode: time 6.01e-07/0.3777, allocations: 0 / 1.336 GB, free: 6.074 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03282/0.4106, allocations: 4.395 MB / 1.341 GB, free: 1.855 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.32/11.73, allocations: 4.062 kB / 1.341 GB, free: 1.855 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.507285540923476]