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.001683/0.001683, allocations: 106.7 kB / 16.41 MB, free: 6.465 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.001772/0.001772, allocations: 187 kB / 17.34 MB, free: 5.723 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.4/1.4, allocations: 222.9 MB / 241 MB, free: 15.09 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.563/2.563, allocations: 390.2 MB / 0.6655 GB, free: 0.6562 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001524/0.001524, allocations: 64.14 kB / 0.9515 GB, free: 7.672 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8087/0.8103, allocations: 140.4 MB / 1.089 GB, free: 5.523 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.00276/0.8131, allocations: 1.64 MB / 1.09 GB, free: 4.395 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0008574/0.814, allocations: 0.538 MB / 1.091 GB, free: 4.016 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.18e-05/0.8141, allocations: 6.75 kB / 1.091 GB, free: 4.012 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.000172/0.8143, allocations: 24.48 kB / 1.091 GB, free: 3.996 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0002408/0.8145, allocations: 64.16 kB / 1.091 GB, free: 3.957 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.00016/0.8147, allocations: 65.78 kB / 1.091 GB, free: 3.926 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002044/0.8149, allocations: 126.4 kB / 1.091 GB, free: 3.875 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001524/0.815, allocations: 55.8 kB / 1.091 GB, free: 3.84 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001207/0.8152, allocations: 54.23 kB / 1.091 GB, free: 3.816 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001213/0.8153, allocations: 67.41 kB / 1.091 GB, free: 3.781 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.988e-05/0.8153, allocations: 7.281 kB / 1.091 GB, free: 3.781 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 6.946e-05/0.8154, allocations: 26.23 kB / 1.091 GB, free: 3.773 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 9.333e-05/0.8155, allocations: 44.06 kB / 1.091 GB, free: 3.754 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 7.134e-05/0.8156, allocations: 60.47 kB / 1.091 GB, free: 3.711 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002166/0.8158, allocations: 147.5 kB / 1.091 GB, free: 3.648 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.8158, allocations: 0.9688 kB / 1.091 GB, free: 3.648 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.563e-06/0.8158, allocations: 0 / 1.091 GB, free: 3.648 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.006e-05/0.8158, allocations: 0 / 1.091 GB, free: 3.648 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.000557/0.8164, allocations: 460.8 kB / 1.092 GB, free: 3.227 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.423e-05/0.8165, allocations: 13.88 kB / 1.092 GB, free: 3.223 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.293e-05/0.8165, allocations: 22.08 kB / 1.092 GB, free: 3.211 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002707/0.8168, allocations: 242.3 kB / 1.092 GB, free: 2.973 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.145e-05/0.8168, allocations: 3.812 kB / 1.092 GB, free: 2.973 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.83e-05/0.8168, allocations: 11.61 kB / 1.092 GB, free: 2.965 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002939/0.8171, allocations: 107.2 kB / 1.092 GB, free: 2.914 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.8171, allocations: 4 kB / 1.092 GB, free: 2.91 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.444e-05/0.8172, allocations: 5.562 kB / 1.092 GB, free: 2.906 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.375e-06/0.8172, allocations: 1.438 kB / 1.092 GB, free: 2.906 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002622/0.8174, allocations: 67.56 kB / 1.092 GB, free: 2.891 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005408/0.818, allocations: 377.2 kB / 1.093 GB, free: 2.578 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001417/0.8182, allocations: 47.11 kB / 1.093 GB, free: 2.543 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001129/0.8183, allocations: 33.03 kB / 1.093 GB, free: 2.527 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.596e-05/0.8183, allocations: 1.109 kB / 1.093 GB, free: 2.527 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002156/0.8185, allocations: 96.25 kB / 1.093 GB, free: 2.453 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.102e-06/0.8185, allocations: 0.7188 kB / 1.093 GB, free: 2.453 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0004436/0.819, allocations: 126.6 kB / 1.093 GB, free: 2.395 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.757e-05/0.819, allocations: 78.61 kB / 1.093 GB, free: 2.301 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000257/0.8193, allocations: 254.8 kB / 1.093 GB, free: 2.152 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.288e-05/0.8193, allocations: 26.48 kB / 1.093 GB, free: 2.121 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.901e-05/0.8194, allocations: 136 kB / 1.093 GB, free: 2 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.616e-05/0.8194, allocations: 5.594 kB / 1.093 GB, free: 1.996 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.431e-05/0.8194, allocations: 13.66 kB / 1.093 GB, free: 1.98 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.988e-05/0.8195, allocations: 333.2 kB / 1.094 GB, free: 1.656 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001154/0.8196, allocations: 24.09 kB / 1.094 GB, free: 1.652 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001151/0.8197, allocations: 51.17 kB / 1.094 GB, free: 1.613 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002131/0.82, allocations: 69.52 kB / 1.094 GB, free: 1.578 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.82, allocations: 0 / 1.094 GB, free: 1.578 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002794/0.8202, allocations: 105.9 kB / 1.094 GB, free: 1.523 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.553e-05/0.8203, allocations: 5.344 kB / 1.094 GB, free: 1.523 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.8203, allocations: 6.016 kB / 1.094 GB, free: 1.52 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.399e-05/0.8203, allocations: 5.156 kB / 1.094 GB, free: 1.516 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001121/0.8204, allocations: 11.69 kB / 1.094 GB, free: 1.516 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.691e-06/0.8204, allocations: 0.6875 kB / 1.094 GB, free: 1.516 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.591e-05/0.8205, allocations: 19.62 kB / 1.094 GB, free: 1.508 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.707e-06/0.8205, allocations: 2 kB / 1.094 GB, free: 1.508 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.039e-05/0.8206, allocations: 135.7 kB / 1.094 GB, free: 1.379 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.968e-05/0.8207, allocations: 20.11 kB / 1.094 GB, free: 1.367 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.518e-05/0.8207, allocations: 17.75 kB / 1.094 GB, free: 1.359 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.895e-06/0.8207, allocations: 5 kB / 1.094 GB, free: 1.355 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.8207, allocations: 0.7969 kB / 1.094 GB, free: 1.355 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.307e-06/0.8207, allocations: 1.094 kB / 1.094 GB, free: 1.355 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001401/0.8209, allocations: 217.2 kB / 1.094 GB, free: 1.145 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.093e-06/0.8209, allocations: 4 kB / 1.094 GB, free: 1.141 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.997e-05/0.821, allocations: 11.02 kB / 1.094 GB, free: 1.141 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.821, allocations: 0.875 kB / 1.094 GB, free: 1.141 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.906e-06/0.821, allocations: 5.656 kB / 1.094 GB, free: 1.137 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.821, allocations: 3.938 kB / 1.094 GB, free: 1.133 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.821, allocations: 0.9844 kB / 1.094 GB, free: 1.133 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002717/0.8213, allocations: 121.3 kB / 1.095 GB, free: 1.051 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.192e-05/0.8213, allocations: 93.42 kB / 1.095 GB, free: 0.9453 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.983e-05/0.8214, allocations: 1.266 kB / 1.095 GB, free: 0.9453 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.381e-05/0.8215, allocations: 13.92 kB / 1.095 GB, free: 0.9414 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.602e-05/0.8215, allocations: 12.06 kB / 1.095 GB, free: 0.9336 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.342e-05/0.8215, allocations: 5.453 kB / 1.095 GB, free: 0.9336 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001706/0.8217, allocations: 190.5 kB / 1.095 GB, free: 0.8242 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8217, allocations: 0.875 kB / 1.095 GB, free: 0.8242 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002305/0.822, allocations: 22.27 kB / 1.095 GB, free: 0.8203 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.000218/0.8222, allocations: 129 kB / 1.095 GB, free: 0.7188 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.000301/0.8225, allocations: 54.72 kB / 1.095 GB, free: 0.7109 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.8225, allocations: 0 / 1.095 GB, free: 0.7109 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001241/0.8226, allocations: 32.91 kB / 1.095 GB, free: 0.7031 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000316/0.823, allocations: 44.66 kB / 1.095 GB, free: 0.6875 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005338/0.8235, allocations: 312.2 kB / 1.095 GB, free: 476 kB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002547/0.8238, allocations: 0.7275 MB / 1.096 GB, free: 15.76 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.552e-05/0.8238, allocations: 15.53 kB / 1.096 GB, free: 15.75 MB / 0.8731 GB Notification: Performance of SimCode: time 2.1e-07/0.8238, allocations: 0 / 1.096 GB, free: 15.75 MB / 0.8731 GB Notification: Performance of Templates: time 0.004835/0.8287, allocations: 2.12 MB / 1.098 GB, free: 15.51 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