Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001457/0.001457, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001845/0.001845, allocations: 216.2 kB / 22.26 MB, free: 5.082 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.531/1.531, allocations: 230.6 MB / 256 MB, free: 8.039 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.891/2.891, allocations: 476.7 MB / 0.7707 GB, free: 4.297 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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_11_Buildings_Controls_OBC_CDL_Logical_Validation_Latch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,fileNamePrefix="Buildings_11_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.002/0.002, allocations: 65.38 kB / 1.117 GB, free: 40.47 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3289/0.3309, allocations: 170 MB / 1.283 GB, free: 11.72 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.002537/0.3334, allocations: 0.7675 MB / 1.284 GB, free: 10.95 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002231/0.3357, allocations: 1.289 MB / 1.285 GB, free: 9.648 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001452/0.3358, allocations: 4 kB / 1.285 GB, free: 9.645 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 7.378e-05/0.3359, allocations: 15.8 kB / 1.285 GB, free: 9.629 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001259/0.336, allocations: 7.875 kB / 1.285 GB, free: 9.621 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.001097/0.3371, allocations: 251.1 kB / 1.286 GB, free: 9.379 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0005115/0.3376, allocations: 263.6 kB / 1.286 GB, free: 9.121 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002382/0.3379, allocations: 45.27 kB / 1.286 GB, free: 9.078 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002628/0.3381, allocations: 99.81 kB / 1.286 GB, free: 8.98 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002224/0.3383, allocations: 103.7 kB / 1.286 GB, free: 8.879 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 6.287e-05/0.3384, allocations: 24 kB / 1.286 GB, free: 8.855 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001108/0.3385, allocations: 43.98 kB / 1.286 GB, free: 8.812 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 4.947e-05/0.3386, allocations: 39.88 kB / 1.286 GB, free: 8.773 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001319/0.3387, allocations: 91.64 kB / 1.286 GB, free: 8.684 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003579/0.3391, allocations: 255.3 kB / 1.287 GB, free: 8.438 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.157e-06/0.3391, allocations: 0 / 1.287 GB, free: 8.438 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.543e-06/0.3391, allocations: 0 / 1.287 GB, free: 8.438 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 7.103e-06/0.3391, allocations: 4 kB / 1.287 GB, free: 8.434 MB / 0.9825 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.0007109/0.3398, allocations: 433.1 kB / 1.287 GB, free: 7.965 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.7e-05/0.3398, allocations: 12.03 kB / 1.287 GB, free: 7.953 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.121e-05/0.3399, allocations: 42.73 kB / 1.287 GB, free: 7.902 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.007e-05/0.34, allocations: 20.84 kB / 1.287 GB, free: 7.883 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005308/0.3405, allocations: 174.5 kB / 1.287 GB, free: 7.688 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.017e-05/0.3405, allocations: 16.36 kB / 1.287 GB, free: 7.672 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.289e-05/0.3406, allocations: 24.38 kB / 1.287 GB, free: 7.648 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002642/0.3408, allocations: 135 kB / 1.287 GB, free: 7.512 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.148e-05/0.3408, allocations: 0 / 1.287 GB, free: 7.512 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.804e-05/0.3409, allocations: 4 kB / 1.287 GB, free: 7.508 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.968e-06/0.3409, allocations: 7.984 kB / 1.287 GB, free: 7.5 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001469/0.341, allocations: 71.89 kB / 1.287 GB, free: 7.43 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000715/0.3417, allocations: 423.3 kB / 1.288 GB, free: 6.973 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001873/0.3419, allocations: 82.55 kB / 1.288 GB, free: 6.883 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.194e-05/0.342, allocations: 32.83 kB / 1.288 GB, free: 6.848 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.208e-05/0.342, allocations: 7.938 kB / 1.288 GB, free: 6.84 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003439/0.3423, allocations: 130.8 kB / 1.288 GB, free: 6.703 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=16): time 1.664e-06/0.3423, allocations: 4 kB / 1.288 GB, free: 6.699 MB / 0.9825 GB Notification: Performance of matching and sorting (n=16): time 0.0005019/0.3428, allocations: 245.4 kB / 1.288 GB, free: 6.453 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.626e-05/0.3429, allocations: 51.41 kB / 1.288 GB, free: 6.391 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001294/0.343, allocations: 141.2 kB / 1.289 GB, free: 6.246 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.614e-05/0.3431, allocations: 29.7 kB / 1.289 GB, free: 6.211 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001015/0.3432, allocations: 120.6 kB / 1.289 GB, free: 6.09 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.41e-05/0.3432, allocations: 35.78 kB / 1.289 GB, free: 6.055 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001258/0.3433, allocations: 65.69 kB / 1.289 GB, free: 5.984 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001446/0.3435, allocations: 322.8 kB / 1.289 GB, free: 5.66 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001494/0.3436, allocations: 75.83 kB / 1.289 GB, free: 5.586 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001929/0.3438, allocations: 130.7 kB / 1.289 GB, free: 5.434 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000269/0.3441, allocations: 211 kB / 1.29 GB, free: 5.188 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.746e-06/0.3441, allocations: 0 / 1.29 GB, free: 5.188 MB / 0.9825 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005049/0.3446, allocations: 323.7 kB / 1.29 GB, free: 4.855 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 6.531e-05/0.3447, allocations: 67.39 kB / 1.29 GB, free: 4.777 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.3447, allocations: 4 kB / 1.29 GB, free: 4.773 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.777e-05/0.3447, allocations: 4 kB / 1.29 GB, free: 4.77 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.174e-05/0.3447, allocations: 11.92 kB / 1.29 GB, free: 4.758 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.576e-06/0.3447, allocations: 4 kB / 1.29 GB, free: 4.754 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003182/0.345, allocations: 64.08 kB / 1.29 GB, free: 4.691 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.335e-05/0.3451, allocations: 19.94 kB / 1.29 GB, free: 4.672 MB / 0.9825 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.0001411/0.3452, allocations: 133.8 kB / 1.29 GB, free: 4.531 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.631e-05/0.3452, allocations: 15.89 kB / 1.29 GB, free: 4.516 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.504e-05/0.3453, allocations: 8.781 kB / 1.29 GB, free: 4.508 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.028e-06/0.3453, allocations: 8 kB / 1.29 GB, free: 4.5 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.787e-06/0.3453, allocations: 3.984 kB / 1.29 GB, free: 4.496 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.3453, allocations: 0 / 1.29 GB, free: 4.496 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005179/0.3458, allocations: 457.4 kB / 1.291 GB, free: 4 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.3458, allocations: 0 / 1.291 GB, free: 4 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.072e-05/0.3458, allocations: 7.984 kB / 1.291 GB, free: 3.992 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.3458, allocations: 0 / 1.291 GB, free: 3.992 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.608e-05/0.3458, allocations: 8 kB / 1.291 GB, free: 3.984 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.3458, allocations: 0 / 1.291 GB, free: 3.984 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.3458, allocations: 0 / 1.291 GB, free: 3.984 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003268/0.3462, allocations: 295.3 kB / 1.291 GB, free: 3.68 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.647e-05/0.3462, allocations: 7.906 kB / 1.291 GB, free: 3.672 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.761e-05/0.3462, allocations: 8 kB / 1.291 GB, free: 3.664 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.073e-05/0.3463, allocations: 7.922 kB / 1.291 GB, free: 3.656 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.521e-05/0.3463, allocations: 19.92 kB / 1.291 GB, free: 3.637 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.307e-05/0.3464, allocations: 11.98 kB / 1.291 GB, free: 3.625 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.155e-05/0.3464, allocations: 91.27 kB / 1.291 GB, free: 3.535 MB / 0.9825 GB Notification: Performance of sort global known variables: time 9.1e-08/0.3464, allocations: 4 kB / 1.291 GB, free: 3.531 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003119/0.3467, allocations: 47.94 kB / 1.291 GB, free: 3.484 MB / 0.9825 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.0007387/0.3475, allocations: 0.8332 MB / 1.292 GB, free: 2.629 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.000406/0.3479, allocations: 267 kB / 1.292 GB, free: 2.344 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.3479, allocations: 0 / 1.292 GB, free: 2.344 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001061/0.348, allocations: 63.89 kB / 1.292 GB, free: 2.281 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003091/0.3483, allocations: 22.8 kB / 1.292 GB, free: 2.262 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002463/0.3508, allocations: 2.046 MB / 1.294 GB, free: 68 kB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003668/0.3511, allocations: 0.7085 MB / 1.295 GB, free: 15.33 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 4.989e-05/0.3512, allocations: 13.09 kB / 1.295 GB, free: 15.32 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.138e-05/0.3512, allocations: 39.36 kB / 1.295 GB, free: 15.28 MB / 0.9981 GB Notification: Performance of SimCode: time 4.81e-07/0.3512, allocations: 0 / 1.295 GB, free: 15.28 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03199/0.3832, allocations: 3.818 MB / 1.299 GB, free: 11.61 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.14/11.53, allocations: 4.5 kB / 1.299 GB, free: 11.61 MB / 0.9981 GB " [Timeout remaining time 288] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Latch_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Logical_Validation_Latch_fmu --startTime=0 --stopTime=10 --stepSize=0.004 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_OBC_CDL_Logical_Validation_Latch.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Latch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Logical_Validation_Latch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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.332275508902967]