Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter") translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.534/1.534, allocations: 292.3 MB / 308.1 MB, free: 4.258 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0014/0.0014, allocations: 191.7 kB / 376.9 MB, free: 1.766 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.41/1.41, allocations: 205 MB / 0.6354 GB, free: 9.777 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009634/0.0009636, allocations: 95.7 kB / 0.748 GB, free: 61.19 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.001108/0.001109, allocations: 59.91 kB / 0.8704 GB, free: 13.08 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2159/0.217, allocations: 114.5 MB / 0.9822 GB, free: 10.38 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.00308/0.2201, allocations: 1.701 MB / 0.9839 GB, free: 8.656 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.0008891/0.221, allocations: 0.5854 MB / 0.9844 GB, free: 8.062 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.583e-05/0.2212, allocations: 0 / 0.9844 GB, free: 8.062 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 0.0001927/0.2214, allocations: 27.86 kB / 0.9845 GB, free: 8.035 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 0.0002301/0.2216, allocations: 51.75 kB / 0.9845 GB, free: 7.984 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001599/0.2218, allocations: 59.92 kB / 0.9846 GB, free: 7.926 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 0.0001921/0.222, allocations: 131.5 kB / 0.9847 GB, free: 7.797 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000148/0.2221, allocations: 45.47 kB / 0.9847 GB, free: 7.75 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001181/0.2223, allocations: 43.84 kB / 0.9848 GB, free: 7.707 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001154/0.2224, allocations: 63.69 kB / 0.9848 GB, free: 7.645 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 2.834e-05/0.2224, allocations: 4 kB / 0.9849 GB, free: 7.641 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 7.115e-05/0.2225, allocations: 23.92 kB / 0.9849 GB, free: 7.617 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 8.247e-05/0.2226, allocations: 43.83 kB / 0.9849 GB, free: 7.574 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 6.207e-05/0.2227, allocations: 55.61 kB / 0.985 GB, free: 7.52 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0001826/0.2229, allocations: 135.7 kB / 0.9851 GB, free: 7.387 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.2229, allocations: 0 / 0.9851 GB, free: 7.387 MB / 0.7136 GB Notification: Performance of FrontEnd: time 8.02e-07/0.2229, allocations: 4 kB / 0.9851 GB, free: 7.383 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 4.92e-06/0.2229, allocations: 0 / 0.9851 GB, free: 7.383 MB / 0.7136 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.0008249/0.2237, allocations: 474.6 kB / 0.9856 GB, free: 6.871 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.373e-05/0.2238, allocations: 12.03 kB / 0.9856 GB, free: 6.859 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.637e-05/0.2238, allocations: 20.66 kB / 0.9856 GB, free: 6.84 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000303/0.2242, allocations: 225 kB / 0.9858 GB, free: 6.582 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.572e-05/0.2242, allocations: 8.375 kB / 0.9858 GB, free: 6.574 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.498e-05/0.2242, allocations: 8.312 kB / 0.9858 GB, free: 6.566 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003212/0.2245, allocations: 109.9 kB / 0.9859 GB, free: 6.453 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.313e-05/0.2246, allocations: 7.938 kB / 0.9859 GB, free: 6.445 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.063e-05/0.2246, allocations: 7.984 kB / 0.9859 GB, free: 6.438 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.2246, allocations: 0 / 0.9859 GB, free: 6.438 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002368/0.2248, allocations: 63.94 kB / 0.986 GB, free: 6.375 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007911/0.2256, allocations: 384.4 kB / 0.9864 GB, free: 5.949 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001445/0.2258, allocations: 38.55 kB / 0.9864 GB, free: 5.902 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001098/0.2259, allocations: 24.91 kB / 0.9864 GB, free: 5.875 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.432e-05/0.2259, allocations: 4 kB / 0.9864 GB, free: 5.871 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003588/0.2263, allocations: 97.08 kB / 0.9865 GB, free: 5.758 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=3): time 2.805e-06/0.2263, allocations: 3.938 kB / 0.9865 GB, free: 5.754 MB / 0.7136 GB Notification: Performance of matching and sorting (n=3): time 0.0004231/0.2267, allocations: 129.3 kB / 0.9867 GB, free: 5.621 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.942e-05/0.2268, allocations: 77.11 kB / 0.9867 GB, free: 5.527 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002342/0.227, allocations: 260.9 kB / 0.987 GB, free: 5.262 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.783e-05/0.2271, allocations: 25.7 kB / 0.987 GB, free: 5.23 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 7.599e-05/0.2271, allocations: 128.1 kB / 0.9871 GB, free: 5.102 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 1.483e-05/0.2272, allocations: 3.906 kB / 0.9871 GB, free: 5.098 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.798e-05/0.2272, allocations: 21.7 kB / 0.9871 GB, free: 5.07 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001052/0.2273, allocations: 326.8 kB / 0.9875 GB, free: 4.742 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001025/0.2274, allocations: 23.97 kB / 0.9875 GB, free: 4.719 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001131/0.2276, allocations: 47.41 kB / 0.9875 GB, free: 4.66 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002045/0.2278, allocations: 70.5 kB / 0.9876 GB, free: 4.582 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.2278, allocations: 4 kB / 0.9876 GB, free: 4.578 MB / 0.7136 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002822/0.2281, allocations: 101.4 kB / 0.9877 GB, free: 4.473 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.821e-05/0.2281, allocations: 4 kB / 0.9877 GB, free: 4.469 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.2281, allocations: 0 / 0.9877 GB, free: 4.469 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.862e-05/0.2281, allocations: 12.03 kB / 0.9877 GB, free: 4.457 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001267/0.2283, allocations: 11.98 kB / 0.9877 GB, free: 4.445 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.626e-06/0.2283, allocations: 7.938 kB / 0.9877 GB, free: 4.438 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.295e-05/0.2284, allocations: 15.89 kB / 0.9877 GB, free: 4.422 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.957e-06/0.2284, allocations: 0 / 0.9877 GB, free: 4.422 MB / 0.7136 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.0001305/0.2285, allocations: 134.5 kB / 0.9879 GB, free: 4.281 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.255e-05/0.2286, allocations: 15.81 kB / 0.9879 GB, free: 4.266 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.278e-05/0.2286, allocations: 17.23 kB / 0.9879 GB, free: 4.25 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.698e-06/0.2286, allocations: 7.938 kB / 0.9879 GB, free: 4.242 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.2286, allocations: 0 / 0.9879 GB, free: 4.242 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.2287, allocations: 0 / 0.9879 GB, free: 4.242 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002044/0.2289, allocations: 217.5 kB / 0.9881 GB, free: 3.98 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.2289, allocations: 0 / 0.9881 GB, free: 3.98 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.865e-05/0.229, allocations: 15.98 kB / 0.9881 GB, free: 3.965 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.041e-06/0.229, allocations: 4.266 kB / 0.9881 GB, free: 3.961 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.848e-06/0.229, allocations: 3.938 kB / 0.9881 GB, free: 3.957 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.985e-06/0.229, allocations: 3.938 kB / 0.9881 GB, free: 3.953 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.229, allocations: 0 / 0.9881 GB, free: 3.953 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006526/0.2297, allocations: 0.7289 MB / 0.9889 GB, free: 3.164 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 5.244e-05/0.2297, allocations: 89 kB / 0.9889 GB, free: 3.059 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.106e-05/0.2298, allocations: 7.938 kB / 0.9889 GB, free: 3.051 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.862e-05/0.2298, allocations: 11.98 kB / 0.989 GB, free: 3.039 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.193e-05/0.2299, allocations: 4 kB / 0.989 GB, free: 3.035 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.187e-05/0.2299, allocations: 7.984 kB / 0.989 GB, free: 3.027 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.0001568/0.2301, allocations: 188.5 kB / 0.9891 GB, free: 2.844 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.11e-07/0.2301, allocations: 0 / 0.9891 GB, free: 2.844 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002978/0.2304, allocations: 23.89 kB / 0.9892 GB, free: 2.82 MB / 0.7136 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.0002256/0.2306, allocations: 140 kB / 0.9893 GB, free: 2.68 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0002656/0.2309, allocations: 47.94 kB / 0.9894 GB, free: 2.633 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 5.299e-06/0.2309, allocations: 4 kB / 0.9894 GB, free: 2.629 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0001134/0.231, allocations: 32.16 kB / 0.9894 GB, free: 2.598 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002675/0.2313, allocations: 40.28 kB / 0.9894 GB, free: 2.559 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005648/0.2319, allocations: 436.8 kB / 0.9898 GB, free: 2.098 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002546/0.2321, allocations: 0.7197 MB / 0.9905 GB, free: 1.352 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 6.789e-05/0.2322, allocations: 16.53 kB / 0.9906 GB, free: 1.336 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.624e-05/0.2323, allocations: 19.44 kB / 0.9906 GB, free: 1.316 MB / 0.7136 GB Notification: Performance of SimCode: time 2.11e-07/0.2323, allocations: 3.938 kB / 0.9906 GB, free: 1.312 MB / 0.7136 GB Notification: Performance of Templates: time 0.004186/0.2365, allocations: 1.651 MB / 0.9922 GB, free: 15.68 MB / 0.7292 GB make -j1 -f Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile (rm -f Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & ./Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)