Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.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.001839/0.001839, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.002296/0.002296, allocations: 216.9 kB / 22.25 MB, free: 4.855 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.507/1.507, allocations: 230.6 MB / 256 MB, free: 7.797 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.002632/0.002632, allocations: 291.5 kB / 312.7 MB, free: 2.598 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.258/1.258, 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: translateModel(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter") translateModel(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter") [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.003011/0.003011, allocations: 101.1 kB / 0.74 GB, free: 27.83 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1721/0.1751, allocations: 95.38 MB / 0.8331 GB, free: 7.848 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter): time 0.004453/0.1795, allocations: 1.645 MB / 0.8347 GB, free: 6.191 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.001302/0.1808, allocations: 0.5845 MB / 0.8353 GB, free: 5.602 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001486/0.181, allocations: 3.938 kB / 0.8353 GB, free: 5.598 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0002155/0.1812, allocations: 31.72 kB / 0.8353 GB, free: 5.566 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0003362/0.1815, allocations: 63.67 kB / 0.8354 GB, free: 5.504 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002858/0.1818, allocations: 79.84 kB / 0.8355 GB, free: 5.426 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0002647/0.1821, allocations: 139.5 kB / 0.8356 GB, free: 5.289 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001841/0.1823, allocations: 29.67 kB / 0.8356 GB, free: 5.254 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002198/0.1825, allocations: 63.7 kB / 0.8357 GB, free: 5.191 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001369/0.1826, allocations: 59.7 kB / 0.8357 GB, free: 5.133 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 3.029e-05/0.1827, allocations: 8 kB / 0.8357 GB, free: 5.125 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 9.784e-05/0.1828, allocations: 31.98 kB / 0.8358 GB, free: 5.094 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001033/0.1829, allocations: 47.83 kB / 0.8358 GB, free: 5.047 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 7.046e-05/0.1829, allocations: 51.59 kB / 0.8359 GB, free: 4.996 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0002767/0.1832, allocations: 151.2 kB / 0.836 GB, free: 4.848 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.1832, allocations: 4 kB / 0.836 GB, free: 4.844 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.944e-06/0.1832, allocations: 0 / 0.836 GB, free: 4.844 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 6.492e-06/0.1832, allocations: 4 kB / 0.836 GB, free: 4.84 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0007036/0.1839, allocations: 401.3 kB / 0.8364 GB, free: 4.418 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 5.618e-05/0.184, allocations: 9.344 kB / 0.8364 GB, free: 4.41 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000177/0.1842, allocations: 32.78 kB / 0.8364 GB, free: 4.379 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003684/0.1845, allocations: 186.1 kB / 0.8366 GB, free: 4.172 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.556e-05/0.1845, allocations: 8.375 kB / 0.8366 GB, free: 4.164 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.84e-05/0.1846, allocations: 4.375 kB / 0.8366 GB, free: 4.16 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003301/0.1849, allocations: 154.5 kB / 0.8368 GB, free: 3.992 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/0.1849, allocations: 4 kB / 0.8368 GB, free: 3.988 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.744e-05/0.1849, allocations: 7.984 kB / 0.8368 GB, free: 3.98 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.999e-06/0.1849, allocations: 3.938 kB / 0.8368 GB, free: 3.977 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002354/0.1852, allocations: 63.94 kB / 0.8369 GB, free: 3.914 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005893/0.1857, allocations: 304.3 kB / 0.8371 GB, free: 3.586 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001548/0.1859, allocations: 38.55 kB / 0.8372 GB, free: 3.539 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001163/0.186, allocations: 32.89 kB / 0.8372 GB, free: 3.504 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 1.954e-05/0.186, allocations: 0 / 0.8372 GB, free: 3.504 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002693/0.1863, allocations: 144.5 kB / 0.8374 GB, free: 3.332 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=3): time 1.002e-06/0.1863, allocations: 8 kB / 0.8374 GB, free: 3.324 MB / 0.5762 GB Notification: Performance of matching and sorting (n=3): time 0.0004547/0.1868, allocations: 117.5 kB / 0.8375 GB, free: 3.203 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.232e-05/0.1868, allocations: 81.05 kB / 0.8376 GB, free: 3.105 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002765/0.1871, allocations: 241.1 kB / 0.8378 GB, free: 2.859 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.308e-05/0.1871, allocations: 25.7 kB / 0.8378 GB, free: 2.828 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001131/0.1872, allocations: 132.1 kB / 0.8379 GB, free: 2.695 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 2.682e-05/0.1873, allocations: 11.84 kB / 0.8379 GB, free: 2.684 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.471e-05/0.1873, allocations: 25.7 kB / 0.838 GB, free: 2.652 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001782/0.1875, allocations: 322.8 kB / 0.8383 GB, free: 2.328 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000119/0.1876, allocations: 23.97 kB / 0.8383 GB, free: 2.305 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001393/0.1877, allocations: 73.3 kB / 0.8384 GB, free: 2.215 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002305/0.188, allocations: 74.5 kB / 0.8384 GB, free: 2.133 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.188, allocations: 0 / 0.8384 GB, free: 2.133 MB / 0.5762 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002808/0.1883, allocations: 101.6 kB / 0.8385 GB, free: 2.027 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.504e-05/0.1883, allocations: 4 kB / 0.8385 GB, free: 2.023 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.1883, allocations: 7.938 kB / 0.8385 GB, free: 2.016 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.736e-05/0.1883, allocations: 3.984 kB / 0.8386 GB, free: 2.012 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001126/0.1884, allocations: 16.08 kB / 0.8386 GB, free: 1.996 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.376e-06/0.1884, allocations: 3.938 kB / 0.8386 GB, free: 1.992 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.508e-05/0.1885, allocations: 11.98 kB / 0.8386 GB, free: 1.98 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.336e-06/0.1885, allocations: 7.875 kB / 0.8386 GB, free: 1.973 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * 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 0.0001301/0.1886, allocations: 130.5 kB / 0.8387 GB, free: 1.836 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.914e-05/0.1887, allocations: 15.91 kB / 0.8387 GB, free: 1.82 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.523e-05/0.1887, allocations: 17.02 kB / 0.8387 GB, free: 1.805 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.1887, allocations: 0 / 0.8387 GB, free: 1.805 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.854e-06/0.1887, allocations: 3.938 kB / 0.8387 GB, free: 1.801 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.1887, allocations: 8 kB / 0.8388 GB, free: 1.793 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001581/0.1889, allocations: 149.3 kB / 0.8389 GB, free: 1.617 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.1889, allocations: 4 kB / 0.8389 GB, free: 1.613 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.394e-05/0.189, allocations: 11.98 kB / 0.8389 GB, free: 1.602 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.189, allocations: 0 / 0.8389 GB, free: 1.602 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.11e-05/0.189, allocations: 4 kB / 0.8389 GB, free: 1.598 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.189, allocations: 0 / 0.8389 GB, free: 1.598 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.189, allocations: 0 / 0.8389 GB, free: 1.598 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003025/0.1893, allocations: 132.8 kB / 0.839 GB, free: 1.449 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 2.272e-05/0.1893, allocations: 11.91 kB / 0.8391 GB, free: 1.438 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.214e-05/0.1893, allocations: 0 / 0.8391 GB, free: 1.438 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.171e-05/0.1894, allocations: 11.98 kB / 0.8391 GB, free: 1.426 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.143e-05/0.1895, allocations: 11.92 kB / 0.8391 GB, free: 1.414 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.362e-05/0.1895, allocations: 4 kB / 0.8391 GB, free: 1.41 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001759/0.1897, allocations: 173.8 kB / 0.8392 GB, free: 1.242 MB / 0.5762 GB Notification: Performance of sort global known variables: time 7e-08/0.1897, allocations: 0 / 0.8392 GB, free: 1.242 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0002278/0.1899, allocations: 27.92 kB / 0.8393 GB, free: 1.215 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (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 Backend phase and start with SimCode phase: time 0.0002542/0.1902, allocations: 117.2 kB / 0.8394 GB, free: 1.094 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0002986/0.1905, allocations: 59.94 kB / 0.8394 GB, free: 1.035 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.548e-06/0.1905, allocations: 8.062 kB / 0.8395 GB, free: 1.027 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001194/0.1906, allocations: 27.97 kB / 0.8395 GB, free: 1 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003057/0.1909, allocations: 42.08 kB / 0.8395 GB, free: 0.9609 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005977/0.1915, allocations: 297 kB / 0.8398 GB, free: 0.6445 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001273/0.1916, allocations: 114 kB / 0.8399 GB, free: 0.5156 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 6.676e-05/0.1917, allocations: 16.42 kB / 0.8399 GB, free: 0.5 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.498e-05/0.1917, allocations: 19.44 kB / 0.8399 GB, free: 492 kB / 0.5762 GB Notification: Performance of SimCode: time 5.21e-07/0.1917, allocations: 3.938 kB / 0.8399 GB, free: 488 kB / 0.5762 GB Notification: Performance of Templates: time 0.00564/0.1974, allocations: 1.875 MB / 0.8418 GB, free: 14.64 MB / 0.5919 GB " [Timeout remaining time 660] make -j1 -f BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.makefile [Timeout 660] (rm -f BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.sim & ./BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.365747395902872] Failed to read output from testmodel.py, exit status != 0: 0.20507293939590454 0.22071215700000002 0.034342504 Calling exit ...