Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.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.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter") translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.781/1.781, allocations: 288.3 MB / 303.2 MB, free: 8.188 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.001464/0.001464, allocations: 181 kB / 371.8 MB, free: 10.27 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.671/1.671, allocations: 205.4 MB / 0.6306 GB, free: 9.91 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.001048/0.001048, allocations: 94.17 kB / 0.7439 GB, free: 5.844 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003866/0.0003866, allocations: 14.36 kB / 0.8668 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2639/0.2643, allocations: 115.3 MB / 0.9794 GB, free: 27.7 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.00249/0.2668, allocations: 1.321 MB / 0.9807 GB, free: 26.36 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001295/0.2681, allocations: 0.5505 MB / 0.9812 GB, free: 25.8 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001004/0.2683, allocations: 4 kB / 0.9812 GB, free: 25.8 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.000183/0.2685, allocations: 15.81 kB / 0.9813 GB, free: 25.78 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0002917/0.2688, allocations: 71.72 kB / 0.9813 GB, free: 25.71 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001702/0.269, allocations: 51.92 kB / 0.9814 GB, free: 25.66 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001847/0.2692, allocations: 83.77 kB / 0.9815 GB, free: 25.58 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000163/0.2693, allocations: 49.39 kB / 0.9815 GB, free: 25.52 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001319/0.2695, allocations: 39.84 kB / 0.9815 GB, free: 25.48 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 9.969e-05/0.2696, allocations: 47.7 kB / 0.9816 GB, free: 25.44 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.378e-05/0.2696, allocations: 4 kB / 0.9816 GB, free: 25.43 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 6.032e-05/0.2697, allocations: 8 kB / 0.9816 GB, free: 25.43 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 8.719e-05/0.2698, allocations: 39.89 kB / 0.9816 GB, free: 25.39 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.525e-05/0.2699, allocations: 41.64 kB / 0.9817 GB, free: 25.34 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001935/0.2701, allocations: 108 kB / 0.9818 GB, free: 25.23 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.2701, allocations: 0 / 0.9818 GB, free: 25.23 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.094e-06/0.2701, allocations: 0 / 0.9818 GB, free: 25.23 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 6.943e-06/0.2701, allocations: 0 / 0.9818 GB, free: 25.23 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.0007812/0.2709, allocations: 454.6 kB / 0.9822 GB, free: 24.74 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.977e-05/0.271, allocations: 12.02 kB / 0.9822 GB, free: 24.73 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.943e-05/0.2711, allocations: 19.72 kB / 0.9822 GB, free: 24.71 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000314/0.2714, allocations: 231.6 kB / 0.9825 GB, free: 24.44 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.529e-05/0.2714, allocations: 0 / 0.9825 GB, free: 24.44 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.552e-05/0.2715, allocations: 8 kB / 0.9825 GB, free: 24.43 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004213/0.2719, allocations: 113.6 kB / 0.9826 GB, free: 24.32 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.246e-05/0.2719, allocations: 4 kB / 0.9826 GB, free: 24.31 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.521e-05/0.272, allocations: 4 kB / 0.9826 GB, free: 24.31 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.833e-06/0.272, allocations: 0 / 0.9826 GB, free: 24.31 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003633/0.2724, allocations: 75.94 kB / 0.9827 GB, free: 24.23 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008147/0.2732, allocations: 396.4 kB / 0.983 GB, free: 23.8 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002303/0.2734, allocations: 50.55 kB / 0.9831 GB, free: 23.74 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.346e-05/0.2735, allocations: 3.938 kB / 0.9831 GB, free: 23.73 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003559/0.2738, allocations: 113 kB / 0.9832 GB, free: 23.61 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=3): time 2.385e-06/0.2739, allocations: 0 / 0.9832 GB, free: 23.61 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3): time 0.0007118/0.2746, allocations: 141.6 kB / 0.9833 GB, free: 23.46 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.007e-05/0.2747, allocations: 77.11 kB / 0.9834 GB, free: 23.37 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003189/0.275, allocations: 256.9 kB / 0.9837 GB, free: 23.11 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.012e-05/0.2751, allocations: 29.7 kB / 0.9837 GB, free: 23.07 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 8.419e-05/0.2752, allocations: 128 kB / 0.9838 GB, free: 22.95 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.3e-05/0.2752, allocations: 7.891 kB / 0.9838 GB, free: 22.94 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.6e-06/0.2752, allocations: 4 kB / 0.9838 GB, free: 22.93 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.047e-05/0.2753, allocations: 334.8 kB / 0.9841 GB, free: 22.6 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001944/0.2755, allocations: 31.97 kB / 0.9842 GB, free: 22.57 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000191/0.2757, allocations: 63.33 kB / 0.9842 GB, free: 22.49 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001723/0.2759, allocations: 31.98 kB / 0.9843 GB, free: 22.46 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.2759, allocations: 3.984 kB / 0.9843 GB, free: 22.46 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0004257/0.2764, allocations: 113.4 kB / 0.9844 GB, free: 22.34 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.818e-05/0.2764, allocations: 7.953 kB / 0.9844 GB, free: 22.33 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.2764, allocations: 12.08 kB / 0.9844 GB, free: 22.32 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.759e-05/0.2764, allocations: 0 / 0.9844 GB, free: 22.32 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001609/0.2766, allocations: 15.98 kB / 0.9844 GB, free: 22.3 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.586e-06/0.2766, allocations: 3.938 kB / 0.9844 GB, free: 22.3 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001427/0.2768, allocations: 15.98 kB / 0.9844 GB, free: 22.29 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.319e-05/0.2768, allocations: 4 kB / 0.9844 GB, free: 22.28 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 0.0001127/0.2769, allocations: 133.8 kB / 0.9846 GB, free: 22.14 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.732e-05/0.277, allocations: 19.72 kB / 0.9846 GB, free: 22.12 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.442e-05/0.277, allocations: 17.2 kB / 0.9846 GB, free: 22.11 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.539e-06/0.2771, allocations: 4 kB / 0.9846 GB, free: 22.11 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.2771, allocations: 0 / 0.9846 GB, free: 22.11 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.2771, allocations: 3.984 kB / 0.9846 GB, free: 22.1 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001733/0.2773, allocations: 209.6 kB / 0.9848 GB, free: 21.85 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.013e-06/0.2773, allocations: 0 / 0.9848 GB, free: 21.85 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001299/0.2774, allocations: 19.98 kB / 0.9848 GB, free: 21.83 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.837e-06/0.2774, allocations: 0 / 0.9848 GB, free: 21.83 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.07e-05/0.2775, allocations: 0 / 0.9848 GB, free: 21.83 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.627e-06/0.2775, allocations: 3.953 kB / 0.9848 GB, free: 21.82 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.2775, allocations: 4 kB / 0.9848 GB, free: 21.82 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004484/0.2779, allocations: 140.8 kB / 0.985 GB, free: 21.66 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 6.109e-05/0.278, allocations: 100.8 kB / 0.9851 GB, free: 21.55 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.388e-05/0.2781, allocations: 0 / 0.9851 GB, free: 21.55 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000149/0.2782, allocations: 15.98 kB / 0.9851 GB, free: 21.53 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.843e-05/0.2783, allocations: 11.94 kB / 0.9851 GB, free: 21.52 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.38e-05/0.2784, allocations: 8 kB / 0.9851 GB, free: 21.51 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0002112/0.2786, allocations: 188.5 kB / 0.9853 GB, free: 21.32 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.4e-07/0.2786, allocations: 0 / 0.9853 GB, free: 21.32 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0004256/0.279, allocations: 23.91 kB / 0.9853 GB, free: 21.3 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.0002894/0.2793, allocations: 119.7 kB / 0.9854 GB, free: 21.18 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0004358/0.2798, allocations: 67.89 kB / 0.9855 GB, free: 21.11 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.2798, allocations: 192 / 0.9855 GB, free: 21.11 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001935/0.28, allocations: 35.97 kB / 0.9855 GB, free: 21.08 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003836/0.2804, allocations: 34.67 kB / 0.9855 GB, free: 21.05 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006666/0.2811, allocations: 318.3 kB / 0.9858 GB, free: 20.71 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001869/0.2813, allocations: 0.7278 MB / 0.9866 GB, free: 19.96 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0001087/0.2814, allocations: 16.53 kB / 0.9866 GB, free: 19.95 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.036e-05/0.2815, allocations: 15.44 kB / 0.9866 GB, free: 19.93 MB / 0.6198 GB Notification: Performance of SimCode: time 3.61e-07/0.2815, allocations: 0 / 0.9866 GB, free: 19.93 MB / 0.6198 GB Notification: Performance of Templates: time 0.006206/0.2877, allocations: 1.556 MB / 0.9881 GB, free: 18.39 MB / 0.6198 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile (rm -f Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & ./Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)