Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.001166/0.001166, allocations: 107.5 kB / 16.41 MB, free: 6.508 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.001128/0.001128, allocations: 187 kB / 17.34 MB, free: 5.742 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.417/1.417, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.269/2.269, allocations: 390.3 MB / 0.6655 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001417/0.001417, allocations: 67.88 kB / 0.9515 GB, free: 7.652 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9847/0.9862, allocations: 140.4 MB / 1.089 GB, free: 5.508 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.00279/0.989, allocations: 1.642 MB / 1.09 GB, free: 4.371 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0008199/0.9899, allocations: 0.536 MB / 1.091 GB, free: 3.996 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.379e-05/0.99, allocations: 6.969 kB / 1.091 GB, free: 3.992 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001662/0.9901, allocations: 23.55 kB / 1.091 GB, free: 3.977 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0002392/0.9904, allocations: 65.22 kB / 1.091 GB, free: 3.938 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001571/0.9906, allocations: 71.27 kB / 1.091 GB, free: 3.902 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001873/0.9908, allocations: 129.6 kB / 1.091 GB, free: 3.848 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001884/0.991, allocations: 47.09 kB / 1.091 GB, free: 3.82 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001212/0.9911, allocations: 66.28 kB / 1.091 GB, free: 3.785 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001179/0.9912, allocations: 58.97 kB / 1.091 GB, free: 3.758 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.709e-05/0.9912, allocations: 8.125 kB / 1.091 GB, free: 3.758 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 6.782e-05/0.9913, allocations: 29.92 kB / 1.091 GB, free: 3.746 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 8.996e-05/0.9914, allocations: 40.48 kB / 1.091 GB, free: 3.73 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.958e-05/0.9915, allocations: 63.67 kB / 1.091 GB, free: 3.684 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002131/0.9917, allocations: 139.9 kB / 1.091 GB, free: 3.629 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.9917, allocations: 0 / 1.091 GB, free: 3.629 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.794e-06/0.9917, allocations: 1.156 kB / 1.091 GB, free: 3.629 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.52e-06/0.9917, allocations: 4 kB / 1.091 GB, free: 3.625 MB / 0.8575 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.000521/0.9923, allocations: 468.6 kB / 1.092 GB, free: 3.195 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.263e-05/0.9923, allocations: 9.469 kB / 1.092 GB, free: 3.195 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.008e-05/0.9924, allocations: 22.06 kB / 1.092 GB, free: 3.184 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002811/0.9927, allocations: 239.2 kB / 1.092 GB, free: 2.949 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.298e-05/0.9927, allocations: 6.438 kB / 1.092 GB, free: 2.945 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.665e-05/0.9927, allocations: 8.188 kB / 1.092 GB, free: 2.941 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002909/0.993, allocations: 113.9 kB / 1.092 GB, free: 2.887 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.646e-06/0.993, allocations: 0.7188 kB / 1.092 GB, free: 2.887 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.394e-05/0.993, allocations: 0.6875 kB / 1.092 GB, free: 2.887 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.835e-06/0.993, allocations: 1.688 kB / 1.092 GB, free: 2.887 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002449/0.9933, allocations: 71.72 kB / 1.092 GB, free: 2.867 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005489/0.9939, allocations: 388.6 kB / 1.093 GB, free: 2.543 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000125/0.994, allocations: 40.09 kB / 1.093 GB, free: 2.516 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001065/0.9941, allocations: 28.42 kB / 1.093 GB, free: 2.504 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.635e-05/0.9941, allocations: 1.812 kB / 1.093 GB, free: 2.504 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000208/0.9943, allocations: 100.6 kB / 1.093 GB, free: 2.426 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.052e-06/0.9944, allocations: 0.6562 kB / 1.093 GB, free: 2.426 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.000427/0.9948, allocations: 121.9 kB / 1.093 GB, free: 2.371 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.128e-05/0.9948, allocations: 87.31 kB / 1.093 GB, free: 2.27 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002768/0.9951, allocations: 254.1 kB / 1.093 GB, free: 2.121 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.429e-05/0.9951, allocations: 27.22 kB / 1.093 GB, free: 2.09 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.809e-05/0.9952, allocations: 126.1 kB / 1.093 GB, free: 1.977 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.492e-05/0.9952, allocations: 5.75 kB / 1.093 GB, free: 1.973 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.727e-05/0.9953, allocations: 19.06 kB / 1.093 GB, free: 1.953 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.581e-05/0.9953, allocations: 332.3 kB / 1.094 GB, free: 1.629 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001143/0.9954, allocations: 24.48 kB / 1.094 GB, free: 1.625 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000113/0.9956, allocations: 46.75 kB / 1.094 GB, free: 1.59 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002073/0.9958, allocations: 73.53 kB / 1.094 GB, free: 1.551 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.9958, allocations: 0.6875 kB / 1.094 GB, free: 1.551 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002719/0.9961, allocations: 102 kB / 1.094 GB, free: 1.5 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.686e-05/0.9961, allocations: 5.75 kB / 1.094 GB, free: 1.5 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.9961, allocations: 4.75 kB / 1.094 GB, free: 1.496 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.577e-05/0.9961, allocations: 8.875 kB / 1.094 GB, free: 1.488 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001101/0.9962, allocations: 11.97 kB / 1.094 GB, free: 1.488 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.577e-06/0.9963, allocations: 1.406 kB / 1.094 GB, free: 1.488 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.951e-05/0.9963, allocations: 15.36 kB / 1.094 GB, free: 1.484 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.889e-06/0.9964, allocations: 1.5 kB / 1.094 GB, free: 1.484 MB / 0.8575 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.68e-05/0.9965, allocations: 135.9 kB / 1.094 GB, free: 1.355 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.006e-05/0.9965, allocations: 20.67 kB / 1.094 GB, free: 1.344 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.819e-05/0.9965, allocations: 18.25 kB / 1.094 GB, free: 1.336 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.9965, allocations: 7.938 kB / 1.094 GB, free: 1.328 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.9966, allocations: 1 kB / 1.094 GB, free: 1.328 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.626e-06/0.9966, allocations: 0.6562 kB / 1.094 GB, free: 1.328 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001489/0.9967, allocations: 217 kB / 1.094 GB, free: 1.117 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.9967, allocations: 0 / 1.094 GB, free: 1.117 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.74e-05/0.9968, allocations: 12.12 kB / 1.094 GB, free: 1.117 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.9968, allocations: 0 / 1.094 GB, free: 1.117 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.116e-06/0.9968, allocations: 1.641 kB / 1.094 GB, free: 1.117 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/0.9968, allocations: 8.781 kB / 1.094 GB, free: 1.109 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.9968, allocations: 0 / 1.094 GB, free: 1.109 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002715/0.9971, allocations: 125.6 kB / 1.095 GB, free: 1.023 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.956e-05/0.9972, allocations: 89.47 kB / 1.095 GB, free: 0.9219 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.49e-05/0.9972, allocations: 1.25 kB / 1.095 GB, free: 0.9219 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.181e-05/0.9973, allocations: 18.12 kB / 1.095 GB, free: 0.9141 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.466e-05/0.9973, allocations: 7.625 kB / 1.095 GB, free: 0.9102 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.486e-05/0.9974, allocations: 10.03 kB / 1.095 GB, free: 0.9062 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001709/0.9975, allocations: 187.3 kB / 1.095 GB, free: 0.8008 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9975, allocations: 0 / 1.095 GB, free: 0.8008 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002361/0.9978, allocations: 22.05 kB / 1.095 GB, free: 0.7969 MB / 0.8575 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.0002522/0.998, allocations: 122.8 kB / 1.095 GB, free: 0.6992 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002928/0.9983, allocations: 54.59 kB / 1.095 GB, free: 0.6914 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.9983, allocations: 4.688 kB / 1.095 GB, free: 0.6875 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.000112/0.9985, allocations: 27.36 kB / 1.095 GB, free: 0.6836 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002988/0.9988, allocations: 43.95 kB / 1.095 GB, free: 0.668 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005719/0.9994, allocations: 316 kB / 1.095 GB, free: 452 kB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002553/0.9996, allocations: 0.7149 MB / 1.096 GB, free: 15.75 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.538e-05/0.9997, allocations: 16.75 kB / 1.096 GB, free: 15.74 MB / 0.8731 GB Notification: Performance of SimCode: time 2.3e-07/0.9997, allocations: 0 / 1.096 GB, free: 15.74 MB / 0.8731 GB Notification: Performance of Templates: time 0.005053/1.005, allocations: 2.13 MB / 1.098 GB, free: 15.49 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile make -j1 -f Buildings_9_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 9.1.3-maint.9.1.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 9.1.3-maint.9.1.x/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppBuildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.o OMCppBuildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.cpp In file included from OMCppBuildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.cpp:28: ./OMCppBuildings_9_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 9.1.3-maint.9.1.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_9_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.o] Error 1