Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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.001729/0.001729, allocations: 104.3 kB / 19.69 MB, free: 1.945 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.002292/0.002292, allocations: 221.1 kB / 23 MB, free: 4.973 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.494/1.494, allocations: 230.6 MB / 256.8 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA master/package.mo): time 0.9722/0.9722, allocations: 149.9 MB / 463.1 MB, free: 10.34 MB / 366.1 MB " [Timeout remaining time 179] Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 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(IBPSA.Controls.OBC.CDL.Logical.Validation.Latch,fileNamePrefix="IBPSA_latest_IBPSA_Controls_OBC_CDL_Logical_Validation_Latch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Controls.OBC.CDL.Logical.Validation.Latch,fileNamePrefix="IBPSA_latest_IBPSA_Controls_OBC_CDL_Logical_Validation_Latch",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: IBPSA 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.00216/0.00216, allocations: 63.19 kB / 0.6411 GB, free: 10.12 MB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1822/0.1844, allocations: 89.17 MB / 0.7282 GB, free: 1.027 MB / 0.545 GB Notification: Performance of NFInst.instantiate(IBPSA.Controls.OBC.CDL.Logical.Validation.Latch): time 0.002115/0.1865, allocations: 0.7366 MB / 0.7289 GB, free: 300 kB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.001867/0.1883, allocations: 1.26 MB / 0.7301 GB, free: 15.02 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.2e-05/0.1884, allocations: 4 kB / 0.7301 GB, free: 15.02 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 4.854e-05/0.1884, allocations: 11.86 kB / 0.7301 GB, free: 15 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 7.885e-05/0.1885, allocations: 7.875 kB / 0.7301 GB, free: 15 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007435/0.1893, allocations: 254.9 kB / 0.7304 GB, free: 14.76 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0003234/0.1896, allocations: 259.6 kB / 0.7306 GB, free: 14.5 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001451/0.1897, allocations: 41.28 kB / 0.7307 GB, free: 14.46 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001423/0.1899, allocations: 99.8 kB / 0.7308 GB, free: 14.37 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001632/0.19, allocations: 83.67 kB / 0.7308 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 4.922e-05/0.1901, allocations: 28 kB / 0.7309 GB, free: 14.26 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 9.396e-05/0.1902, allocations: 39.92 kB / 0.7309 GB, free: 14.22 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 4.18e-05/0.1902, allocations: 39.91 kB / 0.7309 GB, free: 14.18 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001067/0.1903, allocations: 87.73 kB / 0.731 GB, free: 14.09 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.000303/0.1906, allocations: 243.4 kB / 0.7313 GB, free: 13.86 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.1906, allocations: 0 / 0.7313 GB, free: 13.86 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.413e-06/0.1906, allocations: 0 / 0.7313 GB, free: 13.86 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 8.896e-06/0.1907, allocations: 0 / 0.7313 GB, free: 13.86 MB / 0.5606 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.0006064/0.1913, allocations: 421.2 kB / 0.7317 GB, free: 13.4 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.508e-05/0.1913, allocations: 8.031 kB / 0.7317 GB, free: 13.39 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.684e-05/0.1913, allocations: 46.73 kB / 0.7317 GB, free: 13.34 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.535e-05/0.1914, allocations: 28.77 kB / 0.7317 GB, free: 13.31 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005136/0.1919, allocations: 174.5 kB / 0.7319 GB, free: 13.11 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.447e-05/0.1919, allocations: 20.38 kB / 0.7319 GB, free: 13.09 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.24e-05/0.192, allocations: 24.36 kB / 0.732 GB, free: 13.07 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002142/0.1922, allocations: 113.2 kB / 0.7321 GB, free: 12.96 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.252e-05/0.1922, allocations: 3.984 kB / 0.7321 GB, free: 12.95 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.587e-05/0.1922, allocations: 4 kB / 0.7321 GB, free: 12.95 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.062e-05/0.1923, allocations: 7.938 kB / 0.7321 GB, free: 12.94 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001121/0.1924, allocations: 55.91 kB / 0.7321 GB, free: 12.89 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006671/0.193, allocations: 407.5 kB / 0.7325 GB, free: 12.45 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002408/0.1933, allocations: 118.7 kB / 0.7326 GB, free: 12.32 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001003/0.1934, allocations: 56.83 kB / 0.7327 GB, free: 12.26 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.138e-05/0.1934, allocations: 3.938 kB / 0.7327 GB, free: 12.26 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000355/0.1937, allocations: 183.2 kB / 0.7329 GB, free: 12.07 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=32): time 1.593e-06/0.1937, allocations: 0 / 0.7329 GB, free: 12.07 MB / 0.5606 GB Notification: Performance of matching and sorting (n=32): time 0.0005713/0.1943, allocations: 333.5 kB / 0.7332 GB, free: 11.73 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.114e-05/0.1944, allocations: 63.34 kB / 0.7332 GB, free: 11.66 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000139/0.1945, allocations: 159.7 kB / 0.7334 GB, free: 11.5 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 4.407e-05/0.1945, allocations: 37.7 kB / 0.7334 GB, free: 11.45 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 9.131e-05/0.1946, allocations: 109 kB / 0.7335 GB, free: 11.34 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 6.025e-05/0.1947, allocations: 67.53 kB / 0.7336 GB, free: 11.27 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001444/0.1948, allocations: 94.05 kB / 0.7337 GB, free: 11.17 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001573/0.195, allocations: 334.8 kB / 0.734 GB, free: 10.84 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002449/0.1952, allocations: 164.2 kB / 0.7342 GB, free: 10.66 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003043/0.1955, allocations: 233 kB / 0.7344 GB, free: 10.4 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003703/0.1959, allocations: 286.9 kB / 0.7347 GB, free: 10.08 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.1959, allocations: 0 / 0.7347 GB, free: 10.08 MB / 0.5606 GB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0007065/0.1966, allocations: 489.6 kB / 0.7351 GB, free: 9.574 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 6.364e-05/0.1967, allocations: 71.58 kB / 0.7352 GB, free: 9.492 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.1967, allocations: 4 kB / 0.7352 GB, free: 9.488 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.805e-05/0.1967, allocations: 7.938 kB / 0.7352 GB, free: 9.48 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.946e-05/0.1968, allocations: 11.94 kB / 0.7352 GB, free: 9.469 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.913e-06/0.1968, allocations: 0 / 0.7352 GB, free: 9.469 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003432/0.1971, allocations: 75.72 kB / 0.7353 GB, free: 9.395 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.28e-05/0.1972, allocations: 23.98 kB / 0.7353 GB, free: 9.371 MB / 0.5606 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.000154/0.1973, allocations: 153.8 kB / 0.7355 GB, free: 9.211 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.962e-05/0.1973, allocations: 19.89 kB / 0.7355 GB, free: 9.191 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.905e-05/0.1974, allocations: 13.97 kB / 0.7355 GB, free: 9.18 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.662e-06/0.1974, allocations: 7.938 kB / 0.7355 GB, free: 9.172 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.1974, allocations: 3.984 kB / 0.7355 GB, free: 9.168 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.1974, allocations: 0 / 0.7355 GB, free: 9.168 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007861/0.1982, allocations: 0.5923 MB / 0.7361 GB, free: 8.527 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.993e-06/0.1982, allocations: 0 / 0.7361 GB, free: 8.527 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.612e-05/0.1982, allocations: 8 kB / 0.7361 GB, free: 8.52 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.1982, allocations: 0 / 0.7361 GB, free: 8.52 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.025e-05/0.1982, allocations: 11.98 kB / 0.7361 GB, free: 8.508 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.1982, allocations: 0 / 0.7361 GB, free: 8.508 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.1982, allocations: 7.938 kB / 0.7361 GB, free: 8.5 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004183/0.1987, allocations: 368.4 kB / 0.7365 GB, free: 8.125 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 2.199e-05/0.1987, allocations: 15.84 kB / 0.7365 GB, free: 8.109 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.242e-05/0.1987, allocations: 11.98 kB / 0.7365 GB, free: 8.098 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.081e-05/0.1988, allocations: 4 kB / 0.7365 GB, free: 8.094 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.617e-05/0.1988, allocations: 27.95 kB / 0.7365 GB, free: 8.066 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.411e-05/0.1989, allocations: 8 kB / 0.7365 GB, free: 8.059 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 7.725e-05/0.1989, allocations: 105.8 kB / 0.7366 GB, free: 7.957 MB / 0.5606 GB Notification: Performance of sort global known variables: time 9e-08/0.1989, allocations: 0 / 0.7366 GB, free: 7.957 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.000322/0.1993, allocations: 63.94 kB / 0.7367 GB, free: 7.895 MB / 0.5606 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.0007967/0.2001, allocations: 0.9017 MB / 0.7376 GB, free: 6.969 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0005884/0.2006, allocations: 427.2 kB / 0.738 GB, free: 6.516 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.2006, allocations: 0 / 0.738 GB, free: 6.516 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.000143/0.2008, allocations: 87.91 kB / 0.7381 GB, free: 6.43 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003279/0.2011, allocations: 23.97 kB / 0.7381 GB, free: 6.406 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003148/0.2043, allocations: 2.667 MB / 0.7407 GB, free: 3.555 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001039/0.2044, allocations: 115.6 kB / 0.7408 GB, free: 3.422 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 7.276e-05/0.2044, allocations: 22.28 kB / 0.7408 GB, free: 3.398 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.233e-05/0.2045, allocations: 51.42 kB / 0.7409 GB, free: 3.348 MB / 0.5606 GB Notification: Performance of SimCode: time 4.21e-07/0.2045, allocations: 0 / 0.7409 GB, free: 3.348 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03415/0.2387, allocations: 5.245 MB / 0.746 GB, free: 14.28 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.33/11.57, allocations: 9.953 kB / 0.746 GB, free: 14.27 MB / 0.5762 GB " [Timeout remaining time 648] (rm -f IBPSA_latest_IBPSA.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; mkfifo IBPSA_latest_IBPSA.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Controls.OBC.CDL.Logical.Validation.Latch.pipe >> ../files/IBPSA_latest_IBPSA.Controls.OBC.CDL.Logical.Validation.Latch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Controls_OBC_CDL_Logical_Validation_Latch_fmu --startTime=0 --stopTime=10 --stepSize=0.004 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Controls_OBC_CDL_Logical_Validation_Latch.fmu > IBPSA_latest_IBPSA.Controls.OBC.CDL.Logical.Validation.Latch.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.467240147758275] Failed to read output from testmodel.py, exit status != 0: 11.677313208580017 11.704590686 11.508835158 Calling exit ...