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/ModelicaServices 4.0.0+maint.om/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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007355/0.007355, allocations: 99.75 kB / 15.73 MB, free: 6.039 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001985/0.001985, allocations: 191.9 kB / 16.67 MB, free: 5.949 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.302/1.302, allocations: 222.9 MB / 240.4 MB, free: 15.11 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002084/0.002084, allocations: 292.3 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9334/0.9334, allocations: 169.2 MB / 0.4983 GB, free: 4.426 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001648/0.001649, allocations: 91.86 kB / 0.6814 GB, free: 6.977 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4257/0.4274, allocations: 86.97 MB / 0.7664 GB, free: 3.91 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter): time 0.002632/0.4301, allocations: 1.643 MB / 0.768 GB, free: 2.254 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0008703/0.431, allocations: 0.5356 MB / 0.7685 GB, free: 1.715 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.83e-05/0.4311, allocations: 0 / 0.7685 GB, free: 1.715 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0002213/0.4313, allocations: 35.77 kB / 0.7685 GB, free: 1.68 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0003086/0.4316, allocations: 67.67 kB / 0.7686 GB, free: 1.613 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002126/0.4318, allocations: 63.86 kB / 0.7686 GB, free: 1.551 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0002868/0.4321, allocations: 123.6 kB / 0.7688 GB, free: 1.43 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002821/0.4324, allocations: 49.47 kB / 0.7688 GB, free: 1.379 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001674/0.4326, allocations: 63.64 kB / 0.7689 GB, free: 1.316 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001759/0.4328, allocations: 67.69 kB / 0.7689 GB, free: 1.25 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 4.059e-05/0.4328, allocations: 8 kB / 0.7689 GB, free: 1.242 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 9.437e-05/0.4329, allocations: 16 kB / 0.769 GB, free: 1.227 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0001335/0.4331, allocations: 51.77 kB / 0.769 GB, free: 1.176 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0001071/0.4332, allocations: 55.61 kB / 0.7691 GB, free: 1.121 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0003506/0.4336, allocations: 145 kB / 0.7692 GB, free: 0.9883 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 6.762e-06/0.4336, allocations: 0 / 0.7692 GB, free: 0.9883 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.175e-06/0.4336, allocations: 0 / 0.7692 GB, free: 0.9883 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 2.056e-05/0.4336, allocations: 8 kB / 0.7692 GB, free: 0.9805 MB / 0.5294 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.0009193/0.4345, allocations: 474.4 kB / 0.7697 GB, free: 480 kB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 5.928e-05/0.4346, allocations: 12.03 kB / 0.7697 GB, free: 468 kB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.475e-05/0.4347, allocations: 16.84 kB / 0.7697 GB, free: 452 kB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004963/0.4352, allocations: 241 kB / 0.7699 GB, free: 168 kB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.551e-05/0.4352, allocations: 8.375 kB / 0.7699 GB, free: 160 kB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.111e-05/0.4352, allocations: 4.375 kB / 0.7699 GB, free: 156 kB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003402/0.4356, allocations: 120.4 kB / 0.77 GB, free: 32 kB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.216e-05/0.4356, allocations: 0 / 0.77 GB, free: 32 kB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.907e-05/0.4356, allocations: 7.984 kB / 0.7701 GB, free: 24 kB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.778e-06/0.4356, allocations: 0 / 0.7701 GB, free: 24 kB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002406/0.4359, allocations: 63.94 kB / 0.7701 GB, free: 15.96 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006539/0.4366, allocations: 380.6 kB / 0.7705 GB, free: 15.54 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001402/0.4367, allocations: 38.55 kB / 0.7705 GB, free: 15.49 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001071/0.4368, allocations: 28.91 kB / 0.7705 GB, free: 15.46 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.939e-05/0.4368, allocations: 11.92 kB / 0.7706 GB, free: 15.45 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00023/0.4371, allocations: 97.03 kB / 0.7706 GB, free: 15.34 MB / 0.545 GB Notification: Performance of pre-optimization done (n=3): time 1.132e-06/0.4371, allocations: 0 / 0.7706 GB, free: 15.34 MB / 0.545 GB Notification: Performance of matching and sorting (n=3): time 0.0004285/0.4375, allocations: 133.4 kB / 0.7708 GB, free: 15.2 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.898e-05/0.4376, allocations: 77.11 kB / 0.7708 GB, free: 15.11 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002496/0.4378, allocations: 256.9 kB / 0.7711 GB, free: 14.85 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.602e-05/0.4379, allocations: 25.7 kB / 0.7711 GB, free: 14.82 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 8.256e-05/0.438, allocations: 124.1 kB / 0.7712 GB, free: 14.69 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.106e-05/0.438, allocations: 11.95 kB / 0.7712 GB, free: 14.68 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.503e-05/0.438, allocations: 13.7 kB / 0.7713 GB, free: 14.66 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001246/0.4381, allocations: 334.8 kB / 0.7716 GB, free: 14.32 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001062/0.4383, allocations: 27.97 kB / 0.7716 GB, free: 14.3 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001405/0.4384, allocations: 51.34 kB / 0.7717 GB, free: 14.23 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002023/0.4386, allocations: 66.56 kB / 0.7717 GB, free: 14.16 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.4386, allocations: 0 / 0.7717 GB, free: 14.16 MB / 0.545 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002542/0.4389, allocations: 97.48 kB / 0.7718 GB, free: 14.06 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.588e-05/0.4389, allocations: 8 kB / 0.7718 GB, free: 14.05 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.4389, allocations: 0 / 0.7718 GB, free: 14.05 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.518e-05/0.4389, allocations: 11.97 kB / 0.7718 GB, free: 14.04 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001187/0.4391, allocations: 15.98 kB / 0.7718 GB, free: 14.02 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.622e-06/0.4391, allocations: 3.938 kB / 0.7718 GB, free: 14.02 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.563e-05/0.4392, allocations: 19.88 kB / 0.7719 GB, free: 14 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.188e-05/0.4392, allocations: 4 kB / 0.7719 GB, free: 14 MB / 0.545 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.0001117/0.4393, allocations: 124.2 kB / 0.772 GB, free: 13.87 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.928e-05/0.4393, allocations: 19.91 kB / 0.772 GB, free: 13.85 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.053e-05/0.4394, allocations: 21.23 kB / 0.772 GB, free: 13.82 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.4394, allocations: 7.938 kB / 0.772 GB, free: 13.82 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.4394, allocations: 0 / 0.772 GB, free: 13.82 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-06/0.4394, allocations: 0 / 0.772 GB, free: 13.82 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002085/0.4396, allocations: 217.6 kB / 0.7722 GB, free: 13.55 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.4396, allocations: 0 / 0.7722 GB, free: 13.55 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.801e-05/0.4397, allocations: 11.98 kB / 0.7723 GB, free: 13.54 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.4397, allocations: 0 / 0.7723 GB, free: 13.54 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.027e-06/0.4397, allocations: 0 / 0.7723 GB, free: 13.54 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.139e-06/0.4398, allocations: 3.938 kB / 0.7723 GB, free: 13.54 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.4398, allocations: 3.938 kB / 0.7723 GB, free: 13.54 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002852/0.4401, allocations: 133.1 kB / 0.7724 GB, free: 13.39 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 6.286e-05/0.4401, allocations: 89.02 kB / 0.7725 GB, free: 13.28 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.716e-05/0.4402, allocations: 7.984 kB / 0.7725 GB, free: 13.27 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.689e-05/0.4403, allocations: 11.94 kB / 0.7725 GB, free: 13.26 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.037e-05/0.4403, allocations: 3.984 kB / 0.7725 GB, free: 13.26 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.186e-05/0.4403, allocations: 8 kB / 0.7725 GB, free: 13.25 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001692/0.4405, allocations: 192.5 kB / 0.7727 GB, free: 13.07 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4405, allocations: 0 / 0.7727 GB, free: 13.07 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002254/0.4408, allocations: 20 kB / 0.7727 GB, free: 13.05 MB / 0.545 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.0002386/0.441, allocations: 123.8 kB / 0.7728 GB, free: 12.92 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002854/0.4413, allocations: 59.88 kB / 0.7729 GB, free: 12.86 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.4413, allocations: 0 / 0.7729 GB, free: 12.86 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001083/0.4414, allocations: 23.98 kB / 0.7729 GB, free: 12.84 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002862/0.4417, allocations: 57 kB / 0.773 GB, free: 12.79 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004829/0.4422, allocations: 279.9 kB / 0.7732 GB, free: 12.48 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002936/0.4425, allocations: 0.7125 MB / 0.7739 GB, free: 11.75 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 6.517e-05/0.4426, allocations: 20.53 kB / 0.7739 GB, free: 11.73 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.554e-05/0.4426, allocations: 11.44 kB / 0.774 GB, free: 11.72 MB / 0.545 GB Notification: Performance of SimCode: time 3.41e-07/0.4426, allocations: 4 kB / 0.774 GB, free: 11.71 MB / 0.545 GB Notification: Performance of Templates: time 0.004699/0.4473, allocations: 1.777 MB / 0.7757 GB, free: 9.969 MB / 0.545 GB 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)