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.001326/0.001326, allocations: 109.1 kB / 15.99 MB, free: 6.355 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.001376/0.001376, allocations: 190.4 kB / 16.91 MB, free: 6.195 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.304/1.304, allocations: 222.9 MB / 240.6 MB, free: 15.44 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.338/2.338, allocations: 437 MB / 0.7107 GB, free: 4.676 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001219/0.001219, allocations: 67.05 kB / 0.8694 GB, free: 2.598 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2849/0.2862, allocations: 151.6 MB / 1.017 GB, free: 11.04 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003064/0.2893, allocations: 1.698 MB / 1.019 GB, free: 9.328 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0009063/0.2902, allocations: 0.5493 MB / 1.02 GB, free: 8.773 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.436e-05/0.2903, allocations: 4 kB / 1.02 GB, free: 8.77 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0001943/0.2905, allocations: 23.84 kB / 1.02 GB, free: 8.746 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0002369/0.2908, allocations: 51.77 kB / 1.02 GB, free: 8.695 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001506/0.2909, allocations: 63.92 kB / 1.02 GB, free: 8.633 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0002065/0.2911, allocations: 131.5 kB / 1.02 GB, free: 8.504 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001656/0.2913, allocations: 45.47 kB / 1.02 GB, free: 8.453 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001235/0.2914, allocations: 59.77 kB / 1.02 GB, free: 8.395 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001211/0.2916, allocations: 67.64 kB / 1.02 GB, free: 8.328 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 2.77e-05/0.2916, allocations: 8 kB / 1.02 GB, free: 8.32 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 6.398e-05/0.2917, allocations: 27.97 kB / 1.02 GB, free: 8.293 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 8.059e-05/0.2918, allocations: 35.91 kB / 1.02 GB, free: 8.258 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 6.583e-05/0.2918, allocations: 63.53 kB / 1.02 GB, free: 8.195 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001751/0.292, allocations: 104.1 kB / 1.02 GB, free: 8.094 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 6.813e-06/0.292, allocations: 4 kB / 1.02 GB, free: 8.09 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.683e-06/0.292, allocations: 0 / 1.02 GB, free: 8.09 MB / 0.795 GB Notification: Performance of Transformations before backend: time 6.342e-06/0.2921, allocations: 0 / 1.02 GB, free: 8.09 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.0006533/0.2927, allocations: 468.8 kB / 1.021 GB, free: 7.586 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.665e-05/0.2928, allocations: 8.922 kB / 1.021 GB, free: 7.578 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.412e-05/0.2928, allocations: 16.75 kB / 1.021 GB, free: 7.562 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002482/0.2931, allocations: 236.8 kB / 1.021 GB, free: 7.293 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.332e-05/0.2931, allocations: 4.375 kB / 1.021 GB, free: 7.289 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.425e-05/0.2931, allocations: 4.375 kB / 1.021 GB, free: 7.285 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002896/0.2934, allocations: 117.9 kB / 1.021 GB, free: 7.164 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.502e-06/0.2934, allocations: 4 kB / 1.021 GB, free: 7.16 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.426e-05/0.2934, allocations: 0 / 1.021 GB, free: 7.16 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.2935, allocations: 4 kB / 1.021 GB, free: 7.156 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002141/0.2937, allocations: 63.94 kB / 1.021 GB, free: 7.094 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005743/0.2943, allocations: 380.5 kB / 1.022 GB, free: 6.672 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001314/0.2944, allocations: 38.55 kB / 1.022 GB, free: 6.625 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000101/0.2945, allocations: 24.91 kB / 1.022 GB, free: 6.598 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 1.644e-05/0.2945, allocations: 3.984 kB / 1.022 GB, free: 6.594 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002768/0.2948, allocations: 108.9 kB / 1.022 GB, free: 6.469 MB / 0.795 GB Notification: Performance of pre-optimization done (n=3): time 1.132e-06/0.2948, allocations: 0 / 1.022 GB, free: 6.469 MB / 0.795 GB Notification: Performance of matching and sorting (n=3): time 0.0004317/0.2953, allocations: 121.4 kB / 1.022 GB, free: 6.344 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.482e-05/0.2953, allocations: 77.11 kB / 1.022 GB, free: 6.25 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000237/0.2956, allocations: 261 kB / 1.022 GB, free: 5.988 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.39e-05/0.2956, allocations: 29.64 kB / 1.022 GB, free: 5.953 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 7.378e-05/0.2957, allocations: 128 kB / 1.022 GB, free: 5.824 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 1.829e-05/0.2957, allocations: 7.891 kB / 1.022 GB, free: 5.816 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.527e-05/0.2958, allocations: 21.7 kB / 1.022 GB, free: 5.789 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001109/0.2959, allocations: 326.8 kB / 1.023 GB, free: 5.461 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001038/0.296, allocations: 23.97 kB / 1.023 GB, free: 5.438 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001113/0.2961, allocations: 59.34 kB / 1.023 GB, free: 5.367 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002007/0.2963, allocations: 58.53 kB / 1.023 GB, free: 5.301 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.2963, allocations: 4.031 kB / 1.023 GB, free: 5.297 MB / 0.795 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002565/0.2966, allocations: 101.4 kB / 1.023 GB, free: 5.191 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.654e-05/0.2966, allocations: 8 kB / 1.023 GB, free: 5.184 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.2966, allocations: 3.938 kB / 1.023 GB, free: 5.18 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.199e-05/0.2966, allocations: 3.938 kB / 1.023 GB, free: 5.176 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001093/0.2967, allocations: 15.92 kB / 1.023 GB, free: 5.16 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.35e-06/0.2968, allocations: 4.094 kB / 1.023 GB, free: 5.156 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.475e-05/0.2968, allocations: 11.98 kB / 1.023 GB, free: 5.145 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.709e-06/0.2969, allocations: 4.281 kB / 1.023 GB, free: 5.141 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.000101/0.297, allocations: 125.8 kB / 1.023 GB, free: 5.008 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.951e-05/0.297, allocations: 23.7 kB / 1.023 GB, free: 4.984 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.441e-05/0.297, allocations: 25.23 kB / 1.023 GB, free: 4.965 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.039e-06/0.297, allocations: 3.938 kB / 1.023 GB, free: 4.961 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.2971, allocations: 0 / 1.023 GB, free: 4.961 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-06/0.2971, allocations: 0 / 1.023 GB, free: 4.961 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001676/0.2972, allocations: 221.6 kB / 1.023 GB, free: 4.695 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.2972, allocations: 0 / 1.023 GB, free: 4.695 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.916e-05/0.2973, allocations: 11.98 kB / 1.023 GB, free: 4.684 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.2973, allocations: 0 / 1.023 GB, free: 4.684 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.954e-06/0.2973, allocations: 0 / 1.023 GB, free: 4.684 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.352e-06/0.2974, allocations: 7.922 kB / 1.023 GB, free: 4.676 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.2974, allocations: 0 / 1.023 GB, free: 4.676 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002791/0.2976, allocations: 124.8 kB / 1.023 GB, free: 4.535 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 4.749e-05/0.2977, allocations: 92.86 kB / 1.024 GB, free: 4.426 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.383e-05/0.2977, allocations: 3.984 kB / 1.024 GB, free: 4.422 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.335e-05/0.2978, allocations: 15.94 kB / 1.024 GB, free: 4.406 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.331e-05/0.2979, allocations: 3.984 kB / 1.024 GB, free: 4.402 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.204e-05/0.2979, allocations: 4 kB / 1.024 GB, free: 4.398 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0001718/0.2981, allocations: 188.5 kB / 1.024 GB, free: 4.215 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2981, allocations: 4 kB / 1.024 GB, free: 4.211 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002122/0.2983, allocations: 24.12 kB / 1.024 GB, free: 4.188 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.000221/0.2985, allocations: 119.4 kB / 1.024 GB, free: 4.066 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.000268/0.2988, allocations: 67.81 kB / 1.024 GB, free: 4 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.2988, allocations: 0 / 1.024 GB, free: 4 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001064/0.2989, allocations: 27.97 kB / 1.024 GB, free: 3.973 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000289/0.2992, allocations: 44.88 kB / 1.024 GB, free: 3.934 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005256/0.2998, allocations: 354 kB / 1.024 GB, free: 3.551 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002668/0.3, allocations: 0.7197 MB / 1.025 GB, free: 2.805 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.284e-05/0.3001, allocations: 23.38 kB / 1.025 GB, free: 2.781 MB / 0.795 GB Notification: Performance of SimCode: time 2.3e-07/0.3001, allocations: 0 / 1.025 GB, free: 2.781 MB / 0.795 GB Notification: Performance of Templates: time 0.003637/0.3037, allocations: 2.104 MB / 1.027 GB, free: 0.6914 MB / 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++14 -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