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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001182/0.001182, allocations: 92.62 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001601/0.001601, allocations: 181.1 kB / 16.92 MB, free: 6.652 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.469/1.469, allocations: 223.3 MB / 241 MB, free: 5.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.414/2.414, allocations: 390.9 MB / 0.667 GB, free: 2.277 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0005173/0.0005176, allocations: 8 kB / 0.8166 GB, free: 13.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.787/0.7876, allocations: 142.4 MB / 0.9557 GB, free: 7.664 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002714/0.7903, allocations: 1.346 MB / 0.957 GB, free: 6.605 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001524/0.7919, allocations: 0.5314 MB / 0.9575 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002129/0.7921, allocations: 5.938 kB / 0.9576 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002793/0.7925, allocations: 25.55 kB / 0.9576 GB, free: 6.156 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0004111/0.7929, allocations: 55.34 kB / 0.9576 GB, free: 6.117 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002602/0.7932, allocations: 60.64 kB / 0.9577 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003526/0.7935, allocations: 121.8 kB / 0.9578 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002656/0.7938, allocations: 44.53 kB / 0.9578 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002269/0.794, allocations: 50.48 kB / 0.9579 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001806/0.7942, allocations: 52.83 kB / 0.9579 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.403e-05/0.7943, allocations: 3.406 kB / 0.9579 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001082/0.7944, allocations: 22.36 kB / 0.958 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001373/0.7946, allocations: 39.64 kB / 0.958 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001023/0.7947, allocations: 68.42 kB / 0.9581 GB, free: 5.812 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002617/0.795, allocations: 99.09 kB / 0.9582 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.795, allocations: 1 kB / 0.9582 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.435e-06/0.795, allocations: 0 / 0.9582 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.795e-06/0.795, allocations: 0 / 0.9582 GB, free: 5.746 MB / 0.7169 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.0009061/0.7959, allocations: 456.4 kB / 0.9586 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 6.693e-05/0.796, allocations: 9.625 kB / 0.9586 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001075/0.7961, allocations: 17.22 kB / 0.9586 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003764/0.7965, allocations: 238.6 kB / 0.9589 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.034e-05/0.7965, allocations: 2.594 kB / 0.9589 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.159e-05/0.7966, allocations: 12.34 kB / 0.9589 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004376/0.797, allocations: 122.6 kB / 0.959 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.184e-05/0.797, allocations: 3.984 kB / 0.959 GB, free: 4.953 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.676e-05/0.7971, allocations: 5.906 kB / 0.959 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.328e-06/0.7971, allocations: 1.938 kB / 0.959 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003705/0.7975, allocations: 80.25 kB / 0.9591 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008635/0.7984, allocations: 398.8 kB / 0.9595 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002119/0.7986, allocations: 47.72 kB / 0.9595 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001702/0.7988, allocations: 41.83 kB / 0.9595 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.737e-05/0.7988, allocations: 0 / 0.9595 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003341/0.7991, allocations: 109.3 kB / 0.9596 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.553e-06/0.7992, allocations: 0 / 0.9596 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0006788/0.7998, allocations: 152.4 kB / 0.9598 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.491e-05/0.7999, allocations: 77.11 kB / 0.9599 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003462/0.8003, allocations: 249 kB / 0.9601 GB, free: 4.047 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.817e-05/0.8003, allocations: 25.7 kB / 0.9601 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.971e-05/0.8004, allocations: 133.6 kB / 0.9603 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.509e-05/0.8004, allocations: 5.281 kB / 0.9603 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.22e-05/0.8005, allocations: 9.719 kB / 0.9603 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.299e-05/0.8005, allocations: 332.3 kB / 0.9606 GB, free: 3.543 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001756/0.8007, allocations: 31.22 kB / 0.9606 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001799/0.8009, allocations: 58.78 kB / 0.9607 GB, free: 3.484 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003504/0.8013, allocations: 93.11 kB / 0.9608 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.8013, allocations: 0 / 0.9608 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0004645/0.8018, allocations: 115 kB / 0.9609 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.337e-05/0.8018, allocations: 5.5 kB / 0.9609 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.8018, allocations: 1.375 kB / 0.9609 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.882e-05/0.8019, allocations: 5.312 kB / 0.9609 GB, free: 3.355 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001622/0.802, allocations: 18.98 kB / 0.9609 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.466e-06/0.8021, allocations: 1.375 kB / 0.9609 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001634/0.8022, allocations: 22.98 kB / 0.9609 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.283e-05/0.8022, allocations: 1.375 kB / 0.9609 GB, free: 3.336 MB / 0.7169 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.0001331/0.8024, allocations: 131.3 kB / 0.961 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.54e-05/0.8025, allocations: 23.97 kB / 0.9611 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.021e-05/0.8025, allocations: 20.11 kB / 0.9611 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.8025, allocations: 3.938 kB / 0.9611 GB, free: 3.18 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.8025, allocations: 1.375 kB / 0.9611 GB, free: 3.18 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.8026, allocations: 0 / 0.9611 GB, free: 3.18 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001994/0.8028, allocations: 215.7 kB / 0.9613 GB, free: 2.945 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.095e-06/0.8028, allocations: 288 / 0.9613 GB, free: 2.945 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001171/0.8029, allocations: 14.7 kB / 0.9613 GB, free: 2.941 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.566e-06/0.8029, allocations: 0 / 0.9613 GB, free: 2.941 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.045e-05/0.8029, allocations: 1.312 kB / 0.9613 GB, free: 2.941 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.416e-06/0.8029, allocations: 7.875 kB / 0.9613 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.948e-06/0.803, allocations: 1.375 kB / 0.9613 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004258/0.8034, allocations: 144.8 kB / 0.9615 GB, free: 2.824 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 5.613e-05/0.8035, allocations: 93.67 kB / 0.9616 GB, free: 2.719 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.364e-05/0.8035, allocations: 0.9062 kB / 0.9616 GB, free: 2.719 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001383/0.8037, allocations: 22.23 kB / 0.9616 GB, free: 2.707 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.507e-05/0.8037, allocations: 13.64 kB / 0.9616 GB, free: 2.695 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.367e-05/0.8038, allocations: 4.75 kB / 0.9616 GB, free: 2.695 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002414/0.804, allocations: 187.7 kB / 0.9618 GB, free: 2.57 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2.4e-07/0.804, allocations: 0 / 0.9618 GB, free: 2.57 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000439/0.8045, allocations: 21.22 kB / 0.9618 GB, free: 2.566 MB / 0.7169 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.0002809/0.8048, allocations: 116.2 kB / 0.9619 GB, free: 2.469 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004497/0.8052, allocations: 69.12 kB / 0.962 GB, free: 2.445 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 4.529e-06/0.8052, allocations: 4 kB / 0.962 GB, free: 2.441 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001953/0.8055, allocations: 31.95 kB / 0.962 GB, free: 2.434 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004801/0.8059, allocations: 44.52 kB / 0.962 GB, free: 2.41 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007666/0.8067, allocations: 362.1 kB / 0.9624 GB, free: 2.113 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002015/0.8069, allocations: 0.7214 MB / 0.9631 GB, free: 1.395 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.366e-05/0.807, allocations: 13.25 kB / 0.9631 GB, free: 1.387 MB / 0.7169 GB Notification: Performance of SimCode: time 5.11e-07/0.807, allocations: 0.9062 kB / 0.9631 GB, free: 1.387 MB / 0.7169 GB Notification: Performance of Templates: time 0.006617/0.8137, allocations: 2.097 MB / 0.9652 GB, free: 308 kB / 0.7169 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++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 9.1.2-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.2-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.2-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