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) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001332/0.001332, allocations: 107.4 kB / 18.19 MB, free: 4.117 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001371/0.001371, allocations: 193.9 kB / 21.34 MB, free: 0.9766 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.537/1.537, allocations: 225.6 MB / 249.9 MB, free: 3.191 MB / 190.1 MB [Timeout remaining time 88] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.654/2.654, allocations: 443.5 MB / 0.731 GB, free: 14.11 MB / 0.5762 GB [Timeout remaining time 87] 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=502,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=502,variableFilter="time|ramp.startTime|const.y|cosine.y",fileNamePrefix="Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter") [Timeout 300] Notification: Performance of FrontEnd - loaded program: time 0.00211/0.00211, allocations: 63.89 kB / 1.06 GB, free: 0.582 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2967/0.2988, allocations: 160.7 MB / 1.217 GB, free: 15.56 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003047/0.3018, allocations: 1.662 MB / 1.218 GB, free: 13.88 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0009465/0.3028, allocations: 0.5463 MB / 1.219 GB, free: 13.32 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.907e-05/0.3029, allocations: 4 kB / 1.219 GB, free: 13.32 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001739/0.303, allocations: 27.72 kB / 1.219 GB, free: 13.29 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0002534/0.3033, allocations: 63.72 kB / 1.219 GB, free: 13.23 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.000162/0.3035, allocations: 75.8 kB / 1.219 GB, free: 13.16 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.000197/0.3036, allocations: 127.5 kB / 1.219 GB, free: 13.03 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001367/0.3038, allocations: 33.48 kB / 1.219 GB, free: 12.99 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001284/0.3039, allocations: 63.75 kB / 1.219 GB, free: 12.93 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001179/0.304, allocations: 63.69 kB / 1.219 GB, free: 12.87 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.796e-05/0.3041, allocations: 8 kB / 1.219 GB, free: 12.86 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 6.139e-05/0.3041, allocations: 19.94 kB / 1.219 GB, free: 12.84 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001055/0.3042, allocations: 63.81 kB / 1.219 GB, free: 12.78 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 8.037e-05/0.3043, allocations: 55.61 kB / 1.219 GB, free: 12.72 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002301/0.3045, allocations: 151.2 kB / 1.219 GB, free: 12.57 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.3045, allocations: 3.938 kB / 1.219 GB, free: 12.57 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.543e-06/0.3045, allocations: 0 / 1.219 GB, free: 12.57 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.079e-05/0.3046, allocations: 0 / 1.219 GB, free: 12.57 MB / 0.9669 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.0006721/0.3052, allocations: 466.5 kB / 1.22 GB, free: 12.07 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.245e-05/0.3053, allocations: 8.031 kB / 1.22 GB, free: 12.06 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.731e-05/0.3053, allocations: 28.8 kB / 1.22 GB, free: 12.03 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003347/0.3056, allocations: 244.9 kB / 1.22 GB, free: 11.75 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.146e-05/0.3057, allocations: 4.375 kB / 1.22 GB, free: 11.75 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.365e-05/0.3057, allocations: 4.375 kB / 1.22 GB, free: 11.74 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002906/0.306, allocations: 113.9 kB / 1.22 GB, free: 11.62 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.175e-06/0.306, allocations: 3.938 kB / 1.22 GB, free: 11.62 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.292e-05/0.306, allocations: 4 kB / 1.22 GB, free: 11.62 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.962e-06/0.306, allocations: 4 kB / 1.22 GB, free: 11.61 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002352/0.3062, allocations: 63.94 kB / 1.22 GB, free: 11.55 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006/0.3068, allocations: 372.5 kB / 1.221 GB, free: 11.14 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001487/0.307, allocations: 46.55 kB / 1.221 GB, free: 11.08 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001095/0.3071, allocations: 28.89 kB / 1.221 GB, free: 11.05 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.463e-05/0.3071, allocations: 0 / 1.221 GB, free: 11.05 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002198/0.3073, allocations: 101 kB / 1.221 GB, free: 10.93 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=3): time 1.052e-06/0.3073, allocations: 4 kB / 1.221 GB, free: 10.93 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3): time 0.0004288/0.3077, allocations: 121.6 kB / 1.221 GB, free: 10.8 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.436e-05/0.3078, allocations: 85.11 kB / 1.221 GB, free: 10.7 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002672/0.3081, allocations: 249 kB / 1.221 GB, free: 10.45 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 3.073e-05/0.3081, allocations: 33.64 kB / 1.221 GB, free: 10.41 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 8.809e-05/0.3082, allocations: 128.1 kB / 1.221 GB, free: 10.29 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.473e-05/0.3082, allocations: 15.88 kB / 1.221 GB, free: 10.27 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.888e-05/0.3083, allocations: 13.72 kB / 1.221 GB, free: 10.25 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001674/0.3084, allocations: 326.8 kB / 1.222 GB, free: 9.922 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001136/0.3085, allocations: 23.97 kB / 1.222 GB, free: 9.898 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001246/0.3087, allocations: 51.41 kB / 1.222 GB, free: 9.836 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002156/0.3089, allocations: 70.45 kB / 1.222 GB, free: 9.758 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.3089, allocations: 3.938 kB / 1.222 GB, free: 9.754 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002847/0.3092, allocations: 101.5 kB / 1.222 GB, free: 9.648 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.472e-05/0.3092, allocations: 4 kB / 1.222 GB, free: 9.645 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.704e-06/0.3092, allocations: 7.984 kB / 1.222 GB, free: 9.637 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.514e-05/0.3092, allocations: 3.938 kB / 1.222 GB, free: 9.633 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001072/0.3093, allocations: 11.98 kB / 1.222 GB, free: 9.621 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.438e-06/0.3093, allocations: 0 / 1.222 GB, free: 9.621 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.399e-05/0.3094, allocations: 19.94 kB / 1.222 GB, free: 9.602 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.143e-06/0.3094, allocations: 4.094 kB / 1.222 GB, free: 9.598 MB / 0.9669 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.0001158/0.3095, allocations: 125.8 kB / 1.222 GB, free: 9.465 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.165e-05/0.3096, allocations: 15.91 kB / 1.222 GB, free: 9.449 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.548e-05/0.3096, allocations: 17.25 kB / 1.222 GB, free: 9.43 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.781e-06/0.3096, allocations: 7.938 kB / 1.222 GB, free: 9.422 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.3096, allocations: 3.938 kB / 1.222 GB, free: 9.418 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.3096, allocations: 3.984 kB / 1.222 GB, free: 9.414 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001956/0.3098, allocations: 209.6 kB / 1.222 GB, free: 9.16 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.3098, allocations: 0 / 1.222 GB, free: 9.16 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.289e-05/0.3099, allocations: 15.98 kB / 1.222 GB, free: 9.145 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.3099, allocations: 0 / 1.222 GB, free: 9.145 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.444e-06/0.3099, allocations: 0 / 1.222 GB, free: 9.145 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.549e-06/0.3099, allocations: 11.88 kB / 1.222 GB, free: 9.133 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.3099, allocations: 0 / 1.222 GB, free: 9.133 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003021/0.3102, allocations: 124.9 kB / 1.223 GB, free: 8.992 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 6.267e-05/0.3103, allocations: 93 kB / 1.223 GB, free: 8.883 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.34e-05/0.3103, allocations: 4 kB / 1.223 GB, free: 8.879 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.909e-05/0.3104, allocations: 15.92 kB / 1.223 GB, free: 8.863 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.132e-05/0.3104, allocations: 4 kB / 1.223 GB, free: 8.859 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.083e-05/0.3105, allocations: 4 kB / 1.223 GB, free: 8.855 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001954/0.3106, allocations: 192.5 kB / 1.223 GB, free: 8.668 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3106, allocations: 0 / 1.223 GB, free: 8.668 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002242/0.3109, allocations: 19.94 kB / 1.223 GB, free: 8.648 MB / 0.9669 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.0002382/0.3111, allocations: 121.9 kB / 1.223 GB, free: 8.527 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.000284/0.3114, allocations: 59.88 kB / 1.223 GB, free: 8.469 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.3114, allocations: 4.188 kB / 1.223 GB, free: 8.465 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001127/0.3115, allocations: 28.16 kB / 1.223 GB, free: 8.438 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002844/0.3118, allocations: 40.73 kB / 1.223 GB, free: 8.398 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005951/0.3124, allocations: 321.5 kB / 1.223 GB, free: 8.051 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003728/0.3128, allocations: 0.7236 MB / 1.224 GB, free: 7.301 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.14e-05/0.3128, allocations: 19.38 kB / 1.224 GB, free: 7.285 MB / 0.9669 GB Notification: Performance of SimCode: time 3.11e-07/0.3128, allocations: 0 / 1.224 GB, free: 7.285 MB / 0.9669 GB Notification: Performance of Templates: time 0.004348/0.3172, allocations: 2.11 MB / 1.226 GB, free: 5.18 MB / 0.9669 GB [Timeout remaining time 300] make -j1 -f Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile [Timeout 300] 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