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.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.0008011/0.0008011, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0008173/0.0008173, allocations: 165.9 kB / 22.45 MB, free: 2.109 MB / 18.57 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 0.8831/0.8831, allocations: 177.1 MB / 202.8 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 1.746/1.746, allocations: 389 MB / 0.633 GB, free: 12.67 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_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"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 7.795e-06/7.795e-06, allocations: 0 / 0.9997 GB, free: 13.46 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.193e-05/2.973e-05, allocations: 2.281 kB / 0.9997 GB, free: 13.45 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.001581/0.001611, allocations: 0.7372 MB / 1 GB, free: 12.72 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.001333/0.002944, allocations: 1.26 MB / 1.002 GB, free: 11.45 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.016e-05/0.003004, allocations: 4 kB / 1.002 GB, free: 11.44 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 4.017e-05/0.003044, allocations: 19.73 kB / 1.002 GB, free: 11.42 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 7.212e-05/0.003116, allocations: 11.86 kB / 1.002 GB, free: 11.41 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005594/0.003676, allocations: 251.8 kB / 1.002 GB, free: 11.17 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0002471/0.003923, allocations: 259.5 kB / 1.002 GB, free: 10.92 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001378/0.004061, allocations: 45.22 kB / 1.002 GB, free: 10.87 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001433/0.004204, allocations: 143.8 kB / 1.002 GB, free: 10.73 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001362/0.00434, allocations: 75.78 kB / 1.002 GB, free: 10.66 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 3.329e-05/0.004373, allocations: 24 kB / 1.002 GB, free: 10.63 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 7.405e-05/0.004447, allocations: 39.98 kB / 1.002 GB, free: 10.59 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 3.456e-05/0.004482, allocations: 31.91 kB / 1.003 GB, free: 10.56 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 7.511e-05/0.004557, allocations: 87.78 kB / 1.003 GB, free: 10.48 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0002501/0.004807, allocations: 283.2 kB / 1.003 GB, free: 10.2 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 2.806e-06/0.00481, allocations: 4 kB / 1.003 GB, free: 10.2 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.343e-06/0.004811, allocations: 0 / 1.003 GB, free: 10.2 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 4.288e-06/0.004816, allocations: 0 / 1.003 GB, free: 10.2 MB / 0.9636 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.0004777/0.005293, allocations: 425.2 kB / 1.003 GB, free: 9.734 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 4.35e-05/0.005337, allocations: 8.75 kB / 1.003 GB, free: 9.727 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.43e-05/0.005371, allocations: 46.73 kB / 1.003 GB, free: 9.672 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.721e-05/0.005418, allocations: 20.84 kB / 1.003 GB, free: 9.652 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003437/0.005762, allocations: 173.7 kB / 1.004 GB, free: 9.457 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.989e-05/0.005782, allocations: 16.36 kB / 1.004 GB, free: 9.441 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.833e-05/0.00581, allocations: 24.38 kB / 1.004 GB, free: 9.418 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000158/0.005968, allocations: 114.1 kB / 1.004 GB, free: 9.301 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.735e-06/0.005976, allocations: 192 / 1.004 GB, free: 9.301 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.281e-05/0.005989, allocations: 8.359 kB / 1.004 GB, free: 9.293 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.005996, allocations: 7.938 kB / 1.004 GB, free: 9.285 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.867e-05/0.006074, allocations: 51.97 kB / 1.004 GB, free: 9.234 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004913/0.006566, allocations: 407.4 kB / 1.004 GB, free: 8.793 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001742/0.00674, allocations: 122.6 kB / 1.004 GB, free: 8.664 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.567e-05/0.006825, allocations: 60.83 kB / 1.004 GB, free: 8.602 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 1.37e-05/0.006839, allocations: 0 / 1.004 GB, free: 8.602 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002936/0.007133, allocations: 175.2 kB / 1.004 GB, free: 8.418 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=32): time 2.084e-06/0.007135, allocations: 4 kB / 1.004 GB, free: 8.414 MB / 0.9636 GB Notification: Performance of matching and sorting (n=32): time 0.0004031/0.007538, allocations: 330.3 kB / 1.005 GB, free: 8.086 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.026e-05/0.007588, allocations: 59.41 kB / 1.005 GB, free: 8.016 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001089/0.007697, allocations: 155.7 kB / 1.005 GB, free: 7.855 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 3.022e-05/0.007727, allocations: 41.7 kB / 1.005 GB, free: 7.809 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 6.505e-05/0.007792, allocations: 113 kB / 1.005 GB, free: 7.691 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 3.824e-05/0.007831, allocations: 75.47 kB / 1.005 GB, free: 7.617 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.173e-05/0.007922, allocations: 98.03 kB / 1.005 GB, free: 7.512 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 7.536e-05/0.007998, allocations: 334.8 kB / 1.006 GB, free: 7.176 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001624/0.00816, allocations: 164.2 kB / 1.006 GB, free: 7.004 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001704/0.008331, allocations: 233.4 kB / 1.006 GB, free: 6.742 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002371/0.008568, allocations: 294.7 kB / 1.006 GB, free: 6.418 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.988e-06/0.008572, allocations: 0 / 1.006 GB, free: 6.418 MB / 0.9636 GB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0004386/0.00901, allocations: 481.7 kB / 1.007 GB, free: 5.918 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 4.864e-05/0.009059, allocations: 63.39 kB / 1.007 GB, free: 5.844 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.733e-06/0.009066, allocations: 4 kB / 1.007 GB, free: 5.84 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.397e-05/0.00909, allocations: 4 kB / 1.007 GB, free: 5.836 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.882e-05/0.009118, allocations: 15.94 kB / 1.007 GB, free: 5.82 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.053e-05/0.009129, allocations: 12.09 kB / 1.007 GB, free: 5.809 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001963/0.009325, allocations: 75.73 kB / 1.007 GB, free: 5.734 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.503e-05/0.00935, allocations: 23.98 kB / 1.007 GB, free: 5.711 MB / 0.9636 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 46 ($whenCondition15,$whenCondition16,$whenCondition13,$whenCondition14,tru.y,fal.y,truCleTruIni.clr,truCleFalIni.clr,falCleTruIni.clr,falCleFalIni.clr,latInp.y,$PRE.latInp.y,cleInp.y,$PRE.cleInp.y,swiCleInp1.y,$PRE.swiCleInp1.y,swiCleInp1.clr,swiCleInp1.u,swiCleInp.y,$PRE.swiCleInp.y,swiCleInp.clr,swiCleInp.u,truCleFalIni.y,$PRE.truCleFalIni.y,truCleFalIni.u,falCleFalIni.y,$PRE.falCleFalIni.y,falCleFalIni.u,truCleTruIni.y,$PRE.truCleTruIni.y,truCleTruIni.u,falCleTruIni.y,$PRE.falCleTruIni.y,falCleTruIni.u,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 44 * 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.0001098/0.00946, allocations: 153.7 kB / 1.007 GB, free: 5.551 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.961e-05/0.00948, allocations: 23.86 kB / 1.007 GB, free: 5.527 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.473e-05/0.009514, allocations: 17.97 kB / 1.007 GB, free: 5.512 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.009519, allocations: 4 kB / 1.007 GB, free: 5.508 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.002e-06/0.009525, allocations: 0 / 1.007 GB, free: 5.508 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.572e-06/0.009531, allocations: 7.922 kB / 1.007 GB, free: 5.5 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005341/0.01007, allocations: 0.5774 MB / 1.008 GB, free: 4.875 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.01007, allocations: 0 / 1.008 GB, free: 4.875 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.387e-05/0.01008, allocations: 11.94 kB / 1.008 GB, free: 4.863 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.435e-06/0.01008, allocations: 0 / 1.008 GB, free: 4.863 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.078e-05/0.01009, allocations: 11.98 kB / 1.008 GB, free: 4.852 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/0.0101, allocations: 0 / 1.008 GB, free: 4.852 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.143e-06/0.0101, allocations: 0 / 1.008 GB, free: 4.852 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000253/0.01035, allocations: 368.5 kB / 1.008 GB, free: 4.477 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 2e-05/0.01037, allocations: 15.89 kB / 1.008 GB, free: 4.461 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.607e-05/0.01039, allocations: 4 kB / 1.008 GB, free: 4.457 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.993e-05/0.01043, allocations: 4 kB / 1.008 GB, free: 4.453 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.229e-05/0.01047, allocations: 23.95 kB / 1.008 GB, free: 4.43 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.404e-05/0.01049, allocations: 15.98 kB / 1.008 GB, free: 4.414 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 4.143e-05/0.01053, allocations: 104.6 kB / 1.008 GB, free: 4.312 MB / 0.9636 GB Notification: Performance of sort global known variables: time 5e-08/0.01053, allocations: 0 / 1.008 GB, free: 4.312 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0002324/0.01077, allocations: 67.98 kB / 1.008 GB, free: 4.246 MB / 0.9636 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 32 (swiCleInp1.clr,swiCleInp.clr,truCleFalIni.u,swiCleInp1.u,swiCleInp.u,truCleTruIni.u,falCleTruIni.u,falCleFalIni.u,$whenCondition15,$whenCondition16,$whenCondition13,$whenCondition14,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$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 (32): * Single equations (assignments): 24 * 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.0006345/0.0114, allocations: 0.9135 MB / 1.009 GB, free: 3.309 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0005715/0.01197, allocations: 415.1 kB / 1.01 GB, free: 2.867 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.01197, allocations: 0 / 1.01 GB, free: 2.867 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 9.438e-05/0.01207, allocations: 107.7 kB / 1.01 GB, free: 2.762 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002687/0.01234, allocations: 32.3 kB / 1.01 GB, free: 2.73 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002184/0.01452, allocations: 2.667 MB / 1.012 GB, free: 15.88 MB / 0.9792 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.25e-05/0.01459, allocations: 108.2 kB / 1.012 GB, free: 15.75 MB / 0.9792 GB Notification: Performance of simCode: alias equations: time 4.871e-05/0.01464, allocations: 26.28 kB / 1.012 GB, free: 15.73 MB / 0.9792 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.499e-05/0.0147, allocations: 52.48 kB / 1.012 GB, free: 15.68 MB / 0.9792 GB Notification: Performance of SimCode: time 6.82e-07/0.0147, allocations: 0 / 1.012 GB, free: 15.68 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0192/0.0339, allocations: 5.353 MB / 1.018 GB, free: 10.49 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.66/6.694, allocations: 10.73 kB / 1.018 GB, free: 10.48 MB / 0.9792 GB " [Timeout remaining time 293] (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 --stepSize=0.004 --timeout=800 --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) [Timeout 840.0] 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 10.725417291745543]