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.001127/0.001126, allocations: 104.9 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.00109/0.00109, allocations: 189.8 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.423/1.423, allocations: 222.9 MB / 240.9 MB, free: 15.27 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.361/2.361, allocations: 390.3 MB / 0.6653 GB, free: 0.7383 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001298/0.001298, allocations: 63.22 kB / 0.8132 GB, free: 33.12 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2533/0.2546, allocations: 140.4 MB / 0.9503 GB, free: 8.895 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003845/0.2585, allocations: 1.652 MB / 0.9519 GB, free: 7.23 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001138/0.2597, allocations: 0.5456 MB / 0.9524 GB, free: 6.68 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000143/0.2599, allocations: 4 kB / 0.9524 GB, free: 6.676 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0002172/0.2601, allocations: 19.73 kB / 0.9524 GB, free: 6.656 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0002697/0.2604, allocations: 63.12 kB / 0.9525 GB, free: 6.598 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001938/0.2606, allocations: 67.84 kB / 0.9526 GB, free: 6.531 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0002031/0.2608, allocations: 135.5 kB / 0.9527 GB, free: 6.398 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001737/0.261, allocations: 49.45 kB / 0.9527 GB, free: 6.344 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001392/0.2612, allocations: 59.83 kB / 0.9528 GB, free: 6.285 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001344/0.2613, allocations: 59.7 kB / 0.9528 GB, free: 6.227 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 3.205e-05/0.2613, allocations: 8 kB / 0.9529 GB, free: 6.219 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 7.578e-05/0.2614, allocations: 31.91 kB / 0.9529 GB, free: 6.188 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 8.976e-05/0.2615, allocations: 39.84 kB / 0.9529 GB, free: 6.148 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 6.836e-05/0.2616, allocations: 59.59 kB / 0.953 GB, free: 6.09 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002148/0.2618, allocations: 143.7 kB / 0.9531 GB, free: 5.949 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.2618, allocations: 0 / 0.9531 GB, free: 5.949 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.483e-06/0.2618, allocations: 0 / 0.9531 GB, free: 5.949 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 7.684e-06/0.2619, allocations: 0 / 0.9531 GB, free: 5.949 MB / 0.7325 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.0006434/0.2625, allocations: 480 kB / 0.9536 GB, free: 5.434 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.635e-05/0.2625, allocations: 8.031 kB / 0.9536 GB, free: 5.426 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.976e-05/0.2626, allocations: 16.75 kB / 0.9536 GB, free: 5.41 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002496/0.2629, allocations: 232.9 kB / 0.9538 GB, free: 5.145 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.898e-06/0.2629, allocations: 384 / 0.9538 GB, free: 5.145 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.771e-05/0.2629, allocations: 8.375 kB / 0.9538 GB, free: 5.137 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002936/0.2632, allocations: 109.9 kB / 0.9539 GB, free: 5.023 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.276e-06/0.2632, allocations: 4 kB / 0.9539 GB, free: 5.02 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.604e-05/0.2632, allocations: 4 kB / 0.9539 GB, free: 5.016 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.616e-06/0.2633, allocations: 4 kB / 0.9539 GB, free: 5.012 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000229/0.2635, allocations: 59.88 kB / 0.954 GB, free: 4.953 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006171/0.2641, allocations: 388.5 kB / 0.9544 GB, free: 4.523 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001448/0.2643, allocations: 46.48 kB / 0.9544 GB, free: 4.469 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001117/0.2644, allocations: 24.91 kB / 0.9544 GB, free: 4.441 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.737e-05/0.2644, allocations: 4 kB / 0.9544 GB, free: 4.438 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002773/0.2647, allocations: 97.08 kB / 0.9545 GB, free: 4.324 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=3): time 1.653e-06/0.2647, allocations: 0 / 0.9545 GB, free: 4.324 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3): time 0.000459/0.2652, allocations: 125.3 kB / 0.9547 GB, free: 4.195 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.23e-05/0.2653, allocations: 81.11 kB / 0.9547 GB, free: 4.098 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002604/0.2655, allocations: 260.9 kB / 0.955 GB, free: 3.832 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.934e-05/0.2656, allocations: 33.64 kB / 0.955 GB, free: 3.793 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 9.044e-05/0.2656, allocations: 128 kB / 0.9551 GB, free: 3.664 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.774e-05/0.2657, allocations: 3.906 kB / 0.9551 GB, free: 3.66 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.28e-05/0.2657, allocations: 21.7 kB / 0.9552 GB, free: 3.633 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001288/0.2659, allocations: 322.8 kB / 0.9555 GB, free: 3.309 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001154/0.266, allocations: 27.97 kB / 0.9555 GB, free: 3.281 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001215/0.2661, allocations: 51.41 kB / 0.9555 GB, free: 3.219 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002226/0.2663, allocations: 66.5 kB / 0.9556 GB, free: 3.145 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.255e-06/0.2664, allocations: 4 kB / 0.9556 GB, free: 3.141 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002817/0.2666, allocations: 101.4 kB / 0.9557 GB, free: 3.035 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.558e-05/0.2667, allocations: 4 kB / 0.9557 GB, free: 3.031 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.773e-06/0.2667, allocations: 4 kB / 0.9557 GB, free: 3.027 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.565e-05/0.2667, allocations: 3.938 kB / 0.9557 GB, free: 3.023 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001162/0.2668, allocations: 11.98 kB / 0.9557 GB, free: 3.012 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.992e-06/0.2668, allocations: 4.094 kB / 0.9557 GB, free: 3.008 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.27e-05/0.2669, allocations: 12.27 kB / 0.9557 GB, free: 2.996 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.002e-05/0.2669, allocations: 0 / 0.9557 GB, free: 2.996 MB / 0.7325 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.0001173/0.2671, allocations: 135.7 kB / 0.9559 GB, free: 2.855 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.394e-05/0.2671, allocations: 19.8 kB / 0.9559 GB, free: 2.836 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.629e-05/0.2672, allocations: 21.23 kB / 0.9559 GB, free: 2.82 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.783e-06/0.2672, allocations: 3.938 kB / 0.9559 GB, free: 2.816 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.2672, allocations: 0 / 0.9559 GB, free: 2.816 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-06/0.2672, allocations: 4 kB / 0.9559 GB, free: 2.812 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001961/0.2674, allocations: 209.6 kB / 0.9561 GB, free: 2.559 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.2674, allocations: 0 / 0.9561 GB, free: 2.559 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.002e-05/0.2675, allocations: 11.98 kB / 0.9561 GB, free: 2.547 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.867e-06/0.2675, allocations: 3.984 kB / 0.9561 GB, free: 2.543 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.022e-05/0.2675, allocations: 8 kB / 0.9561 GB, free: 2.535 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.2675, allocations: 3.938 kB / 0.9562 GB, free: 2.531 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.2675, allocations: 0 / 0.9562 GB, free: 2.531 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003146/0.2678, allocations: 132.7 kB / 0.9563 GB, free: 2.383 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 6.168e-05/0.2679, allocations: 92.86 kB / 0.9564 GB, free: 2.273 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.294e-05/0.2679, allocations: 0 / 0.9564 GB, free: 2.273 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.451e-05/0.268, allocations: 11.92 kB / 0.9564 GB, free: 2.262 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.715e-05/0.2681, allocations: 15.92 kB / 0.9564 GB, free: 2.246 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.102e-05/0.2681, allocations: 7.938 kB / 0.9564 GB, free: 2.238 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001685/0.2683, allocations: 188.5 kB / 0.9566 GB, free: 2.055 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2683, allocations: 4 kB / 0.9566 GB, free: 2.051 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002311/0.2685, allocations: 16 kB / 0.9566 GB, free: 2.035 MB / 0.7325 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.000242/0.2688, allocations: 127 kB / 0.9567 GB, free: 1.906 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002913/0.2691, allocations: 59.89 kB / 0.9568 GB, free: 1.848 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.2691, allocations: 0 / 0.9568 GB, free: 1.848 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.000112/0.2692, allocations: 23.97 kB / 0.9568 GB, free: 1.824 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003002/0.2695, allocations: 43.06 kB / 0.9568 GB, free: 1.785 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005767/0.2701, allocations: 306.2 kB / 0.9571 GB, free: 1.449 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003134/0.2704, allocations: 0.7273 MB / 0.9578 GB, free: 0.6953 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.492e-05/0.2705, allocations: 15.44 kB / 0.9579 GB, free: 0.6797 MB / 0.7325 GB Notification: Performance of SimCode: time 4.81e-07/0.2705, allocations: 0 / 0.9579 GB, free: 0.6797 MB / 0.7325 GB Notification: Performance of Templates: time 0.004345/0.2748, allocations: 2.118 MB / 0.9599 GB, free: 14.57 MB / 0.7481 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