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.004817/0.004817, allocations: 101.6 kB / 15.88 MB, free: 5.867 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.001231/0.001232, allocations: 191.1 kB / 16.79 MB, free: 5.809 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.297/1.297, allocations: 222.9 MB / 240.5 MB, free: 4.562 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.322/2.322, allocations: 390.2 MB / 0.6649 GB, free: 0.5781 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001546/0.001546, allocations: 63.89 kB / 0.8125 GB, free: 14.88 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7313/0.7329, allocations: 140.4 MB / 0.9496 GB, free: 9.148 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002637/0.7355, allocations: 1.693 MB / 0.9512 GB, free: 7.824 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007435/0.7363, allocations: 0.5337 MB / 0.9517 GB, free: 7.398 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.987e-05/0.7364, allocations: 2.844 kB / 0.9518 GB, free: 7.398 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001674/0.7366, allocations: 35.75 kB / 0.9518 GB, free: 7.367 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001989/0.7368, allocations: 55.5 kB / 0.9518 GB, free: 7.332 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001226/0.7369, allocations: 56.94 kB / 0.9519 GB, free: 7.293 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001583/0.7371, allocations: 124.8 kB / 0.952 GB, free: 7.223 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001472/0.7372, allocations: 61.2 kB / 0.9521 GB, free: 7.176 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001036/0.7373, allocations: 49.39 kB / 0.9521 GB, free: 7.148 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.387e-05/0.7374, allocations: 58.75 kB / 0.9522 GB, free: 7.109 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.528e-05/0.7375, allocations: 5.625 kB / 0.9522 GB, free: 7.109 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.523e-05/0.7375, allocations: 17.92 kB / 0.9522 GB, free: 7.105 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.229e-05/0.7376, allocations: 44.33 kB / 0.9522 GB, free: 7.078 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.92e-05/0.7377, allocations: 55.42 kB / 0.9523 GB, free: 7.035 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001261/0.7378, allocations: 104.2 kB / 0.9524 GB, free: 6.965 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.7378, allocations: 0 / 0.9524 GB, free: 6.965 MB / 0.7169 GB Notification: Performance of FrontEnd: time 6.91e-07/0.7378, allocations: 4 kB / 0.9524 GB, free: 6.961 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 9.798e-06/0.7378, allocations: 0 / 0.9524 GB, free: 6.961 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.0005151/0.7384, allocations: 470.9 kB / 0.9528 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.56e-05/0.7384, allocations: 8.812 kB / 0.9529 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.018e-05/0.7385, allocations: 21.69 kB / 0.9529 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001869/0.7387, allocations: 233.5 kB / 0.9531 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.117e-06/0.7387, allocations: 7.719 kB / 0.9531 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.645e-05/0.7387, allocations: 7.969 kB / 0.9531 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002594/0.739, allocations: 112.3 kB / 0.9532 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.625e-06/0.739, allocations: 0 / 0.9532 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.43e-05/0.739, allocations: 5.188 kB / 0.9532 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.739, allocations: 2.25 kB / 0.9532 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002123/0.7392, allocations: 58.72 kB / 0.9533 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004817/0.7397, allocations: 385.3 kB / 0.9536 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001247/0.7398, allocations: 40.36 kB / 0.9537 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.633e-05/0.7399, allocations: 30.02 kB / 0.9537 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.57e-05/0.74, allocations: 5 kB / 0.9537 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002361/0.7402, allocations: 97.58 kB / 0.9538 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 9.12e-07/0.7402, allocations: 1.094 kB / 0.9538 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0004005/0.7406, allocations: 123.1 kB / 0.9539 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.793e-05/0.7407, allocations: 78.55 kB / 0.954 GB, free: 5.449 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002126/0.7409, allocations: 260.7 kB / 0.9543 GB, free: 5.273 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.318e-05/0.7409, allocations: 29.7 kB / 0.9543 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.927e-05/0.741, allocations: 125.8 kB / 0.9544 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.557e-05/0.741, allocations: 5.656 kB / 0.9544 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.195e-05/0.741, allocations: 16.53 kB / 0.9544 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.625e-05/0.7411, allocations: 327.1 kB / 0.9547 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001049/0.7412, allocations: 29.03 kB / 0.9548 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000102/0.7413, allocations: 47.72 kB / 0.9548 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001966/0.7415, allocations: 71.17 kB / 0.9549 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.7415, allocations: 3.938 kB / 0.9549 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000261/0.7418, allocations: 102.4 kB / 0.955 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.683e-05/0.7418, allocations: 15.08 kB / 0.955 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.7418, allocations: 1 kB / 0.955 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.342e-05/0.7418, allocations: 9.5 kB / 0.955 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001072/0.7419, allocations: 12.27 kB / 0.955 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.7419, allocations: 0 / 0.955 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.415e-05/0.742, allocations: 15.36 kB / 0.955 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.397e-06/0.742, allocations: 6.469 kB / 0.955 GB, free: 4.562 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 7.396e-05/0.7421, allocations: 135.1 kB / 0.9552 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.77e-05/0.7422, allocations: 16.22 kB / 0.9552 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.097e-05/0.7422, allocations: 19.22 kB / 0.9552 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.7422, allocations: 5.406 kB / 0.9552 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.7422, allocations: 0 / 0.9552 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.7422, allocations: 3.984 kB / 0.9552 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001171/0.7423, allocations: 212.4 kB / 0.9554 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.7423, allocations: 0 / 0.9554 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.9e-05/0.7424, allocations: 11.7 kB / 0.9554 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.7424, allocations: 4 kB / 0.9554 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.454e-06/0.7424, allocations: 0 / 0.9554 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/0.7424, allocations: 5.312 kB / 0.9554 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.7425, allocations: 0 / 0.9554 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002517/0.7427, allocations: 133 kB / 0.9556 GB, free: 4.055 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.822e-05/0.7427, allocations: 87.81 kB / 0.9556 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.305e-05/0.7428, allocations: 1.344 kB / 0.9556 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.079e-05/0.7429, allocations: 13.3 kB / 0.9557 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.527e-05/0.7429, allocations: 6.438 kB / 0.9557 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.077e-05/0.7429, allocations: 12.33 kB / 0.9557 GB, free: 3.934 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001424/0.7431, allocations: 183.9 kB / 0.9558 GB, free: 3.812 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7431, allocations: 0 / 0.9558 GB, free: 3.812 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002179/0.7433, allocations: 21.62 kB / 0.9559 GB, free: 3.809 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.0001904/0.7435, allocations: 126.6 kB / 0.956 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002579/0.7438, allocations: 55.38 kB / 0.956 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.7438, allocations: 0 / 0.956 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001039/0.7439, allocations: 29.03 kB / 0.9561 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002961/0.7442, allocations: 41.91 kB / 0.9561 GB, free: 3.648 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004625/0.7447, allocations: 350.6 kB / 0.9564 GB, free: 3.363 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000123/0.7448, allocations: 0.7277 MB / 0.9572 GB, free: 2.641 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.709e-05/0.7448, allocations: 15.19 kB / 0.9572 GB, free: 2.629 MB / 0.7169 GB Notification: Performance of SimCode: time 2.31e-07/0.7449, allocations: 0 / 0.9572 GB, free: 2.629 MB / 0.7169 GB Notification: Performance of Templates: time 0.003756/0.7486, allocations: 2.102 MB / 0.9592 GB, free: 1.539 MB / 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