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/BuildingSystems 2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter") translateModel(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7785/0.7785, allocations: 143.4 MB / 159.2 MB, free: 4.859 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001106/0.001106, allocations: 180.5 kB / 191.9 MB, free: 5.727 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.38/1.38, allocations: 222.9 MB / 447.3 MB, free: 5.832 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001142/0.001142, allocations: 107.2 kB / 0.517 GB, free: 3.703 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001866/0.001866, allocations: 284.1 kB / 0.5973 GB, free: 49.36 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001388/0.001388, allocations: 83.88 kB / 0.6885 GB, free: 3.824 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3342/0.3356, allocations: 81.3 MB / 0.7679 GB, free: 27.66 MB / 458.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter): time 0.002737/0.3384, allocations: 1.684 MB / 0.7696 GB, free: 25.96 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007063/0.3391, allocations: 0.5495 MB / 0.7701 GB, free: 25.41 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.412e-05/0.3392, allocations: 4 kB / 0.7701 GB, free: 25.4 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001999/0.3394, allocations: 15.86 kB / 0.7701 GB, free: 25.39 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002267/0.3396, allocations: 59.73 kB / 0.7702 GB, free: 25.33 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001356/0.3398, allocations: 55.94 kB / 0.7702 GB, free: 25.27 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001555/0.3399, allocations: 131.5 kB / 0.7704 GB, free: 25.14 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001545/0.3401, allocations: 48.14 kB / 0.7704 GB, free: 25.1 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001094/0.3402, allocations: 51.77 kB / 0.7705 GB, free: 25.05 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.569e-05/0.3403, allocations: 67.62 kB / 0.7705 GB, free: 24.98 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 2.633e-05/0.3404, allocations: 8 kB / 0.7705 GB, free: 24.97 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.313e-05/0.3404, allocations: 19.98 kB / 0.7706 GB, free: 24.95 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 7.773e-05/0.3405, allocations: 43.89 kB / 0.7706 GB, free: 24.91 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 5.614e-05/0.3406, allocations: 59.55 kB / 0.7706 GB, free: 24.85 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001501/0.3407, allocations: 131.5 kB / 0.7708 GB, free: 24.72 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.3407, allocations: 0 / 0.7708 GB, free: 24.72 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3407, allocations: 4 kB / 0.7708 GB, free: 24.72 MB / 458.7 MB Notification: Performance of Transformations before backend: time 4.228e-06/0.3408, allocations: 0 / 0.7708 GB, free: 24.72 MB / 458.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.0005469/0.3413, allocations: 462.6 kB / 0.7712 GB, free: 24.22 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.394e-05/0.3413, allocations: 12.03 kB / 0.7712 GB, free: 24.21 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.171e-05/0.3414, allocations: 16.75 kB / 0.7712 GB, free: 24.19 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002376/0.3416, allocations: 232.8 kB / 0.7715 GB, free: 23.93 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.294e-05/0.3417, allocations: 8.375 kB / 0.7715 GB, free: 23.92 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.381e-05/0.3417, allocations: 8.375 kB / 0.7715 GB, free: 23.91 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002532/0.3419, allocations: 117.8 kB / 0.7716 GB, free: 23.79 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.989e-06/0.342, allocations: 0 / 0.7716 GB, free: 23.79 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.516e-05/0.342, allocations: 4 kB / 0.7716 GB, free: 23.79 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.179e-06/0.342, allocations: 0 / 0.7716 GB, free: 23.79 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002096/0.3422, allocations: 63.94 kB / 0.7717 GB, free: 23.72 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005036/0.3427, allocations: 388.4 kB / 0.772 GB, free: 23.29 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001472/0.3429, allocations: 42.55 kB / 0.7721 GB, free: 23.24 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001331/0.343, allocations: 32.89 kB / 0.7721 GB, free: 23.21 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.979e-05/0.3431, allocations: 3.984 kB / 0.7721 GB, free: 23.2 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003308/0.3434, allocations: 101 kB / 0.7722 GB, free: 23.09 MB / 458.7 MB Notification: Performance of pre-optimization done (n=3): time 1.633e-06/0.3434, allocations: 0 / 0.7722 GB, free: 23.09 MB / 458.7 MB Notification: Performance of matching and sorting (n=3): time 0.0005833/0.344, allocations: 125.4 kB / 0.7723 GB, free: 22.96 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.391e-05/0.3441, allocations: 77.11 kB / 0.7724 GB, free: 22.86 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002857/0.3444, allocations: 253 kB / 0.7726 GB, free: 22.61 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 1.552e-05/0.3444, allocations: 29.7 kB / 0.7727 GB, free: 22.57 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.942e-05/0.3445, allocations: 128 kB / 0.7728 GB, free: 22.44 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.212e-05/0.3445, allocations: 7.844 kB / 0.7728 GB, free: 22.43 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.086e-05/0.3446, allocations: 25.7 kB / 0.7728 GB, free: 22.4 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 5.58e-05/0.3446, allocations: 322.8 kB / 0.7731 GB, free: 22.08 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001528/0.3448, allocations: 27.91 kB / 0.7732 GB, free: 22.05 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001578/0.345, allocations: 47.41 kB / 0.7732 GB, free: 21.99 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002905/0.3453, allocations: 70.56 kB / 0.7733 GB, free: 21.91 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.3453, allocations: 0 / 0.7733 GB, free: 21.91 MB / 458.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0004212/0.3457, allocations: 109.4 kB / 0.7734 GB, free: 21.8 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.793e-05/0.3458, allocations: 5.406 kB / 0.7734 GB, free: 21.8 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.3458, allocations: 0 / 0.7734 GB, free: 21.8 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.845e-05/0.3458, allocations: 7.938 kB / 0.7734 GB, free: 21.79 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001487/0.346, allocations: 15.92 kB / 0.7734 GB, free: 21.77 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.253e-06/0.346, allocations: 0 / 0.7734 GB, free: 21.77 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000118/0.3461, allocations: 15.89 kB / 0.7734 GB, free: 21.76 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.064e-05/0.3461, allocations: 0 / 0.7734 GB, free: 21.76 MB / 458.7 MB 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 8.86e-05/0.3462, allocations: 133.9 kB / 0.7735 GB, free: 21.62 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.472e-05/0.3463, allocations: 15.81 kB / 0.7736 GB, free: 21.6 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.404e-05/0.3463, allocations: 17.23 kB / 0.7736 GB, free: 21.59 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.3463, allocations: 7.875 kB / 0.7736 GB, free: 21.58 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.3463, allocations: 4 kB / 0.7736 GB, free: 21.57 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.3463, allocations: 0 / 0.7736 GB, free: 21.57 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000111/0.3464, allocations: 213.6 kB / 0.7738 GB, free: 21.32 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.3464, allocations: 0 / 0.7738 GB, free: 21.32 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.498e-05/0.3465, allocations: 11.98 kB / 0.7738 GB, free: 21.3 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.3465, allocations: 0 / 0.7738 GB, free: 21.3 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.462e-06/0.3465, allocations: 4 kB / 0.7738 GB, free: 21.3 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.3465, allocations: 3.938 kB / 0.7738 GB, free: 21.3 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.3466, allocations: 4 kB / 0.7738 GB, free: 21.29 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000488/0.347, allocations: 0.7251 MB / 0.7745 GB, free: 20.51 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.382e-05/0.3471, allocations: 92.92 kB / 0.7746 GB, free: 20.4 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.176e-05/0.3471, allocations: 4 kB / 0.7746 GB, free: 20.39 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.967e-05/0.3472, allocations: 7.984 kB / 0.7746 GB, free: 20.39 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.405e-05/0.3473, allocations: 11.92 kB / 0.7746 GB, free: 20.38 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.247e-05/0.3473, allocations: 4.328 kB / 0.7746 GB, free: 20.37 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0001218/0.3474, allocations: 192.5 kB / 0.7748 GB, free: 20.19 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3474, allocations: 0 / 0.7748 GB, free: 20.19 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0003055/0.3477, allocations: 19.91 kB / 0.7748 GB, free: 20.17 MB / 458.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.0001858/0.3479, allocations: 125.4 kB / 0.775 GB, free: 20.04 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0002541/0.3482, allocations: 55.94 kB / 0.775 GB, free: 19.99 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.3482, allocations: 4 kB / 0.775 GB, free: 19.98 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000107/0.3483, allocations: 31.91 kB / 0.775 GB, free: 19.95 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002743/0.3486, allocations: 45.34 kB / 0.7751 GB, free: 19.91 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00045/0.349, allocations: 429 kB / 0.7755 GB, free: 19.45 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000115/0.3492, allocations: 0.7278 MB / 0.7762 GB, free: 18.7 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 5.755e-05/0.3492, allocations: 12.55 kB / 0.7762 GB, free: 18.68 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.153e-05/0.3493, allocations: 15.44 kB / 0.7762 GB, free: 18.67 MB / 458.7 MB Notification: Performance of SimCode: time 2.21e-07/0.3493, allocations: 0 / 0.7762 GB, free: 18.67 MB / 458.7 MB Notification: Performance of Templates: time 0.003668/0.353, allocations: 1.651 MB / 0.7778 GB, free: 17.04 MB / 458.7 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.makefile (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=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)