Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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(IBPSA.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter") translateModel(IBPSA.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.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.001391/0.001391, allocations: 110.2 kB / 17.08 MB, free: 5.988 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.001111/0.001111, allocations: 195 kB / 18.01 MB, free: 5.074 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.318/1.318, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7566/0.7566, allocations: 115.3 MB / 407.2 MB, free: 6.195 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001243, allocations: 63.22 kB / 0.5583 GB, free: 32.29 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1298/0.1311, allocations: 76.19 MB / 0.6327 GB, free: 4.434 MB / 478.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.IO.Files.Examples.JSONWriter): time 0.003176/0.1343, allocations: 1.622 MB / 0.6343 GB, free: 2.797 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.001022/0.1354, allocations: 0.5378 MB / 0.6348 GB, free: 2.254 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001199/0.1355, allocations: 7.938 kB / 0.6348 GB, free: 2.246 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001886/0.1357, allocations: 23.8 kB / 0.6349 GB, free: 2.223 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002843/0.136, allocations: 67.67 kB / 0.6349 GB, free: 2.156 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001879/0.1362, allocations: 63.84 kB / 0.635 GB, free: 2.094 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002004/0.1364, allocations: 127.6 kB / 0.6351 GB, free: 1.969 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001678/0.1366, allocations: 65.28 kB / 0.6352 GB, free: 1.902 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000131/0.1368, allocations: 51.77 kB / 0.6352 GB, free: 1.852 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000118/0.1369, allocations: 63.7 kB / 0.6353 GB, free: 1.789 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 3.038e-05/0.1369, allocations: 8 kB / 0.6353 GB, free: 1.781 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.11e-05/0.137, allocations: 23.98 kB / 0.6353 GB, free: 1.758 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 9.002e-05/0.1371, allocations: 47.83 kB / 0.6353 GB, free: 1.711 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 7.244e-05/0.1372, allocations: 59.55 kB / 0.6354 GB, free: 1.652 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002125/0.1374, allocations: 147.4 kB / 0.6355 GB, free: 1.508 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.1374, allocations: 0 / 0.6355 GB, free: 1.508 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.011e-06/0.1374, allocations: 0 / 0.6355 GB, free: 1.508 MB / 478.1 MB Notification: Performance of Transformations before backend: time 7.835e-06/0.1374, allocations: 4 kB / 0.6356 GB, free: 1.504 MB / 478.1 MB 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.0006485/0.1381, allocations: 470.5 kB / 0.636 GB, free: 0.9961 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.028e-05/0.1381, allocations: 12.03 kB / 0.636 GB, free: 0.9844 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.407e-05/0.1382, allocations: 16.75 kB / 0.636 GB, free: 0.9688 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003723/0.1386, allocations: 240.8 kB / 0.6363 GB, free: 0.6914 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.43e-05/0.1386, allocations: 8.375 kB / 0.6363 GB, free: 0.6836 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.882e-05/0.1386, allocations: 8.375 kB / 0.6363 GB, free: 0.6758 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003137/0.1389, allocations: 102 kB / 0.6364 GB, free: 0.5703 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.031e-05/0.139, allocations: 0 / 0.6364 GB, free: 0.5703 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.188e-05/0.139, allocations: 8 kB / 0.6364 GB, free: 0.5625 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.773e-06/0.139, allocations: 3.938 kB / 0.6364 GB, free: 0.5586 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002385/0.1393, allocations: 63.94 kB / 0.6364 GB, free: 0.4961 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006394/0.1399, allocations: 384.3 kB / 0.6368 GB, free: 72 kB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001522/0.1401, allocations: 38.55 kB / 0.6368 GB, free: 24 kB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001327/0.1402, allocations: 36.95 kB / 0.6369 GB, free: 15.98 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.707e-05/0.1402, allocations: 0 / 0.6369 GB, free: 15.98 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002201/0.1405, allocations: 93.02 kB / 0.637 GB, free: 15.88 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.423e-06/0.1405, allocations: 0 / 0.637 GB, free: 15.88 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.000451/0.1409, allocations: 129.5 kB / 0.6371 GB, free: 15.74 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.115e-05/0.141, allocations: 77.11 kB / 0.6372 GB, free: 15.65 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002548/0.1412, allocations: 253 kB / 0.6374 GB, free: 15.39 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.858e-05/0.1413, allocations: 25.7 kB / 0.6374 GB, free: 15.36 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.289e-05/0.1414, allocations: 136 kB / 0.6376 GB, free: 15.22 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.134e-05/0.1414, allocations: 11.89 kB / 0.6376 GB, free: 15.21 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.817e-05/0.1414, allocations: 13.72 kB / 0.6376 GB, free: 15.19 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001314/0.1416, allocations: 334.8 kB / 0.6379 GB, free: 14.86 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000109/0.1417, allocations: 19.98 kB / 0.6379 GB, free: 14.84 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001185/0.1418, allocations: 51.39 kB / 0.638 GB, free: 14.77 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002143/0.1421, allocations: 78.48 kB / 0.638 GB, free: 14.69 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.1421, allocations: 0 / 0.638 GB, free: 14.69 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002978/0.1424, allocations: 105.4 kB / 0.6381 GB, free: 14.58 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.62e-05/0.1424, allocations: 11.94 kB / 0.6382 GB, free: 14.57 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.1424, allocations: 0 / 0.6382 GB, free: 14.57 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.544e-05/0.1424, allocations: 3.938 kB / 0.6382 GB, free: 14.56 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001105/0.1425, allocations: 11.98 kB / 0.6382 GB, free: 14.55 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.522e-06/0.1425, allocations: 4 kB / 0.6382 GB, free: 14.55 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.393e-05/0.1426, allocations: 11.89 kB / 0.6382 GB, free: 14.54 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.018e-05/0.1427, allocations: 7.938 kB / 0.6382 GB, free: 14.53 MB / 494.1 MB 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.0001131/0.1428, allocations: 133.8 kB / 0.6383 GB, free: 14.39 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.089e-05/0.1428, allocations: 15.81 kB / 0.6383 GB, free: 14.37 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.12e-05/0.1429, allocations: 21.23 kB / 0.6384 GB, free: 14.34 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.1429, allocations: 3.938 kB / 0.6384 GB, free: 14.34 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.616e-06/0.1429, allocations: 0 / 0.6384 GB, free: 14.34 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.1429, allocations: 0 / 0.6384 GB, free: 14.34 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001719/0.1431, allocations: 213.6 kB / 0.6386 GB, free: 14.08 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.1431, allocations: 0 / 0.6386 GB, free: 14.08 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.377e-05/0.1432, allocations: 11.98 kB / 0.6386 GB, free: 14.07 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.1432, allocations: 3.938 kB / 0.6386 GB, free: 14.07 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.574e-06/0.1432, allocations: 4 kB / 0.6386 GB, free: 14.06 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.387e-06/0.1432, allocations: 3.938 kB / 0.6386 GB, free: 14.06 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1432, allocations: 0 / 0.6386 GB, free: 14.06 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002913/0.1435, allocations: 128.8 kB / 0.6387 GB, free: 13.91 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.952e-05/0.1436, allocations: 88.92 kB / 0.6388 GB, free: 13.81 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.195e-05/0.1436, allocations: 0 / 0.6388 GB, free: 13.81 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.77e-05/0.1437, allocations: 19.92 kB / 0.6388 GB, free: 13.79 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.09e-05/0.1437, allocations: 0 / 0.6388 GB, free: 13.79 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.352e-05/0.1438, allocations: 7.984 kB / 0.6388 GB, free: 13.78 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001663/0.1439, allocations: 188.5 kB / 0.639 GB, free: 13.6 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1439, allocations: 0 / 0.639 GB, free: 13.6 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002265/0.1442, allocations: 27.89 kB / 0.639 GB, free: 13.57 MB / 494.1 MB 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.0002418/0.1444, allocations: 119 kB / 0.6391 GB, free: 13.45 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002808/0.1447, allocations: 55.88 kB / 0.6392 GB, free: 13.39 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.1447, allocations: 0 / 0.6392 GB, free: 13.39 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001143/0.1448, allocations: 32.16 kB / 0.6392 GB, free: 13.36 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003042/0.1452, allocations: 49.28 kB / 0.6393 GB, free: 13.32 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005466/0.1457, allocations: 310 kB / 0.6396 GB, free: 12.99 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002698/0.146, allocations: 0.7197 MB / 0.6403 GB, free: 12.24 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.637e-05/0.1461, allocations: 19.42 kB / 0.6403 GB, free: 12.23 MB / 494.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1461, allocations: 4 kB / 0.6403 GB, free: 12.22 MB / 494.1 MB Notification: Performance of Templates: time 0.004322/0.1504, allocations: 2.135 MB / 0.6424 GB, free: 10.1 MB / 494.1 MB make -j1 -f IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.makefile make -j1 -f IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/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/IBPSA 4.0.0-master/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppIBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.o OMCppIBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.cpp In file included from OMCppIBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.cpp:28: ./OMCppIBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/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: *** [: OMCppIBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.o] Error 1