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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001552/0.001552, allocations: 112.5 kB / 15.73 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001939/0.001939, allocations: 192.5 kB / 16.67 MB, free: 6.57 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.43/1.43, allocations: 222.9 MB / 240.4 MB, free: 4.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.903/2.903, allocations: 472.7 MB / 0.7453 GB, free: 4.543 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001959/0.001959, allocations: 72.11 kB / 1.069 GB, free: 9.664 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3275/0.3295, allocations: 159.9 MB / 1.225 GB, free: 9.645 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.002072/0.3316, allocations: 0.7779 MB / 1.226 GB, free: 8.871 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001536/0.3332, allocations: 1.244 MB / 1.227 GB, free: 7.613 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.687e-05/0.3332, allocations: 0 / 1.227 GB, free: 7.613 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 4.209e-05/0.3333, allocations: 7.875 kB / 1.227 GB, free: 7.605 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 9.229e-05/0.3334, allocations: 27.78 kB / 1.227 GB, free: 7.578 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.000704/0.3341, allocations: 250.1 kB / 1.227 GB, free: 7.34 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002997/0.3344, allocations: 267.6 kB / 1.228 GB, free: 7.078 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001716/0.3346, allocations: 64.88 kB / 1.228 GB, free: 7.016 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001194/0.3347, allocations: 111.7 kB / 1.228 GB, free: 6.906 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001543/0.3349, allocations: 91.69 kB / 1.228 GB, free: 6.816 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.291e-05/0.3349, allocations: 28 kB / 1.228 GB, free: 6.789 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001027/0.335, allocations: 39.97 kB / 1.228 GB, free: 6.75 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 4.193e-05/0.3351, allocations: 35.91 kB / 1.228 GB, free: 6.715 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001167/0.3352, allocations: 99.67 kB / 1.228 GB, free: 6.617 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002845/0.3355, allocations: 251.1 kB / 1.228 GB, free: 6.371 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.3355, allocations: 0 / 1.228 GB, free: 6.371 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.093e-06/0.3355, allocations: 0 / 1.228 GB, free: 6.371 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.063e-05/0.3355, allocations: 0 / 1.228 GB, free: 6.371 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.0006553/0.3362, allocations: 0.4906 MB / 1.229 GB, free: 5.816 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.404e-05/0.3362, allocations: 8.031 kB / 1.229 GB, free: 5.809 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.906e-05/0.3363, allocations: 46.72 kB / 1.229 GB, free: 5.754 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.173e-05/0.3364, allocations: 16.89 kB / 1.229 GB, free: 5.738 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005249/0.3369, allocations: 248.2 kB / 1.229 GB, free: 5.457 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.072e-05/0.3369, allocations: 8.375 kB / 1.229 GB, free: 5.449 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.056e-05/0.337, allocations: 24.36 kB / 1.229 GB, free: 5.426 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002314/0.3372, allocations: 133.2 kB / 1.229 GB, free: 5.293 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.337e-06/0.3372, allocations: 0 / 1.229 GB, free: 5.293 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.064e-05/0.3372, allocations: 11.98 kB / 1.229 GB, free: 5.281 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.554e-06/0.3373, allocations: 4 kB / 1.229 GB, free: 5.277 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001251/0.3374, allocations: 59.97 kB / 1.229 GB, free: 5.219 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006181/0.338, allocations: 460.2 kB / 1.23 GB, free: 4.719 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001671/0.3382, allocations: 98.47 kB / 1.23 GB, free: 4.613 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.7e-05/0.3383, allocations: 44.84 kB / 1.23 GB, free: 4.566 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.277e-05/0.3383, allocations: 11.91 kB / 1.23 GB, free: 4.555 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003251/0.3386, allocations: 135.4 kB / 1.23 GB, free: 4.41 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=16): time 1.733e-06/0.3386, allocations: 3.938 kB / 1.23 GB, free: 4.406 MB / 0.9825 GB Notification: Performance of matching and sorting (n=16): time 0.0004289/0.3391, allocations: 237.4 kB / 1.23 GB, free: 4.168 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.13e-05/0.3391, allocations: 63.39 kB / 1.23 GB, free: 4.094 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001145/0.3392, allocations: 148.2 kB / 1.231 GB, free: 3.941 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.032e-05/0.3393, allocations: 29.7 kB / 1.231 GB, free: 3.906 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 7.523e-05/0.3394, allocations: 112.6 kB / 1.231 GB, free: 3.793 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.555e-05/0.3394, allocations: 35.69 kB / 1.231 GB, free: 3.758 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001072/0.3395, allocations: 69.67 kB / 1.231 GB, free: 3.684 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001372/0.3396, allocations: 326.8 kB / 1.231 GB, free: 3.355 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001378/0.3398, allocations: 67.95 kB / 1.231 GB, free: 3.289 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001667/0.34, allocations: 127.6 kB / 1.231 GB, free: 3.137 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002472/0.3402, allocations: 217.8 kB / 1.231 GB, free: 2.887 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.3402, allocations: 0 / 1.231 GB, free: 2.887 MB / 0.9825 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004428/0.3407, allocations: 312.7 kB / 1.232 GB, free: 2.562 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 5.69e-05/0.3407, allocations: 67.39 kB / 1.232 GB, free: 2.484 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.3408, allocations: 4 kB / 1.232 GB, free: 2.48 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.637e-05/0.3408, allocations: 4 kB / 1.232 GB, free: 2.477 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.384e-05/0.3408, allocations: 4 kB / 1.232 GB, free: 2.473 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.237e-06/0.3408, allocations: 7.938 kB / 1.232 GB, free: 2.465 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003118/0.3411, allocations: 63.98 kB / 1.232 GB, free: 2.402 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.223e-05/0.3412, allocations: 15.98 kB / 1.232 GB, free: 2.387 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.000124/0.3413, allocations: 130.4 kB / 1.232 GB, free: 2.25 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.127e-05/0.3413, allocations: 15.89 kB / 1.232 GB, free: 2.234 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.527e-05/0.3414, allocations: 8.844 kB / 1.232 GB, free: 2.219 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.62e-06/0.3414, allocations: 8 kB / 1.232 GB, free: 2.211 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.259e-06/0.3414, allocations: 0 / 1.232 GB, free: 2.211 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.3414, allocations: 0 / 1.232 GB, free: 2.211 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004583/0.3419, allocations: 498.2 kB / 1.233 GB, free: 1.668 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.3419, allocations: 0 / 1.233 GB, free: 1.668 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.231e-05/0.3419, allocations: 4 kB / 1.233 GB, free: 1.664 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.018e-06/0.3419, allocations: 0 / 1.233 GB, free: 1.664 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.792e-05/0.3419, allocations: 15.92 kB / 1.233 GB, free: 1.648 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.3419, allocations: 0 / 1.233 GB, free: 1.648 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.3419, allocations: 0 / 1.233 GB, free: 1.648 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002947/0.3422, allocations: 289.7 kB / 1.233 GB, free: 1.352 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.107e-05/0.3423, allocations: 85.06 kB / 1.233 GB, free: 1.25 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.466e-05/0.3423, allocations: 11.98 kB / 1.233 GB, free: 1.238 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.828e-05/0.3424, allocations: 0 / 1.233 GB, free: 1.238 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.271e-05/0.3424, allocations: 11.98 kB / 1.233 GB, free: 1.227 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.978e-05/0.3425, allocations: 15.98 kB / 1.233 GB, free: 1.211 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.882e-05/0.3425, allocations: 91.27 kB / 1.233 GB, free: 1.121 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3425, allocations: 3.938 kB / 1.233 GB, free: 1.117 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003123/0.3429, allocations: 55.88 kB / 1.233 GB, free: 1.062 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.0006764/0.3435, allocations: 0.8377 MB / 1.234 GB, free: 204 kB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004217/0.344, allocations: 301.3 kB / 1.234 GB, free: 15.88 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.344, allocations: 4.438 kB / 1.234 GB, free: 15.88 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001018/0.3441, allocations: 79.89 kB / 1.234 GB, free: 15.8 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003047/0.3444, allocations: 25.86 kB / 1.234 GB, free: 15.78 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002267/0.3467, allocations: 2.033 MB / 1.236 GB, free: 13.6 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002998/0.347, allocations: 0.7124 MB / 1.237 GB, free: 12.86 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 4.091e-05/0.347, allocations: 13.08 kB / 1.237 GB, free: 12.85 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.445e-05/0.3471, allocations: 35.42 kB / 1.237 GB, free: 12.81 MB / 0.9981 GB Notification: Performance of SimCode: time 5.91e-07/0.3471, allocations: 4 kB / 1.237 GB, free: 12.81 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02016/0.3673, allocations: 3.588 MB / 1.241 GB, free: 9.336 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.823/8.19, allocations: 14.27 kB / 1.241 GB, free: 9.324 MB / 0.9981 GB (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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Latch.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_Latch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches