Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.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/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|ramp.startTime|const.y|cosine.y",fileNamePrefix="Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter") translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|ramp.startTime|const.y|cosine.y",fileNamePrefix="Buildings_10_Buildings.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.001621/0.00162, allocations: 101.4 kB / 16.27 MB, free: 6.414 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.001717/0.001717, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.393/1.393, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.526/2.526, allocations: 437.1 MB / 0.7111 GB, free: 4.5 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001911/0.001912, allocations: 67.45 kB / 0.8699 GB, free: 2.207 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3102/0.3121, allocations: 151.6 MB / 1.018 GB, free: 10.64 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003255/0.3154, allocations: 1.641 MB / 1.02 GB, free: 8.992 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0009836/0.3164, allocations: 0.5532 MB / 1.02 GB, free: 8.434 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.416e-05/0.3165, allocations: 4 kB / 1.02 GB, free: 8.43 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0001653/0.3167, allocations: 27.72 kB / 1.02 GB, free: 8.402 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0002418/0.317, allocations: 68.12 kB / 1.02 GB, free: 8.336 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001744/0.3171, allocations: 59.86 kB / 1.02 GB, free: 8.277 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001798/0.3173, allocations: 131.6 kB / 1.02 GB, free: 8.148 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001628/0.3175, allocations: 49.47 kB / 1.02 GB, free: 8.094 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001379/0.3177, allocations: 63.7 kB / 1.021 GB, free: 8.031 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001235/0.3178, allocations: 55.77 kB / 1.021 GB, free: 7.977 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 3.59e-05/0.3178, allocations: 8 kB / 1.021 GB, free: 7.969 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 6.89e-05/0.3179, allocations: 31.98 kB / 1.021 GB, free: 7.938 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001031/0.318, allocations: 39.84 kB / 1.021 GB, free: 7.898 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 8.388e-05/0.3181, allocations: 59.59 kB / 1.021 GB, free: 7.84 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0002223/0.3183, allocations: 143.7 kB / 1.021 GB, free: 7.699 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.678e-06/0.3183, allocations: 0 / 1.021 GB, free: 7.699 MB / 0.795 GB Notification: Performance of FrontEnd: time 3.948e-06/0.3184, allocations: 0 / 1.021 GB, free: 7.699 MB / 0.795 GB Notification: Performance of Transformations before backend: time 5.54e-06/0.3184, allocations: 3.938 kB / 1.021 GB, free: 7.695 MB / 0.795 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.0007065/0.3191, allocations: 470.6 kB / 1.021 GB, free: 7.188 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.696e-05/0.3191, allocations: 8.922 kB / 1.021 GB, free: 7.18 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.757e-05/0.3192, allocations: 16.75 kB / 1.021 GB, free: 7.164 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003106/0.3195, allocations: 236.8 kB / 1.022 GB, free: 6.895 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.933e-06/0.3195, allocations: 384 / 1.022 GB, free: 6.895 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.167e-05/0.3195, allocations: 8.375 kB / 1.022 GB, free: 6.887 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002977/0.3198, allocations: 110.7 kB / 1.022 GB, free: 6.773 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.197e-06/0.3199, allocations: 0 / 1.022 GB, free: 6.773 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.648e-05/0.3199, allocations: 4 kB / 1.022 GB, free: 6.77 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.282e-06/0.3199, allocations: 8 kB / 1.022 GB, free: 6.762 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002391/0.3201, allocations: 59.94 kB / 1.022 GB, free: 6.703 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006414/0.3208, allocations: 392.4 kB / 1.022 GB, free: 6.27 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000153/0.321, allocations: 46.44 kB / 1.022 GB, free: 6.215 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001164/0.3211, allocations: 32.89 kB / 1.022 GB, free: 6.18 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 1.208e-05/0.3211, allocations: 0 / 1.022 GB, free: 6.18 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002654/0.3214, allocations: 96.98 kB / 1.022 GB, free: 6.066 MB / 0.795 GB Notification: Performance of pre-optimization done (n=3): time 9.52e-07/0.3214, allocations: 4 kB / 1.022 GB, free: 6.062 MB / 0.795 GB Notification: Performance of matching and sorting (n=3): time 0.0004666/0.3219, allocations: 125.3 kB / 1.022 GB, free: 5.934 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.67e-05/0.3219, allocations: 77.11 kB / 1.022 GB, free: 5.84 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002825/0.3222, allocations: 253 kB / 1.023 GB, free: 5.586 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.469e-05/0.3222, allocations: 29.7 kB / 1.023 GB, free: 5.551 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001084/0.3224, allocations: 136 kB / 1.023 GB, free: 5.414 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 1.782e-05/0.3224, allocations: 3.906 kB / 1.023 GB, free: 5.41 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.112e-05/0.3224, allocations: 17.72 kB / 1.023 GB, free: 5.387 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001616/0.3226, allocations: 326.8 kB / 1.023 GB, free: 5.059 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001239/0.3227, allocations: 23.98 kB / 1.023 GB, free: 5.035 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00013/0.3229, allocations: 51.41 kB / 1.023 GB, free: 4.973 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002261/0.3231, allocations: 70.45 kB / 1.023 GB, free: 4.895 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.3231, allocations: 0 / 1.023 GB, free: 4.895 MB / 0.795 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003053/0.3234, allocations: 105.4 kB / 1.023 GB, free: 4.785 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.496e-05/0.3234, allocations: 8 kB / 1.023 GB, free: 4.777 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.3235, allocations: 0 / 1.023 GB, free: 4.777 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.665e-05/0.3235, allocations: 3.938 kB / 1.023 GB, free: 4.773 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001163/0.3236, allocations: 11.98 kB / 1.023 GB, free: 4.762 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.56e-06/0.3236, allocations: 0 / 1.023 GB, free: 4.762 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.891e-05/0.3237, allocations: 11.98 kB / 1.023 GB, free: 4.75 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.738e-06/0.3237, allocations: 8.094 kB / 1.023 GB, free: 4.742 MB / 0.795 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.000116/0.3238, allocations: 126.5 kB / 1.024 GB, free: 4.609 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.241e-05/0.3239, allocations: 19.72 kB / 1.024 GB, free: 4.59 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.395e-05/0.3239, allocations: 21.23 kB / 1.024 GB, free: 4.574 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.461e-06/0.3239, allocations: 3.938 kB / 1.024 GB, free: 4.57 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.324, allocations: 0 / 1.024 GB, free: 4.57 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.324, allocations: 0 / 1.024 GB, free: 4.57 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002056/0.3242, allocations: 217.6 kB / 1.024 GB, free: 4.309 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.589e-06/0.3242, allocations: 0 / 1.024 GB, free: 4.309 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.49e-05/0.3243, allocations: 19.86 kB / 1.024 GB, free: 4.289 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.3243, allocations: 4 kB / 1.024 GB, free: 4.285 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.275e-06/0.3243, allocations: 0 / 1.024 GB, free: 4.285 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.447e-06/0.3243, allocations: 3.938 kB / 1.024 GB, free: 4.281 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.3243, allocations: 0 / 1.024 GB, free: 4.281 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003022/0.3246, allocations: 124.9 kB / 1.024 GB, free: 4.141 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 7.658e-05/0.3247, allocations: 97.19 kB / 1.024 GB, free: 4.027 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.122e-05/0.3247, allocations: 0 / 1.024 GB, free: 4.027 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.855e-05/0.3248, allocations: 15.92 kB / 1.024 GB, free: 4.012 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.005e-05/0.3249, allocations: 7.938 kB / 1.024 GB, free: 4.004 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.358e-05/0.3249, allocations: 7.984 kB / 1.024 GB, free: 3.996 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0001922/0.3251, allocations: 184.5 kB / 1.024 GB, free: 3.816 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3251, allocations: 0 / 1.024 GB, free: 3.816 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002264/0.3253, allocations: 23.98 kB / 1.024 GB, free: 3.793 MB / 0.795 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.0002428/0.3256, allocations: 129.6 kB / 1.024 GB, free: 3.66 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0003065/0.3259, allocations: 51.94 kB / 1.024 GB, free: 3.609 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 4.508e-06/0.3259, allocations: 8.188 kB / 1.024 GB, free: 3.602 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001187/0.326, allocations: 27.91 kB / 1.025 GB, free: 3.574 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002907/0.3263, allocations: 42.94 kB / 1.025 GB, free: 3.539 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005729/0.3269, allocations: 318 kB / 1.025 GB, free: 3.191 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003723/0.3273, allocations: 0.7158 MB / 1.026 GB, free: 2.449 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.596e-05/0.3274, allocations: 23.42 kB / 1.026 GB, free: 2.426 MB / 0.795 GB Notification: Performance of SimCode: time 2.4e-07/0.3274, allocations: 0 / 1.026 GB, free: 2.426 MB / 0.795 GB Notification: Performance of Templates: time 0.004351/0.3317, allocations: 2.105 MB / 1.028 GB, free: 340 kB / 0.795 GB make -j1 -f Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile make -j1 -f Buildings_10_Buildings.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/Buildings 10.1.1-maint.10.0.x/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/Buildings 10.1.1-maint.10.0.x/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppBuildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.o OMCppBuildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.cpp In file included from OMCppBuildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.cpp:28: ./OMCppBuildings_10_Buildings.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/Buildings 10.1.1-maint.10.0.x/Resources/C-Sources/jsonWriterInit.c:19:7: note: candidate function not viable: no known conversion from 'CStrArray' to 'char **' for 5th argument void* jsonWriterInit( ^ 1 error generated. make: *** [: OMCppBuildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.o] Error 1