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.001394/0.001401, allocations: 119.8 kB / 17.09 MB, free: 5.992 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.001613/0.001613, allocations: 196.6 kB / 18.02 MB, free: 5.066 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.383/1.383, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7629/0.7629, allocations: 115.3 MB / 407.2 MB, free: 6.137 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001318/0.001318, allocations: 64.56 kB / 0.5583 GB, free: 32.23 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1471/0.1484, allocations: 76.18 MB / 0.6327 GB, free: 4.406 MB / 478.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.IO.Files.Examples.JSONWriter): time 0.00331/0.1518, allocations: 1.614 MB / 0.6343 GB, free: 2.777 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.001108/0.1529, allocations: 0.5417 MB / 0.6348 GB, free: 2.23 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001346/0.1531, allocations: 7.938 kB / 0.6348 GB, free: 2.223 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002162/0.1533, allocations: 27.78 kB / 0.6349 GB, free: 2.195 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003445/0.1537, allocations: 71.61 kB / 0.6349 GB, free: 2.125 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002056/0.1539, allocations: 63.84 kB / 0.635 GB, free: 2.062 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002528/0.1541, allocations: 127.6 kB / 0.6351 GB, free: 1.938 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001868/0.1543, allocations: 53.41 kB / 0.6352 GB, free: 1.883 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001828/0.1545, allocations: 55.7 kB / 0.6352 GB, free: 1.828 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001576/0.1547, allocations: 71.69 kB / 0.6353 GB, free: 1.758 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 3.143e-05/0.1547, allocations: 8 kB / 0.6353 GB, free: 1.75 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.69e-05/0.1548, allocations: 23.98 kB / 0.6353 GB, free: 1.727 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001214/0.155, allocations: 43.84 kB / 0.6354 GB, free: 1.684 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 7.79e-05/0.155, allocations: 63.53 kB / 0.6354 GB, free: 1.621 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002512/0.1553, allocations: 143.4 kB / 0.6356 GB, free: 1.48 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.1553, allocations: 0 / 0.6356 GB, free: 1.48 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1553, allocations: 4 kB / 0.6356 GB, free: 1.477 MB / 478.1 MB Notification: Performance of Transformations before backend: time 8.987e-06/0.1553, allocations: 0 / 0.6356 GB, free: 1.477 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.0007441/0.1561, allocations: 474.5 kB / 0.636 GB, free: 0.9648 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.134e-05/0.1561, allocations: 12.03 kB / 0.636 GB, free: 0.9531 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.962e-05/0.1562, allocations: 16.75 kB / 0.636 GB, free: 0.9375 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003822/0.1566, allocations: 232.9 kB / 0.6363 GB, free: 0.668 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.537e-05/0.1566, allocations: 8.375 kB / 0.6363 GB, free: 0.6602 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.459e-05/0.1566, allocations: 8.375 kB / 0.6363 GB, free: 0.6523 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003052/0.157, allocations: 106 kB / 0.6364 GB, free: 0.543 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/0.157, allocations: 0 / 0.6364 GB, free: 0.543 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.066e-05/0.157, allocations: 8 kB / 0.6364 GB, free: 0.5352 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.157, allocations: 0 / 0.6364 GB, free: 0.5352 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002349/0.1573, allocations: 63.88 kB / 0.6364 GB, free: 484 kB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006461/0.1579, allocations: 392.4 kB / 0.6368 GB, free: 40 kB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001552/0.1581, allocations: 38.5 kB / 0.6369 GB, free: 15.99 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001156/0.1582, allocations: 32.89 kB / 0.6369 GB, free: 15.96 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.371e-05/0.1582, allocations: 0 / 0.6369 GB, free: 15.96 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002465/0.1585, allocations: 97.08 kB / 0.637 GB, free: 15.84 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.573e-06/0.1585, allocations: 0 / 0.637 GB, free: 15.84 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0004626/0.159, allocations: 129.2 kB / 0.6371 GB, free: 15.71 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.259e-05/0.159, allocations: 81.09 kB / 0.6372 GB, free: 15.61 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002701/0.1593, allocations: 253 kB / 0.6374 GB, free: 15.36 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.191e-05/0.1593, allocations: 25.7 kB / 0.6374 GB, free: 15.32 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001002/0.1595, allocations: 136 kB / 0.6376 GB, free: 15.19 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.886e-05/0.1595, allocations: 7.906 kB / 0.6376 GB, free: 15.18 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.064e-05/0.1595, allocations: 13.72 kB / 0.6376 GB, free: 15.16 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001545/0.1597, allocations: 330.8 kB / 0.6379 GB, free: 14.83 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001129/0.1598, allocations: 19.98 kB / 0.6379 GB, free: 14.81 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001238/0.1599, allocations: 51.41 kB / 0.638 GB, free: 14.75 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002338/0.1602, allocations: 74.45 kB / 0.638 GB, free: 14.66 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.1602, allocations: 4.031 kB / 0.6381 GB, free: 14.66 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002964/0.1605, allocations: 101.4 kB / 0.6381 GB, free: 14.55 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.8e-05/0.1605, allocations: 9.562 kB / 0.6382 GB, free: 14.55 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.1605, allocations: 3.984 kB / 0.6382 GB, free: 14.54 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.4e-05/0.1606, allocations: 3.938 kB / 0.6382 GB, free: 14.54 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001192/0.1607, allocations: 11.98 kB / 0.6382 GB, free: 14.53 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.975e-06/0.1607, allocations: 8.094 kB / 0.6382 GB, free: 14.52 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001006/0.1608, allocations: 12.17 kB / 0.6382 GB, free: 14.51 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.246e-05/0.1608, allocations: 4 kB / 0.6382 GB, free: 14.5 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.0001327/0.161, allocations: 133.7 kB / 0.6383 GB, free: 14.36 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.632e-05/0.161, allocations: 19.8 kB / 0.6383 GB, free: 14.34 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.958e-05/0.1611, allocations: 21.23 kB / 0.6384 GB, free: 14.32 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.1611, allocations: 3.938 kB / 0.6384 GB, free: 14.31 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.1611, allocations: 0 / 0.6384 GB, free: 14.31 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.1611, allocations: 4 kB / 0.6384 GB, free: 14.31 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001986/0.1613, allocations: 213.6 kB / 0.6386 GB, free: 14.05 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.1613, allocations: 0 / 0.6386 GB, free: 14.05 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.342e-05/0.1614, allocations: 11.98 kB / 0.6386 GB, free: 14.04 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.7e-06/0.1614, allocations: 0 / 0.6386 GB, free: 14.04 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.977e-06/0.1614, allocations: 3.938 kB / 0.6386 GB, free: 14.04 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.629e-06/0.1614, allocations: 3.938 kB / 0.6386 GB, free: 14.03 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.1614, allocations: 0 / 0.6386 GB, free: 14.03 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003103/0.1617, allocations: 132.8 kB / 0.6387 GB, free: 13.88 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.488e-05/0.1618, allocations: 88.92 kB / 0.6388 GB, free: 13.78 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.482e-05/0.1618, allocations: 0 / 0.6388 GB, free: 13.78 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.93e-05/0.1619, allocations: 15.92 kB / 0.6388 GB, free: 13.76 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.291e-05/0.162, allocations: 0 / 0.6388 GB, free: 13.76 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.658e-05/0.162, allocations: 7.984 kB / 0.6388 GB, free: 13.75 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001742/0.1622, allocations: 188.5 kB / 0.639 GB, free: 13.57 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1622, allocations: 4 kB / 0.639 GB, free: 13.57 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002321/0.1624, allocations: 27.89 kB / 0.639 GB, free: 13.54 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.0002534/0.1627, allocations: 117.9 kB / 0.6392 GB, free: 13.42 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0003001/0.163, allocations: 55.94 kB / 0.6392 GB, free: 13.36 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.746e-06/0.163, allocations: 3.938 kB / 0.6392 GB, free: 13.36 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001167/0.1631, allocations: 27.97 kB / 0.6392 GB, free: 13.33 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003236/0.1635, allocations: 46.53 kB / 0.6393 GB, free: 13.29 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006234/0.1641, allocations: 306.1 kB / 0.6396 GB, free: 12.96 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003218/0.1645, allocations: 0.7199 MB / 0.6403 GB, free: 12.21 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.831e-05/0.1645, allocations: 19.42 kB / 0.6403 GB, free: 12.2 MB / 494.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1645, allocations: 0 / 0.6403 GB, free: 12.2 MB / 494.1 MB Notification: Performance of Templates: time 0.004673/0.1692, allocations: 2.118 MB / 0.6424 GB, free: 10.09 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