Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.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.001268/0.001268, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.00146/0.00146, allocations: 214.1 kB / 22.25 MB, free: 5.262 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.394/1.394, allocations: 230.6 MB / 256 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.002528/0.002528, allocations: 283.3 kB / 312.7 MB, free: 2.617 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 1.17/1.17, allocations: 180.6 MB / 0.5369 GB, free: 14.58 MB / 382.1 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 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(BuildingSystems.HAM.Examples.GasGapClosed,fileNamePrefix="BuildingSystems_BuildingSystems_HAM_Examples_GasGapClosed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.HAM.Examples.GasGapClosed,fileNamePrefix="BuildingSystems_BuildingSystems_HAM_Examples_GasGapClosed",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: NcDataReader2 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: BuildingSystems 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.002907/0.002907, allocations: 101.7 kB / 0.7395 GB, free: 28.03 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1789/0.1818, allocations: 95.38 MB / 0.8326 GB, free: 8.348 MB / 0.5763 GB Notification: Performance of NFInst.instantiate(BuildingSystems.HAM.Examples.GasGapClosed): time 0.002877/0.1846, allocations: 1.726 MB / 0.8343 GB, free: 6.613 MB / 0.5763 GB Notification: Performance of NFInst.instExpressions: time 0.001683/0.1863, allocations: 1.02 MB / 0.8353 GB, free: 5.586 MB / 0.5763 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.511e-05/0.1864, allocations: 0 / 0.8353 GB, free: 5.586 MB / 0.5763 GB Notification: Performance of NFTyping.typeComponents: time 4.761e-05/0.1864, allocations: 15.86 kB / 0.8353 GB, free: 5.57 MB / 0.5763 GB Notification: Performance of NFTyping.typeBindings: time 9.502e-05/0.1865, allocations: 27.72 kB / 0.8353 GB, free: 5.543 MB / 0.5763 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004902/0.187, allocations: 183.6 kB / 0.8355 GB, free: 5.363 MB / 0.5763 GB Notification: Performance of NFFlatten.flatten: time 0.0001572/0.1872, allocations: 99.52 kB / 0.8356 GB, free: 5.266 MB / 0.5763 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000106/0.1873, allocations: 19.92 kB / 0.8356 GB, free: 5.246 MB / 0.5763 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001346/0.1874, allocations: 39.86 kB / 0.8357 GB, free: 5.207 MB / 0.5763 GB Notification: Performance of NFSimplifyModel.simplify: time 9.049e-05/0.1875, allocations: 51.77 kB / 0.8357 GB, free: 5.156 MB / 0.5763 GB Notification: Performance of NFPackage.collectConstants: time 1.714e-05/0.1875, allocations: 4 kB / 0.8357 GB, free: 5.152 MB / 0.5763 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003391/0.1879, allocations: 187.8 kB / 0.8359 GB, free: 4.969 MB / 0.5763 GB Notification: Performance of NFScalarize.scalarize: time 2.388e-05/0.1879, allocations: 19.92 kB / 0.8359 GB, free: 4.949 MB / 0.5763 GB Notification: Performance of NFVerifyModel.verify: time 4.14e-05/0.1879, allocations: 31.86 kB / 0.8359 GB, free: 4.918 MB / 0.5763 GB Notification: Performance of NFConvertDAE.convert: time 0.0003157/0.1882, allocations: 211.3 kB / 0.8361 GB, free: 4.711 MB / 0.5763 GB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.1882, allocations: 0 / 0.8361 GB, free: 4.711 MB / 0.5763 GB Notification: Performance of FrontEnd: time 1.363e-06/0.1883, allocations: 0 / 0.8361 GB, free: 4.711 MB / 0.5763 GB Notification: Performance of Transformations before backend: time 4.849e-06/0.1883, allocations: 4 kB / 0.8361 GB, free: 4.707 MB / 0.5763 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0005455/0.1888, allocations: 353.6 kB / 0.8365 GB, free: 4.332 MB / 0.5763 GB Notification: Performance of prepare preOptimizeDAE: time 3.86e-05/0.1888, allocations: 9.344 kB / 0.8365 GB, free: 4.324 MB / 0.5763 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.828e-05/0.1889, allocations: 34.69 kB / 0.8365 GB, free: 4.281 MB / 0.5763 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001393/0.189, allocations: 24.88 kB / 0.8365 GB, free: 4.258 MB / 0.5763 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002168/0.1892, allocations: 134.4 kB / 0.8367 GB, free: 4.102 MB / 0.5763 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.317e-06/0.1892, allocations: 8.359 kB / 0.8367 GB, free: 4.094 MB / 0.5763 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.048e-05/0.1893, allocations: 12.36 kB / 0.8367 GB, free: 4.082 MB / 0.5763 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000164/0.1894, allocations: 73.73 kB / 0.8368 GB, free: 4.004 MB / 0.5763 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.255e-06/0.1894, allocations: 4 kB / 0.8368 GB, free: 4 MB / 0.5763 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.005e-05/0.1894, allocations: 0 / 0.8368 GB, free: 4 MB / 0.5763 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.128e-06/0.1894, allocations: 0 / 0.8368 GB, free: 4 MB / 0.5763 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001304/0.1896, allocations: 47.91 kB / 0.8368 GB, free: 3.953 MB / 0.5763 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004953/0.1901, allocations: 291.8 kB / 0.8371 GB, free: 3.625 MB / 0.5763 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001143/0.1902, allocations: 46.5 kB / 0.8371 GB, free: 3.57 MB / 0.5763 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.818e-05/0.1902, allocations: 20.94 kB / 0.8372 GB, free: 3.547 MB / 0.5763 GB Notification: Performance of preOpt evalFunc (simulation): time 8.028e-05/0.1903, allocations: 15.98 kB / 0.8372 GB, free: 3.531 MB / 0.5763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.349e-05/0.1904, allocations: 30.56 kB / 0.8372 GB, free: 3.492 MB / 0.5763 GB Notification: Performance of pre-optimization done (n=3): time 1.052e-06/0.1904, allocations: 0 / 0.8372 GB, free: 3.492 MB / 0.5763 GB Notification: Performance of matching and sorting (n=3): time 0.0002689/0.1906, allocations: 85.56 kB / 0.8373 GB, free: 3.402 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.823e-05/0.1907, allocations: 51.41 kB / 0.8373 GB, free: 3.34 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001435/0.1908, allocations: 160 kB / 0.8375 GB, free: 3.176 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 1.677e-05/0.1908, allocations: 25.7 kB / 0.8375 GB, free: 3.145 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 5.648e-05/0.1909, allocations: 96.12 kB / 0.8376 GB, free: 3.047 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 2.283e-05/0.1909, allocations: 15.91 kB / 0.8376 GB, free: 3.031 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.264e-05/0.1909, allocations: 17.7 kB / 0.8376 GB, free: 3.008 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 0.0001455/0.1911, allocations: 318.8 kB / 0.8379 GB, free: 2.688 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.239e-05/0.1911, allocations: 15.98 kB / 0.8379 GB, free: 2.672 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.244e-05/0.1912, allocations: 15.98 kB / 0.838 GB, free: 2.656 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.506e-05/0.1913, allocations: 32.95 kB / 0.838 GB, free: 2.621 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.1913, allocations: 3.938 kB / 0.838 GB, free: 2.617 MB / 0.5763 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001445/0.1914, allocations: 77.62 kB / 0.8381 GB, free: 2.535 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 1.329e-05/0.1914, allocations: 5.562 kB / 0.8381 GB, free: 2.531 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.707e-06/0.1914, allocations: 0 / 0.8381 GB, free: 2.531 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.407e-05/0.1914, allocations: 4 kB / 0.8381 GB, free: 2.527 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.535e-05/0.1915, allocations: 15.92 kB / 0.8381 GB, free: 2.512 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.821e-06/0.1915, allocations: 3.938 kB / 0.8381 GB, free: 2.508 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.354e-05/0.1916, allocations: 7.938 kB / 0.8381 GB, free: 2.5 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.494e-06/0.1916, allocations: 4 kB / 0.8381 GB, free: 2.496 MB / 0.5763 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * 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 8.164e-05/0.1917, allocations: 114.5 kB / 0.8382 GB, free: 2.375 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.043e-05/0.1917, allocations: 7.953 kB / 0.8382 GB, free: 2.367 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002021/0.1919, allocations: 78.33 kB / 0.8383 GB, free: 2.273 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.117e-06/0.1919, allocations: 4.047 kB / 0.8383 GB, free: 2.27 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.067e-06/0.1919, allocations: 11.92 kB / 0.8383 GB, free: 2.258 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.304e-06/0.1919, allocations: 0 / 0.8383 GB, free: 2.258 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001788/0.1921, allocations: 152.7 kB / 0.8385 GB, free: 2.066 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.1921, allocations: 0 / 0.8385 GB, free: 2.066 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.121e-05/0.1922, allocations: 15.92 kB / 0.8385 GB, free: 2.051 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.1922, allocations: 0 / 0.8385 GB, free: 2.051 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.023e-05/0.1922, allocations: 4 kB / 0.8385 GB, free: 2.047 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.1922, allocations: 4 kB / 0.8385 GB, free: 2.043 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.1922, allocations: 3.938 kB / 0.8385 GB, free: 2.039 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002034/0.1924, allocations: 167.5 kB / 0.8386 GB, free: 1.859 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 1.838e-05/0.1924, allocations: 15.94 kB / 0.8387 GB, free: 1.844 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.642e-05/0.1924, allocations: 0 / 0.8387 GB, free: 1.844 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.635e-05/0.1925, allocations: 0 / 0.8387 GB, free: 1.844 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.066e-05/0.1925, allocations: 7.938 kB / 0.8387 GB, free: 1.836 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.121e-06/0.1925, allocations: 7.922 kB / 0.8387 GB, free: 1.828 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 8.37e-05/0.1926, allocations: 109.8 kB / 0.8388 GB, free: 1.723 MB / 0.5763 GB Notification: Performance of sort global known variables: time 8e-08/0.1926, allocations: 0 / 0.8388 GB, free: 1.723 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.0002919/0.1929, allocations: 67.75 kB / 0.8388 GB, free: 1.656 MB / 0.5763 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0006492/0.1936, allocations: 0.7745 MB / 0.8396 GB, free: 0.8555 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.0001488/0.1937, allocations: 35.98 kB / 0.8396 GB, free: 0.8203 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.1937, allocations: 0 / 0.8396 GB, free: 0.8203 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 6.239e-05/0.1938, allocations: 23.92 kB / 0.8397 GB, free: 0.7969 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002634/0.194, allocations: 19.92 kB / 0.8397 GB, free: 0.7773 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001597/0.1956, allocations: 1.492 MB / 0.8411 GB, free: 15.2 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.641e-05/0.1957, allocations: 79.31 kB / 0.8412 GB, free: 15.1 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 3.688e-05/0.1958, allocations: 4 kB / 0.8412 GB, free: 15.1 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.458e-05/0.1958, allocations: 23.44 kB / 0.8412 GB, free: 15.07 MB / 0.5919 GB Notification: Performance of SimCode: time 4.21e-07/0.1958, allocations: 0 / 0.8412 GB, free: 15.07 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03134/0.2272, allocations: 3.81 MB / 0.845 GB, free: 11.42 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.64/10.87, allocations: 5.812 kB / 0.845 GB, free: 11.42 MB / 0.5919 GB " [Timeout remaining time 649] (rm -f BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.pipe ; mkfifo BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.pipe >> ../files/BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_HAM_Examples_GasGapClosed_fmu --startTime=0 --stopTime=7200 --stepSize=2.88 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_HAM_Examples_GasGapClosed.fmu > BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.846310338005424] Failed to read output from testmodel.py, exit status != 0: 10.975373525172472 10.991264049 10.800069944 Calling exit ...