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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001601/0.001601, allocations: 111.6 kB / 18.14 MB, free: 3.828 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001815/0.001815, allocations: 197.2 kB / 21.42 MB, free: 0.5508 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.468/1.468, allocations: 225.6 MB / 250.2 MB, free: 13.29 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.706/2.706, allocations: 476.7 MB / 0.7637 GB, free: 10.11 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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_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: Performance of FrontEnd - loaded program: time 0.002006/0.002006, allocations: 71.89 kB / 1.108 GB, free: 7.027 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8156/0.8176, allocations: 168.7 MB / 1.273 GB, free: 4.262 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.002051/0.8197, allocations: 0.7627 MB / 1.274 GB, free: 3.504 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001701/0.8214, allocations: 1.257 MB / 1.275 GB, free: 2.234 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.545e-05/0.8214, allocations: 3.938 kB / 1.275 GB, free: 2.23 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 4.654e-05/0.8215, allocations: 11.86 kB / 1.275 GB, free: 2.219 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 7.533e-05/0.8215, allocations: 15.88 kB / 1.275 GB, free: 2.203 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006928/0.8222, allocations: 263.3 kB / 1.275 GB, free: 1.953 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0003255/0.8226, allocations: 255.6 kB / 1.275 GB, free: 1.703 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001457/0.8227, allocations: 49.03 kB / 1.275 GB, free: 1.656 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001264/0.8228, allocations: 99.8 kB / 1.275 GB, free: 1.559 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001838/0.823, allocations: 103.7 kB / 1.276 GB, free: 1.457 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 4.521e-05/0.8231, allocations: 24 kB / 1.276 GB, free: 1.434 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 9.461e-05/0.8232, allocations: 36 kB / 1.276 GB, free: 1.398 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 5.175e-05/0.8232, allocations: 43.88 kB / 1.276 GB, free: 1.355 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001229/0.8233, allocations: 95.62 kB / 1.276 GB, free: 1.262 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0003286/0.8237, allocations: 252.8 kB / 1.276 GB, free: 1.016 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.8237, allocations: 0 / 1.276 GB, free: 1.016 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.633e-06/0.8237, allocations: 0 / 1.276 GB, free: 1.016 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.871e-06/0.8237, allocations: 0 / 1.276 GB, free: 1.016 MB / 0.9669 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.000701/0.8244, allocations: 0.4944 MB / 1.277 GB, free: 468 kB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/0.8244, allocations: 12.03 kB / 1.277 GB, free: 456 kB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.347e-05/0.8245, allocations: 42.73 kB / 1.277 GB, free: 404 kB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.751e-05/0.8245, allocations: 16.89 kB / 1.277 GB, free: 388 kB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005905/0.8251, allocations: 244.2 kB / 1.277 GB, free: 104 kB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.293e-05/0.8251, allocations: 12.36 kB / 1.277 GB, free: 92 kB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.946e-05/0.8252, allocations: 20.38 kB / 1.277 GB, free: 72 kB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002744/0.8255, allocations: 140.5 kB / 1.277 GB, free: 15.93 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/0.8255, allocations: 0 / 1.277 GB, free: 15.93 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.746e-05/0.8255, allocations: 7.938 kB / 1.277 GB, free: 15.92 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.576e-06/0.8255, allocations: 4 kB / 1.277 GB, free: 15.92 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001561/0.8257, allocations: 67.95 kB / 1.277 GB, free: 15.85 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006873/0.8264, allocations: 464.2 kB / 1.277 GB, free: 15.35 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001778/0.8265, allocations: 74.55 kB / 1.278 GB, free: 15.27 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.306e-05/0.8266, allocations: 36.83 kB / 1.278 GB, free: 15.23 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.077e-05/0.8266, allocations: 3.938 kB / 1.278 GB, free: 15.22 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002891/0.8269, allocations: 139.2 kB / 1.278 GB, free: 15.07 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=16): time 1.603e-06/0.8269, allocations: 0 / 1.278 GB, free: 15.07 MB / 0.9825 GB Notification: Performance of matching and sorting (n=16): time 0.0004413/0.8273, allocations: 237.5 kB / 1.278 GB, free: 14.84 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.653e-05/0.8274, allocations: 55.41 kB / 1.278 GB, free: 14.77 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001281/0.8275, allocations: 145.7 kB / 1.278 GB, free: 14.62 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.594e-05/0.8275, allocations: 29.7 kB / 1.278 GB, free: 14.58 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 9.117e-05/0.8276, allocations: 112.7 kB / 1.278 GB, free: 14.47 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.392e-05/0.8277, allocations: 51.55 kB / 1.278 GB, free: 14.42 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001132/0.8278, allocations: 65.69 kB / 1.278 GB, free: 14.35 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001369/0.8279, allocations: 322.8 kB / 1.279 GB, free: 14.02 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000145/0.8281, allocations: 67.95 kB / 1.279 GB, free: 13.96 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001859/0.8283, allocations: 127.7 kB / 1.279 GB, free: 13.8 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002663/0.8285, allocations: 213.4 kB / 1.279 GB, free: 13.56 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.8285, allocations: 0 / 1.279 GB, free: 13.56 MB / 0.9825 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004929/0.829, allocations: 312.7 kB / 1.279 GB, free: 13.23 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 6.024e-05/0.8291, allocations: 69.42 kB / 1.279 GB, free: 13.16 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.574e-06/0.8291, allocations: 4 kB / 1.279 GB, free: 13.15 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.478e-05/0.8291, allocations: 0 / 1.279 GB, free: 13.15 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.84e-05/0.8291, allocations: 12.17 kB / 1.279 GB, free: 13.14 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.544e-06/0.8291, allocations: 8 kB / 1.279 GB, free: 13.13 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003371/0.8295, allocations: 59.83 kB / 1.28 GB, free: 13.07 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.364e-05/0.8295, allocations: 16 kB / 1.28 GB, free: 13.06 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.0001344/0.8296, allocations: 137.8 kB / 1.28 GB, free: 12.91 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.275e-05/0.8297, allocations: 15.89 kB / 1.28 GB, free: 12.9 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.555e-05/0.8297, allocations: 12.84 kB / 1.28 GB, free: 12.88 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.8297, allocations: 3.938 kB / 1.28 GB, free: 12.88 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.233e-06/0.8297, allocations: 3.984 kB / 1.28 GB, free: 12.88 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.8297, allocations: 0 / 1.28 GB, free: 12.88 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005405/0.8302, allocations: 496.5 kB / 1.28 GB, free: 12.34 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.8303, allocations: 0 / 1.28 GB, free: 12.34 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.412e-05/0.8303, allocations: 3.984 kB / 1.28 GB, free: 12.33 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.869e-06/0.8303, allocations: 4 kB / 1.28 GB, free: 12.33 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.526e-05/0.8303, allocations: 8 kB / 1.28 GB, free: 12.32 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.8303, allocations: 0 / 1.28 GB, free: 12.32 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.8303, allocations: 0 / 1.28 GB, free: 12.32 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003288/0.8306, allocations: 299.2 kB / 1.28 GB, free: 12.01 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.927e-05/0.8307, allocations: 85.06 kB / 1.281 GB, free: 11.91 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.467e-05/0.8307, allocations: 4 kB / 1.281 GB, free: 11.91 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.833e-05/0.8308, allocations: 7.984 kB / 1.281 GB, free: 11.9 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.128e-05/0.8308, allocations: 15.92 kB / 1.281 GB, free: 11.88 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.138e-05/0.8308, allocations: 12 kB / 1.281 GB, free: 11.87 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.346e-05/0.8309, allocations: 98.02 kB / 1.281 GB, free: 11.78 MB / 0.9825 GB Notification: Performance of sort global known variables: time 6.1e-08/0.8309, allocations: 0 / 1.281 GB, free: 11.78 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002984/0.8312, allocations: 47.94 kB / 1.281 GB, free: 11.73 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.0007293/0.8319, allocations: 0.8436 MB / 1.282 GB, free: 10.86 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004179/0.8323, allocations: 262.6 kB / 1.282 GB, free: 10.58 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.8323, allocations: 0 / 1.282 GB, free: 10.58 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 9.735e-05/0.8324, allocations: 59.89 kB / 1.282 GB, free: 10.52 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003193/0.8328, allocations: 27.95 kB / 1.282 GB, free: 10.5 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002569/0.8353, allocations: 2.063 MB / 1.284 GB, free: 8.289 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003789/0.8357, allocations: 0.7085 MB / 1.285 GB, free: 7.555 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 5.131e-05/0.8358, allocations: 13.08 kB / 1.285 GB, free: 7.543 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.81e-05/0.8358, allocations: 39.41 kB / 1.285 GB, free: 7.504 MB / 0.9825 GB Notification: Performance of SimCode: time 6.31e-07/0.8358, allocations: 0 / 1.285 GB, free: 7.504 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02695/0.8628, allocations: 3.615 MB / 1.288 GB, free: 3.992 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.234/9.096, allocations: 10.09 kB / 1.288 GB, free: 3.984 MB / 0.9825 GB " [Timeout remaining time 291] (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_2/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: 15.053125841077417]