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.001059/0.00106, allocations: 110.5 kB / 16.41 MB, free: 6.5 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.001002/0.001002, allocations: 185.6 kB / 17.34 MB, free: 5.762 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.27/1.27, 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.002022/0.002021, allocations: 276.2 kB / 291.5 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9023/0.9023, allocations: 169.2 MB / 0.499 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001843/0.001843, allocations: 95.84 kB / 0.6821 GB, free: 6.965 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4221/0.4239, allocations: 86.98 MB / 0.767 GB, free: 3.887 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter): time 0.003145/0.4271, allocations: 1.646 MB / 0.7686 GB, free: 2.234 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0009629/0.4281, allocations: 0.5356 MB / 0.7692 GB, free: 1.695 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001075/0.4283, allocations: 7.938 kB / 0.7692 GB, free: 1.688 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001891/0.4285, allocations: 27.78 kB / 0.7692 GB, free: 1.66 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0002889/0.4288, allocations: 63.62 kB / 0.7693 GB, free: 1.598 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002007/0.429, allocations: 67.84 kB / 0.7693 GB, free: 1.531 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0001904/0.4292, allocations: 135.6 kB / 0.7694 GB, free: 1.398 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000161/0.4293, allocations: 49.12 kB / 0.7695 GB, free: 1.352 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001421/0.4295, allocations: 63.7 kB / 0.7696 GB, free: 1.289 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001145/0.4296, allocations: 55.7 kB / 0.7696 GB, free: 1.234 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.961e-05/0.4297, allocations: 8 kB / 0.7696 GB, free: 1.227 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 6.9e-05/0.4297, allocations: 27.97 kB / 0.7696 GB, free: 1.199 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 8.897e-05/0.4298, allocations: 39.84 kB / 0.7697 GB, free: 1.16 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 7.715e-05/0.4299, allocations: 67.53 kB / 0.7697 GB, free: 1.094 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002124/0.4301, allocations: 139.5 kB / 0.7699 GB, free: 0.957 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.4301, allocations: 4 kB / 0.7699 GB, free: 0.9531 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.764e-06/0.4301, allocations: 0 / 0.7699 GB, free: 0.9531 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 6.813e-06/0.4302, allocations: 0 / 0.7699 GB, free: 0.9531 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.0006508/0.4308, allocations: 469.2 kB / 0.7703 GB, free: 460 kB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.653e-05/0.4309, allocations: 8.031 kB / 0.7703 GB, free: 452 kB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.598e-05/0.4309, allocations: 16.75 kB / 0.7704 GB, free: 436 kB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003255/0.4312, allocations: 244.7 kB / 0.7706 GB, free: 148 kB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.031e-05/0.4313, allocations: 8.375 kB / 0.7706 GB, free: 140 kB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.654e-05/0.4313, allocations: 4.375 kB / 0.7706 GB, free: 136 kB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002693/0.4316, allocations: 109.9 kB / 0.7707 GB, free: 20 kB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.524e-06/0.4316, allocations: 0 / 0.7707 GB, free: 20 kB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.57e-05/0.4316, allocations: 4 kB / 0.7707 GB, free: 16 kB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.4316, allocations: 0 / 0.7707 GB, free: 16 kB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002425/0.4319, allocations: 71.88 kB / 0.7708 GB, free: 15.95 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005837/0.4324, allocations: 380.5 kB / 0.7711 GB, free: 15.52 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001359/0.4326, allocations: 42.48 kB / 0.7712 GB, free: 15.47 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001002/0.4327, allocations: 32.89 kB / 0.7712 GB, free: 15.44 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.274e-05/0.4327, allocations: 0 / 0.7712 GB, free: 15.44 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002195/0.4329, allocations: 97.08 kB / 0.7713 GB, free: 15.32 MB / 0.545 GB Notification: Performance of pre-optimization done (n=3): time 1.022e-06/0.433, allocations: 7.938 kB / 0.7713 GB, free: 15.32 MB / 0.545 GB Notification: Performance of matching and sorting (n=3): time 0.0004141/0.4334, allocations: 121.3 kB / 0.7714 GB, free: 15.19 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.457e-05/0.4334, allocations: 77.11 kB / 0.7715 GB, free: 15.1 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002472/0.4337, allocations: 257 kB / 0.7717 GB, free: 14.84 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.75e-05/0.4337, allocations: 25.7 kB / 0.7718 GB, free: 14.81 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 8.854e-05/0.4338, allocations: 132 kB / 0.7719 GB, free: 14.68 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.914e-05/0.4338, allocations: 7.844 kB / 0.7719 GB, free: 14.67 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.697e-05/0.4339, allocations: 17.72 kB / 0.7719 GB, free: 14.64 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001253/0.434, allocations: 334.8 kB / 0.7722 GB, free: 14.31 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001028/0.4341, allocations: 19.97 kB / 0.7723 GB, free: 14.29 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001069/0.4342, allocations: 47.41 kB / 0.7723 GB, free: 14.23 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001917/0.4344, allocations: 78.48 kB / 0.7724 GB, free: 14.14 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.4344, allocations: 0 / 0.7724 GB, free: 14.14 MB / 0.545 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002546/0.4347, allocations: 97.41 kB / 0.7725 GB, free: 14.04 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/0.4347, allocations: 7.984 kB / 0.7725 GB, free: 14.04 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.4347, allocations: 4.094 kB / 0.7725 GB, free: 14.03 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.72e-05/0.4347, allocations: 7.938 kB / 0.7725 GB, free: 14.02 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001061/0.4349, allocations: 11.98 kB / 0.7725 GB, free: 14.01 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.461e-06/0.4349, allocations: 0 / 0.7725 GB, free: 14.01 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.448e-05/0.435, allocations: 15.89 kB / 0.7725 GB, free: 14 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.823e-06/0.435, allocations: 0 / 0.7725 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.0001104/0.4351, allocations: 136.5 kB / 0.7726 GB, free: 13.86 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.9e-05/0.4351, allocations: 15.81 kB / 0.7727 GB, free: 13.84 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.352e-05/0.4352, allocations: 25.17 kB / 0.7727 GB, free: 13.81 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.446e-06/0.4352, allocations: 3.938 kB / 0.7727 GB, free: 13.81 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.4352, allocations: 7.984 kB / 0.7727 GB, free: 13.8 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.4352, allocations: 0 / 0.7727 GB, free: 13.8 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001642/0.4354, allocations: 209.6 kB / 0.7729 GB, free: 13.55 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.4354, allocations: 0 / 0.7729 GB, free: 13.55 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.307e-05/0.4355, allocations: 19.98 kB / 0.7729 GB, free: 13.53 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.4355, allocations: 0 / 0.7729 GB, free: 13.53 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.933e-06/0.4355, allocations: 0 / 0.7729 GB, free: 13.53 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.537e-06/0.4355, allocations: 3.938 kB / 0.7729 GB, free: 13.52 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.4355, allocations: 8 kB / 0.7729 GB, free: 13.52 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002741/0.4358, allocations: 112.9 kB / 0.773 GB, free: 13.39 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.207e-05/0.4358, allocations: 96.84 kB / 0.7731 GB, free: 13.27 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.2e-05/0.4359, allocations: 4 kB / 0.7731 GB, free: 13.27 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.136e-05/0.4359, allocations: 11.92 kB / 0.7731 GB, free: 13.26 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.819e-05/0.436, allocations: 12 kB / 0.7732 GB, free: 13.25 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.316e-05/0.436, allocations: 7.984 kB / 0.7732 GB, free: 13.24 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001625/0.4362, allocations: 188.4 kB / 0.7733 GB, free: 13.06 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4362, allocations: 0 / 0.7733 GB, free: 13.06 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002187/0.4364, allocations: 23.91 kB / 0.7734 GB, free: 13.04 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.0002298/0.4367, allocations: 123.7 kB / 0.7735 GB, free: 12.91 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002741/0.4369, allocations: 55.94 kB / 0.7735 GB, free: 12.86 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.437, allocations: 0 / 0.7735 GB, free: 12.86 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001045/0.4371, allocations: 36.09 kB / 0.7736 GB, free: 12.82 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002871/0.4374, allocations: 44.89 kB / 0.7736 GB, free: 12.78 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005289/0.4379, allocations: 302 kB / 0.7739 GB, free: 12.45 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002839/0.4382, allocations: 0.7164 MB / 0.7746 GB, free: 11.71 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.924e-05/0.4382, allocations: 15.44 kB / 0.7746 GB, free: 11.7 MB / 0.545 GB Notification: Performance of SimCode: time 3.41e-07/0.4383, allocations: 3.938 kB / 0.7746 GB, free: 11.69 MB / 0.545 GB Notification: Performance of Templates: time 0.003978/0.4422, allocations: 2.127 MB / 0.7767 GB, free: 9.578 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