Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter") translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.014/2.014, allocations: 391.2 MB / 407 MB, free: 10.81 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001128/0.001128, allocations: 195.4 kB / 499.1 MB, free: 4.633 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.299/1.299, allocations: 222.9 MB / 0.7948 GB, free: 15.74 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009411/0.0009412, allocations: 107.7 kB / 0.9329 GB, free: 7.043 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.001006/0.001007, allocations: 49.86 kB / 1.081 GB, free: 218.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2076/0.2086, allocations: 140.6 MB / 1.218 GB, free: 117.2 MB / 0.823 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002646/0.2113, allocations: 1.694 MB / 1.22 GB, free: 115.5 MB / 0.823 GB Notification: Performance of NFInst.instExpressions: time 0.0007294/0.212, allocations: 0.5347 MB / 1.22 GB, free: 114.9 MB / 0.823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001035/0.2122, allocations: 4 kB / 1.22 GB, free: 114.9 MB / 0.823 GB Notification: Performance of NFTyping.typeComponents: time 0.0001856/0.2124, allocations: 23.86 kB / 1.22 GB, free: 114.9 MB / 0.823 GB Notification: Performance of NFTyping.typeBindings: time 0.0002245/0.2126, allocations: 59.73 kB / 1.22 GB, free: 114.8 MB / 0.823 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001403/0.2128, allocations: 51.94 kB / 1.22 GB, free: 114.8 MB / 0.823 GB Notification: Performance of NFFlatten.flatten: time 0.0001468/0.2129, allocations: 127.5 kB / 1.221 GB, free: 114.7 MB / 0.823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001383/0.2131, allocations: 53.42 kB / 1.221 GB, free: 114.6 MB / 0.823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001099/0.2132, allocations: 55.77 kB / 1.221 GB, free: 114.6 MB / 0.823 GB Notification: Performance of NFSimplifyModel.simplify: time 9.71e-05/0.2133, allocations: 55.7 kB / 1.221 GB, free: 114.5 MB / 0.823 GB Notification: Performance of NFPackage.collectConstants: time 2.715e-05/0.2133, allocations: 11.98 kB / 1.221 GB, free: 114.5 MB / 0.823 GB Notification: Performance of NFFlatten.collectFunctions: time 5.685e-05/0.2134, allocations: 19.98 kB / 1.221 GB, free: 114.5 MB / 0.823 GB Notification: Performance of NFScalarize.scalarize: time 7.321e-05/0.2134, allocations: 43.84 kB / 1.221 GB, free: 114.4 MB / 0.823 GB Notification: Performance of NFVerifyModel.verify: time 5.112e-05/0.2135, allocations: 55.59 kB / 1.221 GB, free: 114.4 MB / 0.823 GB Notification: Performance of NFConvertDAE.convert: time 0.0001486/0.2137, allocations: 137.6 kB / 1.221 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.2137, allocations: 4 kB / 1.221 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd: time 7.92e-07/0.2137, allocations: 3.938 kB / 1.221 GB, free: 114.2 MB / 0.823 GB Notification: Performance of Transformations before backend: time 5.039e-06/0.2137, allocations: 0 / 1.221 GB, free: 114.2 MB / 0.823 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.00051/0.2142, allocations: 470.6 kB / 1.221 GB, free: 113.7 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 3.544e-05/0.2142, allocations: 11.98 kB / 1.221 GB, free: 113.7 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.295e-05/0.2143, allocations: 16.75 kB / 1.221 GB, free: 113.7 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002023/0.2145, allocations: 242.7 kB / 1.222 GB, free: 113.4 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.043e-05/0.2145, allocations: 4.375 kB / 1.222 GB, free: 113.4 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.297e-05/0.2145, allocations: 8.375 kB / 1.222 GB, free: 113.4 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000238/0.2148, allocations: 112.9 kB / 1.222 GB, free: 113.3 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.065e-06/0.2148, allocations: 0 / 1.222 GB, free: 113.3 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.343e-05/0.2148, allocations: 4 kB / 1.222 GB, free: 113.3 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.968e-06/0.2148, allocations: 0 / 1.222 GB, free: 113.3 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001953/0.215, allocations: 63.94 kB / 1.222 GB, free: 113.2 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004618/0.2155, allocations: 380.5 kB / 1.222 GB, free: 112.8 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001194/0.2156, allocations: 42.55 kB / 1.222 GB, free: 112.8 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.24e-05/0.2157, allocations: 28.91 kB / 1.222 GB, free: 112.7 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.329e-05/0.2158, allocations: 0 / 1.222 GB, free: 112.7 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002404/0.216, allocations: 101 kB / 1.222 GB, free: 112.6 MB / 0.823 GB Notification: Performance of pre-optimization done (n=3): time 1.011e-06/0.216, allocations: 0 / 1.222 GB, free: 112.6 MB / 0.823 GB Notification: Performance of matching and sorting (n=3): time 0.0003665/0.2164, allocations: 125.4 kB / 1.222 GB, free: 112.5 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.793e-05/0.2164, allocations: 77.11 kB / 1.223 GB, free: 112.4 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001697/0.2166, allocations: 256.9 kB / 1.223 GB, free: 112.1 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 1.252e-05/0.2166, allocations: 29.7 kB / 1.223 GB, free: 112.1 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 4.616e-05/0.2167, allocations: 135.9 kB / 1.223 GB, free: 111.9 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 1.354e-05/0.2167, allocations: 3.906 kB / 1.223 GB, free: 111.9 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.179e-05/0.2167, allocations: 21.7 kB / 1.223 GB, free: 111.9 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 4.622e-05/0.2168, allocations: 330.8 kB / 1.223 GB, free: 111.6 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.539e-05/0.2169, allocations: 23.97 kB / 1.223 GB, free: 111.6 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.682e-05/0.217, allocations: 47.41 kB / 1.223 GB, free: 111.5 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001767/0.2172, allocations: 74.5 kB / 1.223 GB, free: 111.4 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.2172, allocations: 0 / 1.223 GB, free: 111.4 MB / 0.823 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002333/0.2174, allocations: 105.5 kB / 1.224 GB, free: 111.3 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.338e-05/0.2174, allocations: 5.094 kB / 1.224 GB, free: 111.3 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.2174, allocations: 3.938 kB / 1.224 GB, free: 111.3 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.304e-05/0.2175, allocations: 7.938 kB / 1.224 GB, free: 111.3 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.574e-05/0.2176, allocations: 11.98 kB / 1.224 GB, free: 111.3 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.729e-06/0.2176, allocations: 0 / 1.224 GB, free: 111.3 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.84e-05/0.2176, allocations: 19.83 kB / 1.224 GB, free: 111.3 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.855e-06/0.2177, allocations: 0 / 1.224 GB, free: 111.3 MB / 0.823 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 6.661e-05/0.2177, allocations: 133.9 kB / 1.224 GB, free: 111.1 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.189e-05/0.2178, allocations: 16.09 kB / 1.224 GB, free: 111.1 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.81e-05/0.2178, allocations: 17.23 kB / 1.224 GB, free: 111.1 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.2178, allocations: 7.922 kB / 1.224 GB, free: 111.1 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.2178, allocations: 4 kB / 1.224 GB, free: 111.1 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.304e-06/0.2178, allocations: 0 / 1.224 GB, free: 111.1 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000108/0.2179, allocations: 213.6 kB / 1.224 GB, free: 110.8 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.2179, allocations: 4 kB / 1.224 GB, free: 110.8 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.926e-05/0.218, allocations: 11.98 kB / 1.224 GB, free: 110.8 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.963e-06/0.218, allocations: 0 / 1.224 GB, free: 110.8 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.572e-06/0.218, allocations: 4 kB / 1.224 GB, free: 110.8 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.218, allocations: 7.938 kB / 1.224 GB, free: 110.8 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.218, allocations: 3.938 kB / 1.224 GB, free: 110.8 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004472/0.2185, allocations: 0.7251 MB / 1.225 GB, free: 110 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 2.944e-05/0.2185, allocations: 88.92 kB / 1.225 GB, free: 109.9 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.895e-05/0.2186, allocations: 4 kB / 1.225 GB, free: 109.9 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.392e-05/0.2186, allocations: 7.984 kB / 1.225 GB, free: 109.9 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.62e-05/0.2187, allocations: 4 kB / 1.225 GB, free: 109.9 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.238e-05/0.2187, allocations: 7.984 kB / 1.225 GB, free: 109.9 MB / 0.823 GB Notification: Performance of sorting global known variables: time 0.0001096/0.2188, allocations: 192.4 kB / 1.225 GB, free: 109.7 MB / 0.823 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2188, allocations: 0 / 1.225 GB, free: 109.7 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.0002901/0.2191, allocations: 23.89 kB / 1.225 GB, free: 109.7 MB / 0.823 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.0001683/0.2193, allocations: 116.3 kB / 1.225 GB, free: 109.6 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.0002438/0.2196, allocations: 63.94 kB / 1.225 GB, free: 109.5 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.2196, allocations: 0 / 1.225 GB, free: 109.5 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 9.904e-05/0.2197, allocations: 27.97 kB / 1.225 GB, free: 109.5 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002589/0.2199, allocations: 44.19 kB / 1.225 GB, free: 109.4 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004469/0.2204, allocations: 428.9 kB / 1.226 GB, free: 109 MB / 0.823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001287/0.2205, allocations: 0.7278 MB / 1.226 GB, free: 108.2 MB / 0.823 GB Notification: Performance of simCode: alias equations: time 6.097e-05/0.2206, allocations: 20.66 kB / 1.226 GB, free: 108.2 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.05e-05/0.2206, allocations: 15.44 kB / 1.226 GB, free: 108.2 MB / 0.823 GB Notification: Performance of SimCode: time 2.11e-07/0.2206, allocations: 0 / 1.226 GB, free: 108.2 MB / 0.823 GB Notification: Performance of Templates: time 0.003555/0.2242, allocations: 1.644 MB / 1.228 GB, free: 106.6 MB / 0.823 GB make -j1 -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile (rm -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & ./Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)