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.001006/0.001006, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001387/0.002393, allocations: 435.8 kB / 10.33 MB, free: 368 kB / 10.45 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.00107/0.00107, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001582/0.002652, allocations: 463.6 kB / 11.68 MB, free: 2.484 MB / 13.93 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.023/1.023, allocations: 177.1 MB / 189.6 MB, free: 5.32 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08237/1.106, allocations: 53.66 MB / 243.2 MB, free: 15.59 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001444/0.001444, allocations: 240.5 kB / 244.2 MB, free: 14.64 MB / 250.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001195/0.002639, allocations: 470.9 kB / 244.7 MB, free: 14.18 MB / 250.7 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7016/0.7016, allocations: 138.7 MB / 384.1 MB, free: 484 kB / 362.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07301/0.7746, allocations: 42.4 MB / 426.5 MB, free: 5.953 MB / 410.7 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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: Performance of FrontEnd - loaded program: time 1.372e-06/1.372e-06, allocations: 0 / 427.8 MB, free: 4.664 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.066e-05/1.203e-05, allocations: 2.312 kB / 427.8 MB, free: 4.66 MB / 410.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter): time 0.001819/0.001831, allocations: 1.743 MB / 429.5 MB, free: 2.902 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006835/0.002514, allocations: 0.6154 MB / 430.1 MB, free: 2.281 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.812e-05/0.002593, allocations: 7.938 kB / 430.1 MB, free: 2.273 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001187/0.002711, allocations: 27.73 kB / 430.1 MB, free: 2.246 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001586/0.00287, allocations: 63.67 kB / 430.2 MB, free: 2.184 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000151/0.003021, allocations: 75.78 kB / 430.3 MB, free: 2.109 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001404/0.003161, allocations: 131.5 kB / 430.4 MB, free: 1.98 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000106/0.003267, allocations: 34.31 kB / 430.4 MB, free: 1.949 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001674/0.003435, allocations: 108.4 kB / 430.6 MB, free: 1.844 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.101e-05/0.003516, allocations: 51.86 kB / 430.6 MB, free: 1.793 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 2.074e-05/0.003536, allocations: 12 kB / 430.6 MB, free: 1.781 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.924e-05/0.003616, allocations: 27.94 kB / 430.6 MB, free: 1.754 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 6.149e-05/0.003677, allocations: 31.86 kB / 430.7 MB, free: 1.723 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 3.099e-05/0.003708, allocations: 27.88 kB / 430.7 MB, free: 1.695 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001445/0.003853, allocations: 115.5 kB / 430.8 MB, free: 1.582 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.381e-05/0.003866, allocations: 0 / 430.8 MB, free: 1.582 MB / 410.7 MB Notification: Performance of FrontEnd: time 6.52e-07/0.003867, allocations: 0 / 430.8 MB, free: 1.582 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.586e-05/0.003883, allocations: 0 / 430.8 MB, free: 1.582 MB / 410.7 MB 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.0004264/0.004309, allocations: 391.5 kB / 431.2 MB, free: 1.176 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.722e-05/0.004336, allocations: 11.98 kB / 431.2 MB, free: 1.164 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001424/0.004479, allocations: 114 kB / 431.3 MB, free: 1.035 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001946/0.004673, allocations: 185.2 kB / 431.5 MB, free: 0.8281 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.999e-06/0.004683, allocations: 4.375 kB / 431.5 MB, free: 0.8242 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.249e-05/0.004696, allocations: 12.36 kB / 431.5 MB, free: 0.8125 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001369/0.004833, allocations: 136.9 kB / 431.7 MB, free: 0.6562 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.664e-06/0.004841, allocations: 3.938 kB / 431.7 MB, free: 0.6523 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.774e-06/0.004848, allocations: 0 / 431.7 MB, free: 0.6523 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/0.004853, allocations: 4 kB / 431.7 MB, free: 0.6484 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.633e-05/0.004879, allocations: 11.98 kB / 431.7 MB, free: 0.6367 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002578/0.005137, allocations: 217.7 kB / 431.9 MB, free: 416 kB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.72e-05/0.005174, allocations: 34.48 kB / 431.9 MB, free: 372 kB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.199e-05/0.005186, allocations: 4.859 kB / 431.9 MB, free: 364 kB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.019e-05/0.005196, allocations: 0 / 431.9 MB, free: 364 kB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001012/0.005298, allocations: 120.5 kB / 432 MB, free: 212 kB / 410.7 MB Notification: Performance of pre-optimization done (n=3): time 7.51e-07/0.005298, allocations: 0 / 432 MB, free: 212 kB / 410.7 MB Notification: Performance of matching and sorting (n=3): time 9.501e-05/0.005393, allocations: 45.62 kB / 432.1 MB, free: 160 kB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.562e-05/0.005419, allocations: 63.41 kB / 432.1 MB, free: 84 kB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.184/0.1894, allocations: 201.2 kB / 432.3 MB, free: 2.547 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.052e-05/0.1894, allocations: 26.83 kB / 432.4 MB, free: 2.516 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.662e-05/0.1894, allocations: 111.5 kB / 432.5 MB, free: 2.434 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.78e-05/0.1894, allocations: 10.53 kB / 432.5 MB, free: 2.434 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.437e-05/0.1895, allocations: 21 kB / 432.5 MB, free: 2.418 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.759e-05/0.1895, allocations: 328.2 kB / 432.8 MB, free: 2.105 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.507e-05/0.1895, allocations: 3.016 kB / 432.8 MB, free: 2.105 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.779e-05/0.1896, allocations: 73.41 kB / 432.9 MB, free: 2.02 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.357e-05/0.1896, allocations: 28.27 kB / 432.9 MB, free: 2 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.1896, allocations: 0 / 432.9 MB, free: 2 MB / 410.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 6.377e-05/0.1897, allocations: 51.52 kB / 433 MB, free: 1.969 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.342e-05/0.1897, allocations: 5.469 kB / 433 MB, free: 1.969 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.559e-06/0.1897, allocations: 0 / 433 MB, free: 1.969 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.476e-06/0.1897, allocations: 0.7188 kB / 433 MB, free: 1.969 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.114e-05/0.1898, allocations: 13.64 kB / 433 MB, free: 1.969 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.765e-06/0.1898, allocations: 3.469 kB / 433 MB, free: 1.969 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.702e-05/0.1898, allocations: 10.56 kB / 433 MB, free: 1.969 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.386e-05/0.1898, allocations: 1.75 kB / 433 MB, free: 1.969 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 4.349e-05/0.1899, allocations: 115.5 kB / 433.1 MB, free: 1.852 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.452e-05/0.1899, allocations: 10.8 kB / 433.1 MB, free: 1.852 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.585e-05/0.1899, allocations: 18.88 kB / 433.2 MB, free: 1.848 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.1899, allocations: 3.938 kB / 433.2 MB, free: 1.844 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.523e-06/0.1899, allocations: 1.688 kB / 433.2 MB, free: 1.844 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.1899, allocations: 3.359 kB / 433.2 MB, free: 1.844 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.628e-05/0.19, allocations: 98.53 kB / 433.3 MB, free: 1.77 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.031e-06/0.19, allocations: 1.375 kB / 433.3 MB, free: 1.77 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.109e-05/0.19, allocations: 8.547 kB / 433.3 MB, free: 1.77 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.15e-05/0.1901, allocations: 10.84 kB / 433.3 MB, free: 1.77 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.312e-06/0.1901, allocations: 0.5 kB / 433.3 MB, free: 1.77 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.639e-06/0.1901, allocations: 3.719 kB / 433.3 MB, free: 1.77 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.1901, allocations: 5.922 kB / 433.3 MB, free: 1.766 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.1901, allocations: 1.375 kB / 433.3 MB, free: 1.766 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.92e-05/0.1901, allocations: 71.2 kB / 433.4 MB, free: 1.703 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.188e-05/0.1901, allocations: 2.469 kB / 433.4 MB, free: 1.703 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.713e-05/0.1902, allocations: 8.641 kB / 433.4 MB, free: 1.703 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.709e-05/0.1902, allocations: 8.5 kB / 433.4 MB, free: 1.699 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.497e-06/0.1902, allocations: 7.25 kB / 433.4 MB, free: 1.699 MB / 410.7 MB Notification: Performance of sorting global known variables: time 5.376e-05/0.1903, allocations: 71.8 kB / 433.5 MB, free: 1.684 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.1903, allocations: 0 / 433.5 MB, free: 1.684 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00012/0.1904, allocations: 28.36 kB / 433.5 MB, free: 1.684 MB / 410.7 MB 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.0001603/0.1905, allocations: 105.5 kB / 433.6 MB, free: 1.617 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 7.525e-05/0.1906, allocations: 18.14 kB / 433.6 MB, free: 1.609 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.023e-06/0.1906, allocations: 4 kB / 433.6 MB, free: 1.609 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.53e-05/0.1906, allocations: 15.22 kB / 433.6 MB, free: 1.602 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00015/0.1908, allocations: 56.88 kB / 433.7 MB, free: 1.598 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007116/0.1915, allocations: 277.9 kB / 434 MB, free: 1.418 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.142e-05/0.1915, allocations: 73 kB / 434 MB, free: 1.348 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 4.054e-05/0.1916, allocations: 16.25 kB / 434 MB, free: 1.348 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.564e-05/0.1916, allocations: 70.67 kB / 434.1 MB, free: 1.305 MB / 410.7 MB Notification: Performance of SimCode: time 5.61e-07/0.1916, allocations: 0 / 434.1 MB, free: 1.305 MB / 410.7 MB Notification: Performance of Templates: time 0.003582/0.1952, allocations: 1.903 MB / 436 MB, free: 1.238 MB / 410.7 MB " [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=240 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.434209058061242]