Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter") translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 1.733/1.733, allocations: 287.5 MB / 302.6 MB, free: 8.184 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.0009569/0.000957, allocations: 180.8 kB / 371.2 MB, free: 10.8 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.638/1.638, allocations: 205.4 MB / 0.6298 GB, free: 10.56 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008198/0.0008199, allocations: 92.83 kB / 0.7432 GB, free: 6.551 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004388/0.0004389, allocations: 11.56 kB / 0.8661 GB, free: 140.8 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2512/0.2517, allocations: 115.3 MB / 0.9787 GB, free: 28.18 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.001921/0.2536, allocations: 1.327 MB / 0.98 GB, free: 26.84 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0007726/0.2544, allocations: 0.5593 MB / 0.9805 GB, free: 26.27 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.325e-05/0.2545, allocations: 0 / 0.9805 GB, free: 26.27 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001688/0.2547, allocations: 19.86 kB / 0.9805 GB, free: 26.25 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0002138/0.2549, allocations: 65.73 kB / 0.9806 GB, free: 26.19 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001212/0.2551, allocations: 51.94 kB / 0.9806 GB, free: 26.14 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001462/0.2552, allocations: 111.6 kB / 0.9808 GB, free: 26.03 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000157/0.2554, allocations: 49.45 kB / 0.9808 GB, free: 25.97 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001033/0.2555, allocations: 47.78 kB / 0.9808 GB, free: 25.93 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 9.191e-05/0.2556, allocations: 43.77 kB / 0.9809 GB, free: 25.88 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.19e-05/0.2556, allocations: 4 kB / 0.9809 GB, free: 25.88 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 4.955e-05/0.2557, allocations: 15.98 kB / 0.9809 GB, free: 25.86 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 7.815e-05/0.2558, allocations: 35.84 kB / 0.9809 GB, free: 25.83 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.332e-05/0.2558, allocations: 45.64 kB / 0.981 GB, free: 25.78 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.000141/0.256, allocations: 96.03 kB / 0.9811 GB, free: 25.68 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.256, allocations: 0 / 0.9811 GB, free: 25.68 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.363e-06/0.256, allocations: 4 kB / 0.9811 GB, free: 25.68 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 1.054e-05/0.256, allocations: 0 / 0.9811 GB, free: 25.68 MB / 0.6198 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.0005161/0.2565, allocations: 458.8 kB / 0.9815 GB, free: 25.18 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.56e-05/0.2566, allocations: 8.031 kB / 0.9815 GB, free: 25.18 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.573e-05/0.2566, allocations: 20.66 kB / 0.9815 GB, free: 25.16 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002059/0.2568, allocations: 225 kB / 0.9818 GB, free: 24.89 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.62e-05/0.2568, allocations: 16.31 kB / 0.9818 GB, free: 24.88 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.548e-05/0.2569, allocations: 8.375 kB / 0.9818 GB, free: 24.87 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002737/0.2571, allocations: 113.9 kB / 0.9819 GB, free: 24.75 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.937e-06/0.2572, allocations: 0 / 0.9819 GB, free: 24.75 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.769e-05/0.2572, allocations: 8 kB / 0.9819 GB, free: 24.75 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.989e-06/0.2572, allocations: 0 / 0.9819 GB, free: 24.75 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002067/0.2574, allocations: 75.94 kB / 0.982 GB, free: 24.67 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000517/0.2579, allocations: 396.4 kB / 0.9823 GB, free: 24.23 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001362/0.2581, allocations: 42.55 kB / 0.9824 GB, free: 24.18 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001055/0.2582, allocations: 40.89 kB / 0.9824 GB, free: 24.14 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.237e-05/0.2582, allocations: 3.938 kB / 0.9824 GB, free: 24.14 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002439/0.2585, allocations: 113 kB / 0.9825 GB, free: 24.01 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=3): time 1.042e-06/0.2585, allocations: 0 / 0.9825 GB, free: 24.01 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3): time 0.0004175/0.2589, allocations: 149.3 kB / 0.9827 GB, free: 23.86 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.907e-05/0.259, allocations: 77.11 kB / 0.9828 GB, free: 23.76 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002011/0.2592, allocations: 256.9 kB / 0.983 GB, free: 23.5 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.431e-05/0.2592, allocations: 29.7 kB / 0.983 GB, free: 23.47 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 6.297e-05/0.2593, allocations: 124.1 kB / 0.9831 GB, free: 23.34 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.644e-05/0.2593, allocations: 11.81 kB / 0.9832 GB, free: 23.33 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.657e-06/0.2593, allocations: 3.938 kB / 0.9832 GB, free: 23.33 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.6e-05/0.2594, allocations: 334.8 kB / 0.9835 GB, free: 22.99 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001034/0.2595, allocations: 31.97 kB / 0.9835 GB, free: 22.96 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001031/0.2596, allocations: 55.41 kB / 0.9836 GB, free: 22.89 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00019/0.2598, allocations: 82.56 kB / 0.9836 GB, free: 22.8 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.2598, allocations: 0 / 0.9836 GB, free: 22.8 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002371/0.26, allocations: 121.3 kB / 0.9838 GB, free: 22.68 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.417e-05/0.2601, allocations: 8 kB / 0.9838 GB, free: 22.67 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.59e-06/0.2601, allocations: 0 / 0.9838 GB, free: 22.67 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.595e-05/0.2601, allocations: 3.938 kB / 0.9838 GB, free: 22.67 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001099/0.2602, allocations: 15.98 kB / 0.9838 GB, free: 22.65 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.441e-06/0.2602, allocations: 4.094 kB / 0.9838 GB, free: 22.65 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.971e-05/0.2603, allocations: 15.98 kB / 0.9838 GB, free: 22.63 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.905e-06/0.2603, allocations: 0 / 0.9838 GB, free: 22.63 MB / 0.6198 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.019e-05/0.2604, allocations: 133.8 kB / 0.9839 GB, free: 22.49 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.159e-05/0.2605, allocations: 15.81 kB / 0.9839 GB, free: 22.48 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.271e-05/0.2605, allocations: 21.23 kB / 0.984 GB, free: 22.46 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.295e-06/0.2605, allocations: 3.938 kB / 0.984 GB, free: 22.46 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.2605, allocations: 4 kB / 0.984 GB, free: 22.45 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.926e-06/0.2605, allocations: 0 / 0.984 GB, free: 22.45 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001382/0.2607, allocations: 217.5 kB / 0.9842 GB, free: 22.19 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.2607, allocations: 4 kB / 0.9842 GB, free: 22.19 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.274e-05/0.2608, allocations: 11.98 kB / 0.9842 GB, free: 22.18 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.442e-06/0.2608, allocations: 0 / 0.9842 GB, free: 22.18 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.086e-05/0.2608, allocations: 7.984 kB / 0.9842 GB, free: 22.17 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.2608, allocations: 3.938 kB / 0.9842 GB, free: 22.16 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.2608, allocations: 0 / 0.9842 GB, free: 22.16 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000309/0.2611, allocations: 144.7 kB / 0.9843 GB, free: 22 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 4.357e-05/0.2612, allocations: 100.9 kB / 0.9844 GB, free: 21.89 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.027e-05/0.2612, allocations: 0 / 0.9844 GB, free: 21.89 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.841e-05/0.2613, allocations: 19.92 kB / 0.9845 GB, free: 21.87 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.45e-05/0.2613, allocations: 4 kB / 0.9845 GB, free: 21.86 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.096e-05/0.2614, allocations: 7.984 kB / 0.9845 GB, free: 21.86 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001205/0.2615, allocations: 188.4 kB / 0.9847 GB, free: 21.67 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2615, allocations: 0 / 0.9847 GB, free: 21.67 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0001862/0.2617, allocations: 20 kB / 0.9847 GB, free: 21.65 MB / 0.6198 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002087/0.2619, allocations: 128.7 kB / 0.9848 GB, free: 21.52 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0002632/0.2622, allocations: 76.2 kB / 0.9849 GB, free: 21.45 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.2622, allocations: 0 / 0.9849 GB, free: 21.45 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001046/0.2623, allocations: 32.16 kB / 0.9849 GB, free: 21.41 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002649/0.2626, allocations: 41.8 kB / 0.9849 GB, free: 21.38 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004379/0.263, allocations: 318.1 kB / 0.9852 GB, free: 21.04 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000151/0.2632, allocations: 0.7198 MB / 0.9859 GB, free: 20.3 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 5.71e-05/0.2632, allocations: 16.53 kB / 0.986 GB, free: 20.28 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.109e-05/0.2633, allocations: 15.44 kB / 0.986 GB, free: 20.27 MB / 0.6198 GB Notification: Performance of SimCode: time 2.2e-07/0.2633, allocations: 4 kB / 0.986 GB, free: 20.26 MB / 0.6198 GB Notification: Performance of Templates: time 0.003827/0.2671, allocations: 1.563 MB / 0.9875 GB, free: 18.71 MB / 0.6198 GB make -j1 -f Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile (rm -f Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & ./Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)