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.001195/0.0012, allocations: 108 kB / 16.41 MB, free: 6.453 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.001196/0.001196, allocations: 189.5 kB / 17.34 MB, free: 5.719 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.278/1.278, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00216/0.00216, allocations: 289.7 kB / 291.5 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9087/0.9087, allocations: 169.3 MB / 0.499 GB, free: 4.422 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001656/0.001656, allocations: 99.83 kB / 0.6821 GB, free: 6.973 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4306/0.4323, allocations: 86.97 MB / 0.767 GB, free: 3.926 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter): time 0.002509/0.4348, allocations: 1.64 MB / 0.7686 GB, free: 2.273 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0007579/0.4356, allocations: 0.5356 MB / 0.7692 GB, free: 1.734 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.827e-05/0.4357, allocations: 7.938 kB / 0.7692 GB, free: 1.727 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001565/0.4359, allocations: 31.78 kB / 0.7692 GB, free: 1.695 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0002226/0.4361, allocations: 67.67 kB / 0.7693 GB, free: 1.629 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001371/0.4362, allocations: 63.86 kB / 0.7693 GB, free: 1.566 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0001665/0.4364, allocations: 127.6 kB / 0.7694 GB, free: 1.441 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001375/0.4366, allocations: 57.11 kB / 0.7695 GB, free: 1.387 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 9.847e-05/0.4367, allocations: 55.72 kB / 0.7695 GB, free: 1.332 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001074/0.4368, allocations: 63.69 kB / 0.7696 GB, free: 1.27 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.676e-05/0.4368, allocations: 8 kB / 0.7696 GB, free: 1.262 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 5.337e-05/0.4369, allocations: 20 kB / 0.7696 GB, free: 1.242 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 8.152e-05/0.437, allocations: 43.83 kB / 0.7697 GB, free: 1.199 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 5.887e-05/0.437, allocations: 59.55 kB / 0.7697 GB, free: 1.141 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001699/0.4372, allocations: 139.5 kB / 0.7699 GB, free: 1.004 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.4372, allocations: 0 / 0.7699 GB, free: 1.004 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.193e-06/0.4372, allocations: 0 / 0.7699 GB, free: 1.004 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.528e-06/0.4372, allocations: 4 kB / 0.7699 GB, free: 1 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.0005393/0.4378, allocations: 473.1 kB / 0.7703 GB, free: 0.4922 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.166e-05/0.4378, allocations: 16.02 kB / 0.7703 GB, free: 488 kB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.595e-05/0.4379, allocations: 16.75 kB / 0.7703 GB, free: 472 kB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002523/0.4381, allocations: 236.8 kB / 0.7706 GB, free: 192 kB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.006e-05/0.4381, allocations: 8.375 kB / 0.7706 GB, free: 184 kB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.08e-05/0.4382, allocations: 4.375 kB / 0.7706 GB, free: 180 kB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002532/0.4384, allocations: 116.8 kB / 0.7707 GB, free: 60 kB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.743e-06/0.4384, allocations: 0 / 0.7707 GB, free: 60 kB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.617e-05/0.4384, allocations: 11.98 kB / 0.7707 GB, free: 48 kB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-06/0.4385, allocations: 0 / 0.7707 GB, free: 48 kB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002189/0.4387, allocations: 63.88 kB / 0.7708 GB, free: 15.98 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004989/0.4392, allocations: 384.4 kB / 0.7711 GB, free: 15.56 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001204/0.4393, allocations: 38.55 kB / 0.7712 GB, free: 15.51 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.826e-05/0.4394, allocations: 28.91 kB / 0.7712 GB, free: 15.48 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.071e-05/0.4394, allocations: 7.938 kB / 0.7712 GB, free: 15.47 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001952/0.4396, allocations: 97.08 kB / 0.7713 GB, free: 15.36 MB / 0.545 GB Notification: Performance of pre-optimization done (n=3): time 1.142e-06/0.4397, allocations: 3.938 kB / 0.7713 GB, free: 15.36 MB / 0.545 GB Notification: Performance of matching and sorting (n=3): time 0.0003872/0.44, allocations: 129.3 kB / 0.7714 GB, free: 15.22 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.191e-05/0.4401, allocations: 77.11 kB / 0.7715 GB, free: 15.13 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000213/0.4403, allocations: 253 kB / 0.7717 GB, free: 14.88 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.499e-05/0.4403, allocations: 29.7 kB / 0.7718 GB, free: 14.84 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 6.443e-05/0.4404, allocations: 124 kB / 0.7719 GB, free: 14.71 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.486e-05/0.4404, allocations: 7.844 kB / 0.7719 GB, free: 14.71 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.316e-05/0.4405, allocations: 21.7 kB / 0.7719 GB, free: 14.68 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 9.328e-05/0.4406, allocations: 326.8 kB / 0.7722 GB, free: 14.35 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001012/0.4407, allocations: 31.97 kB / 0.7723 GB, free: 14.32 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001087/0.4408, allocations: 47.41 kB / 0.7723 GB, free: 14.26 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001933/0.441, allocations: 70.5 kB / 0.7724 GB, free: 14.18 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.441, allocations: 0 / 0.7724 GB, free: 14.18 MB / 0.545 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002514/0.4413, allocations: 101.4 kB / 0.7725 GB, free: 14.08 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.243e-05/0.4413, allocations: 8 kB / 0.7725 GB, free: 14.07 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.087e-06/0.4413, allocations: 0 / 0.7725 GB, free: 14.07 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.059e-05/0.4413, allocations: 8.031 kB / 0.7725 GB, free: 14.06 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.76e-05/0.4414, allocations: 11.98 kB / 0.7725 GB, free: 14.05 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.699e-06/0.4414, allocations: 0 / 0.7725 GB, free: 14.05 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.194e-05/0.4415, allocations: 15.89 kB / 0.7725 GB, free: 14.04 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.305e-05/0.4415, allocations: 4 kB / 0.7725 GB, free: 14.03 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 8.319e-05/0.4416, allocations: 129.8 kB / 0.7726 GB, free: 13.89 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.671e-05/0.4416, allocations: 15.81 kB / 0.7727 GB, free: 13.88 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.12e-05/0.4417, allocations: 21.23 kB / 0.7727 GB, free: 13.86 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.4417, allocations: 7.938 kB / 0.7727 GB, free: 13.85 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.615e-06/0.4417, allocations: 0 / 0.7727 GB, free: 13.85 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.914e-06/0.4417, allocations: 0 / 0.7727 GB, free: 13.85 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001404/0.4418, allocations: 217.6 kB / 0.7729 GB, free: 13.59 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.4418, allocations: 0 / 0.7729 GB, free: 13.59 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.292e-05/0.4419, allocations: 11.98 kB / 0.7729 GB, free: 13.57 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.4419, allocations: 0 / 0.7729 GB, free: 13.57 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.606e-06/0.4419, allocations: 4 kB / 0.7729 GB, free: 13.57 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.388e-06/0.442, allocations: 7.922 kB / 0.7729 GB, free: 13.56 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.442, allocations: 0 / 0.7729 GB, free: 13.56 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002638/0.4422, allocations: 129.1 kB / 0.773 GB, free: 13.42 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.313e-05/0.4423, allocations: 92.86 kB / 0.7731 GB, free: 13.31 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.098e-05/0.4423, allocations: 4 kB / 0.7731 GB, free: 13.3 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.912e-05/0.4424, allocations: 15.92 kB / 0.7731 GB, free: 13.29 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.473e-05/0.4424, allocations: 7.984 kB / 0.7732 GB, free: 13.28 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.869e-05/0.4425, allocations: 8 kB / 0.7732 GB, free: 13.27 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001484/0.4426, allocations: 192.4 kB / 0.7733 GB, free: 13.09 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4426, allocations: 0 / 0.7733 GB, free: 13.09 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002045/0.4428, allocations: 23.91 kB / 0.7734 GB, free: 13.07 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.0001763/0.443, allocations: 127.6 kB / 0.7735 GB, free: 12.94 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002516/0.4433, allocations: 55.94 kB / 0.7735 GB, free: 12.88 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.4433, allocations: 3.938 kB / 0.7735 GB, free: 12.88 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001031/0.4434, allocations: 19.98 kB / 0.7736 GB, free: 12.86 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002592/0.4437, allocations: 55.31 kB / 0.7736 GB, free: 12.8 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004355/0.4441, allocations: 298 kB / 0.7739 GB, free: 12.48 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000231/0.4444, allocations: 0.7203 MB / 0.7746 GB, free: 11.73 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.652e-05/0.4444, allocations: 15.44 kB / 0.7746 GB, free: 11.72 MB / 0.545 GB Notification: Performance of SimCode: time 2.2e-07/0.4444, allocations: 0 / 0.7746 GB, free: 11.72 MB / 0.545 GB Notification: Performance of Templates: time 0.00326/0.4477, allocations: 2.117 MB / 0.7767 GB, free: 9.625 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.makefile make -j1 -f BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.makefile clang++ -std=c++17 -fopenmp=libomp -Winvalid-pch -O2 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Resources/C-Sources" -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/sundials" "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppBuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.o OMCppBuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.cpp In file included from OMCppBuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.cpp:28: ./OMCppBuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriterFunctions.cpp:115:21: error: no matching function for call to 'jsonWriterInit' jsonWriter__ext = jsonWriterInit(instanceName_.c_str(), fileName_.c_str(), dumpAtDestruction__ext, varKeys_.getDim(1), varKeys__ext); ^~~~~~~~~~~~~~ /home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Resources/C-Sources/jsonWriterInit.c:13:7: note: candidate function not viable: no known conversion from 'CStrArray' to 'char **' for 5th argument void* jsonWriterInit( ^ 1 error generated. make: *** [: OMCppBuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.o] Error 1