Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001308/0.001308, allocations: 104.2 kB / 19.74 MB, free: 2.07 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00191/0.00191, allocations: 215.1 kB / 23.04 MB, free: 4.867 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.532/1.532, allocations: 230.6 MB / 256.8 MB, free: 7.773 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.279/3.279, allocations: 0.49 GB / 0.7959 GB, free: 35.41 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|ramp.startTime|const.y|cosine.y",fileNamePrefix="Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter") translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|ramp.startTime|const.y|cosine.y",fileNamePrefix="Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002068/0.002068, allocations: 68.38 kB / 1.155 GB, free: 25.14 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3682/0.3703, allocations: 176.1 MB / 1.327 GB, free: 0.9609 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003287/0.3736, allocations: 1.641 MB / 1.329 GB, free: 15.31 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.001136/0.3747, allocations: 0.5806 MB / 1.329 GB, free: 14.73 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.782e-05/0.3748, allocations: 7.938 kB / 1.329 GB, free: 14.72 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001856/0.375, allocations: 31.77 kB / 1.329 GB, free: 14.69 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0002774/0.3752, allocations: 64.44 kB / 1.329 GB, free: 14.62 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002289/0.3755, allocations: 83.83 kB / 1.329 GB, free: 14.54 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002235/0.3757, allocations: 139.5 kB / 1.33 GB, free: 14.41 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001574/0.3759, allocations: 29.61 kB / 1.33 GB, free: 14.37 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001627/0.376, allocations: 63.77 kB / 1.33 GB, free: 14.31 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001219/0.3761, allocations: 63.62 kB / 1.33 GB, free: 14.25 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.672e-05/0.3762, allocations: 8 kB / 1.33 GB, free: 14.24 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 7.519e-05/0.3762, allocations: 31.98 kB / 1.33 GB, free: 14.21 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001038/0.3763, allocations: 47.83 kB / 1.33 GB, free: 14.16 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 6.089e-05/0.3764, allocations: 39.73 kB / 1.33 GB, free: 14.12 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002429/0.3766, allocations: 151.2 kB / 1.33 GB, free: 13.97 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.3766, allocations: 0 / 1.33 GB, free: 13.97 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.212e-06/0.3766, allocations: 4 kB / 1.33 GB, free: 13.97 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.602e-06/0.3767, allocations: 0 / 1.33 GB, free: 13.97 MB / 1.029 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.0006778/0.3773, allocations: 406.5 kB / 1.33 GB, free: 13.54 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.997e-05/0.3774, allocations: 8.031 kB / 1.33 GB, free: 13.54 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00017/0.3775, allocations: 28.83 kB / 1.33 GB, free: 13.51 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003435/0.3779, allocations: 189.8 kB / 1.331 GB, free: 13.3 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.605e-05/0.3779, allocations: 16.36 kB / 1.331 GB, free: 13.28 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.64e-05/0.3779, allocations: 4.375 kB / 1.331 GB, free: 13.28 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003264/0.3782, allocations: 159.6 kB / 1.331 GB, free: 13.11 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.045e-05/0.3783, allocations: 3.984 kB / 1.331 GB, free: 13.1 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.543e-05/0.3783, allocations: 8 kB / 1.331 GB, free: 13.09 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.3783, allocations: 0 / 1.331 GB, free: 13.09 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002322/0.3785, allocations: 67.94 kB / 1.331 GB, free: 13.03 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000556/0.3791, allocations: 304.3 kB / 1.331 GB, free: 12.7 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001516/0.3792, allocations: 38.48 kB / 1.331 GB, free: 12.65 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001121/0.3793, allocations: 32.89 kB / 1.331 GB, free: 12.62 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.626e-05/0.3793, allocations: 0 / 1.331 GB, free: 12.62 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002553/0.3796, allocations: 148.5 kB / 1.331 GB, free: 12.44 MB / 1.029 GB Notification: Performance of pre-optimization done (n=3): time 9.71e-07/0.3796, allocations: 4 kB / 1.331 GB, free: 12.44 MB / 1.029 GB Notification: Performance of matching and sorting (n=3): time 0.0004314/0.38, allocations: 117.5 kB / 1.332 GB, free: 12.32 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.758e-05/0.3801, allocations: 81.05 kB / 1.332 GB, free: 12.22 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002588/0.3803, allocations: 244 kB / 1.332 GB, free: 11.97 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.851e-05/0.3804, allocations: 33.69 kB / 1.332 GB, free: 11.93 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 8.589e-05/0.3805, allocations: 120.1 kB / 1.332 GB, free: 11.81 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.292e-05/0.3805, allocations: 19.88 kB / 1.332 GB, free: 11.79 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.946e-05/0.3805, allocations: 21.7 kB / 1.332 GB, free: 11.76 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.000156/0.3807, allocations: 326.8 kB / 1.332 GB, free: 11.43 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001113/0.3808, allocations: 23.97 kB / 1.332 GB, free: 11.41 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001469/0.3809, allocations: 77.05 kB / 1.332 GB, free: 11.32 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002262/0.3812, allocations: 74.44 kB / 1.332 GB, free: 11.23 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.3812, allocations: 0 / 1.332 GB, free: 11.23 MB / 1.029 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002762/0.3814, allocations: 101.5 kB / 1.333 GB, free: 11.13 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.637e-05/0.3815, allocations: 4 kB / 1.333 GB, free: 11.12 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.3815, allocations: 4 kB / 1.333 GB, free: 11.12 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.416e-05/0.3815, allocations: 0 / 1.333 GB, free: 11.12 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001089/0.3816, allocations: 16.08 kB / 1.333 GB, free: 11.11 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.255e-06/0.3816, allocations: 3.938 kB / 1.333 GB, free: 11.1 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.846e-05/0.3817, allocations: 19.94 kB / 1.333 GB, free: 11.08 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.035e-06/0.3817, allocations: 0 / 1.333 GB, free: 11.08 MB / 1.029 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.0001243/0.3818, allocations: 129.8 kB / 1.333 GB, free: 10.95 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.927e-05/0.3818, allocations: 15.91 kB / 1.333 GB, free: 10.93 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.747e-05/0.3819, allocations: 21.02 kB / 1.333 GB, free: 10.91 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.3819, allocations: 0 / 1.333 GB, free: 10.91 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.087e-06/0.3819, allocations: 3.938 kB / 1.333 GB, free: 10.91 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.3819, allocations: 4.219 kB / 1.333 GB, free: 10.9 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001563/0.3821, allocations: 157.3 kB / 1.333 GB, free: 10.72 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.3821, allocations: 0 / 1.333 GB, free: 10.72 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.632e-05/0.3821, allocations: 11.98 kB / 1.333 GB, free: 10.71 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.656e-06/0.3821, allocations: 3.984 kB / 1.333 GB, free: 10.7 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.725e-06/0.3821, allocations: 0 / 1.333 GB, free: 10.7 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.001e-06/0.3821, allocations: 0 / 1.333 GB, free: 10.7 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.3821, allocations: 0 / 1.333 GB, free: 10.7 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002876/0.3824, allocations: 120.9 kB / 1.333 GB, free: 10.57 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.38e-05/0.3825, allocations: 15.91 kB / 1.333 GB, free: 10.55 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.973e-05/0.3825, allocations: 0 / 1.333 GB, free: 10.55 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.11e-05/0.3826, allocations: 19.98 kB / 1.333 GB, free: 10.53 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.768e-05/0.3826, allocations: 7.922 kB / 1.333 GB, free: 10.52 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.075e-05/0.3826, allocations: 4 kB / 1.333 GB, free: 10.52 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001711/0.3828, allocations: 181.6 kB / 1.333 GB, free: 10.34 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3828, allocations: 0 / 1.333 GB, free: 10.34 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002327/0.383, allocations: 31.81 kB / 1.333 GB, free: 10.31 MB / 1.029 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.0002788/0.3833, allocations: 122.4 kB / 1.333 GB, free: 10.19 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002909/0.3836, allocations: 55.94 kB / 1.333 GB, free: 10.13 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.3836, allocations: 0 / 1.333 GB, free: 10.13 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001161/0.3837, allocations: 36.09 kB / 1.334 GB, free: 10.1 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000309/0.384, allocations: 37.69 kB / 1.334 GB, free: 10.06 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005903/0.3846, allocations: 318.4 kB / 1.334 GB, free: 9.715 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001308/0.3848, allocations: 110 kB / 1.334 GB, free: 9.586 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.183e-05/0.3848, allocations: 19.42 kB / 1.334 GB, free: 9.57 MB / 1.029 GB Notification: Performance of SimCode: time 3.01e-07/0.3848, allocations: 0 / 1.334 GB, free: 9.57 MB / 1.029 GB Notification: Performance of Templates: time 0.004466/0.3893, allocations: 2.122 MB / 1.336 GB, free: 7.457 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile [Timeout 300] make -j1 -f Buildings_12_Buildings.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 -DOMC_BUILD -DUSE_THREAD -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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 12.1.1-maint.12.x/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppBuildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.o OMCppBuildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.cpp In file included from OMCppBuildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.cpp:28: ./OMCppBuildings_12_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 12.1.1-maint.12.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_12_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.o] Error 1 [Calling os._exit(0), Time elapsed: 8.489885173970833] Failed to read output from testmodel.py, exit status != 0: 0.397576300194487 0.41208746300000004 0.032351897000000004 Calling exit ...