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.000862/0.000862, allocations: 90.42 kB / 16.67 MB, free: 6.594 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.0009225/0.0009225, allocations: 182.4 kB / 17.58 MB, free: 6.188 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.393/1.393, allocations: 223.3 MB / 241.6 MB, free: 208 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7179/0.7179, allocations: 115.5 MB / 408.2 MB, free: 7.062 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003647/0.0003648, allocations: 8 kB / 496.5 MB, free: 15.66 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.373/0.3734, allocations: 77.52 MB / 0.5606 GB, free: 36.18 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.IO.Files.Examples.JSONWriter): time 0.001871/0.3753, allocations: 1.346 MB / 0.5619 GB, free: 35.2 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008048/0.3762, allocations: 0.5221 MB / 0.5624 GB, free: 34.84 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.074e-05/0.3762, allocations: 3.812 kB / 0.5624 GB, free: 34.84 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001877/0.3764, allocations: 24.41 kB / 0.5624 GB, free: 34.82 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002318/0.3767, allocations: 55.84 kB / 0.5625 GB, free: 34.79 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001619/0.3769, allocations: 57.98 kB / 0.5625 GB, free: 34.76 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001842/0.377, allocations: 124.8 kB / 0.5627 GB, free: 34.71 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001661/0.3772, allocations: 51.61 kB / 0.5627 GB, free: 34.68 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001114/0.3773, allocations: 44.88 kB / 0.5627 GB, free: 34.66 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001221/0.3775, allocations: 54.92 kB / 0.5628 GB, free: 34.64 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.496e-05/0.3775, allocations: 3.094 kB / 0.5628 GB, free: 34.64 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.012e-05/0.3776, allocations: 14.14 kB / 0.5628 GB, free: 34.64 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 9.018e-05/0.3777, allocations: 35.31 kB / 0.5629 GB, free: 34.62 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 6.261e-05/0.3777, allocations: 79.91 kB / 0.5629 GB, free: 34.55 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001835/0.3779, allocations: 104.9 kB / 0.563 GB, free: 34.52 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.3779, allocations: 1.344 kB / 0.563 GB, free: 34.52 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.378, allocations: 0.5312 kB / 0.563 GB, free: 34.52 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.18e-06/0.378, allocations: 1.594 kB / 0.563 GB, free: 34.52 MB / 446.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.0005426/0.3785, allocations: 446.3 kB / 0.5635 GB, free: 34.11 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.786e-05/0.3786, allocations: 13.03 kB / 0.5635 GB, free: 34.11 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.15e-05/0.3786, allocations: 21.81 kB / 0.5635 GB, free: 34.1 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002184/0.3788, allocations: 233 kB / 0.5637 GB, free: 33.86 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.237e-05/0.3789, allocations: 9.031 kB / 0.5637 GB, free: 33.86 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.451e-05/0.3789, allocations: 3.188 kB / 0.5637 GB, free: 33.86 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002939/0.3792, allocations: 121 kB / 0.5638 GB, free: 33.8 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.658e-06/0.3792, allocations: 4.922 kB / 0.5638 GB, free: 33.8 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.181e-05/0.3792, allocations: 0 / 0.5638 GB, free: 33.8 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.993e-06/0.3792, allocations: 6.094 kB / 0.5639 GB, free: 33.8 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002543/0.3795, allocations: 81.78 kB / 0.5639 GB, free: 33.79 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005667/0.3801, allocations: 393.6 kB / 0.5643 GB, free: 33.46 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001437/0.3802, allocations: 49.2 kB / 0.5644 GB, free: 33.44 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001217/0.3804, allocations: 43.7 kB / 0.5644 GB, free: 33.42 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.257e-05/0.3804, allocations: 0 / 0.5644 GB, free: 33.42 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000273/0.3807, allocations: 102.8 kB / 0.5645 GB, free: 33.35 MB / 446.1 MB Notification: Performance of pre-optimization done (n=3): time 1.002e-06/0.3807, allocations: 0 / 0.5645 GB, free: 33.35 MB / 446.1 MB Notification: Performance of matching and sorting (n=3): time 0.0004879/0.3812, allocations: 145.9 kB / 0.5646 GB, free: 33.3 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.864e-05/0.3812, allocations: 83.72 kB / 0.5647 GB, free: 33.2 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000287/0.3815, allocations: 256.1 kB / 0.565 GB, free: 33.05 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.482e-05/0.3815, allocations: 27.05 kB / 0.565 GB, free: 33.02 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.596e-05/0.3816, allocations: 122.2 kB / 0.5651 GB, free: 32.91 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.381e-05/0.3816, allocations: 11.97 kB / 0.5651 GB, free: 32.9 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.267e-05/0.3817, allocations: 10.78 kB / 0.5651 GB, free: 32.89 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.723e-05/0.3817, allocations: 332.2 kB / 0.5654 GB, free: 32.56 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001235/0.3819, allocations: 30.33 kB / 0.5655 GB, free: 32.56 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001278/0.382, allocations: 56.5 kB / 0.5655 GB, free: 32.53 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002384/0.3823, allocations: 90.33 kB / 0.5656 GB, free: 32.49 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.3823, allocations: 1.375 kB / 0.5656 GB, free: 32.49 MB / 446.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002952/0.3826, allocations: 118.7 kB / 0.5657 GB, free: 32.44 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.784e-05/0.3826, allocations: 5.719 kB / 0.5657 GB, free: 32.44 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.3826, allocations: 5.641 kB / 0.5657 GB, free: 32.43 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.372e-05/0.3826, allocations: 4.875 kB / 0.5657 GB, free: 32.43 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001165/0.3827, allocations: 17.08 kB / 0.5657 GB, free: 32.43 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.861e-06/0.3828, allocations: 1.188 kB / 0.5658 GB, free: 32.43 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.934e-05/0.3829, allocations: 24.91 kB / 0.5658 GB, free: 32.42 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.005e-06/0.3829, allocations: 1.906 kB / 0.5658 GB, free: 32.42 MB / 446.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 9.289e-05/0.383, allocations: 127.6 kB / 0.5659 GB, free: 32.3 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.539e-05/0.383, allocations: 17.72 kB / 0.5659 GB, free: 32.29 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.274e-05/0.3831, allocations: 18.5 kB / 0.5659 GB, free: 32.29 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.3831, allocations: 4.5 kB / 0.5659 GB, free: 32.28 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.3831, allocations: 0.9375 kB / 0.5659 GB, free: 32.28 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.3831, allocations: 1.031 kB / 0.5659 GB, free: 32.28 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001738/0.3833, allocations: 217.1 kB / 0.5661 GB, free: 32.07 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/0.3833, allocations: 1.766 kB / 0.5661 GB, free: 32.07 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.911e-05/0.3834, allocations: 17.67 kB / 0.5662 GB, free: 32.07 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.3834, allocations: 3.938 kB / 0.5662 GB, free: 32.07 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.017e-05/0.3834, allocations: 1.688 kB / 0.5662 GB, free: 32.07 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.3834, allocations: 7.922 kB / 0.5662 GB, free: 32.06 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.704e-06/0.3834, allocations: 0.9062 kB / 0.5662 GB, free: 32.06 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003124/0.3837, allocations: 138.1 kB / 0.5663 GB, free: 31.98 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.239e-05/0.3838, allocations: 101 kB / 0.5664 GB, free: 31.87 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.366e-05/0.3838, allocations: 2.344 kB / 0.5664 GB, free: 31.87 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.505e-05/0.3839, allocations: 20.92 kB / 0.5664 GB, free: 31.86 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.698e-05/0.384, allocations: 4.703 kB / 0.5664 GB, free: 31.86 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.681e-05/0.384, allocations: 5.562 kB / 0.5664 GB, free: 31.86 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0002003/0.3842, allocations: 190.4 kB / 0.5666 GB, free: 31.75 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3842, allocations: 0 / 0.5666 GB, free: 31.75 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002283/0.3845, allocations: 18.41 kB / 0.5666 GB, free: 31.75 MB / 446.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.0002383/0.3847, allocations: 125.9 kB / 0.5668 GB, free: 31.65 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0003104/0.385, allocations: 75.34 kB / 0.5668 GB, free: 31.64 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.385, allocations: 1.094 kB / 0.5668 GB, free: 31.64 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001308/0.3852, allocations: 36.17 kB / 0.5669 GB, free: 31.64 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003395/0.3855, allocations: 48.34 kB / 0.5669 GB, free: 31.62 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005841/0.3861, allocations: 364.6 kB / 0.5673 GB, free: 31.36 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001845/0.3863, allocations: 0.7185 MB / 0.568 GB, free: 30.66 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.483e-05/0.3864, allocations: 20.05 kB / 0.568 GB, free: 30.65 MB / 446.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3864, allocations: 0 / 0.568 GB, free: 30.65 MB / 446.1 MB Notification: Performance of Templates: time 0.005075/0.3915, allocations: 2.074 MB / 0.57 GB, free: 30.48 MB / 446.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++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/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