Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.00188/0.00188, allocations: 102.1 kB / 19.7 MB, free: 2.254 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.002563/0.002563, allocations: 218.7 kB / 23.01 MB, free: 5.125 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.706/1.706, allocations: 230.6 MB / 256.8 MB, free: 7.957 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.82/2.82, allocations: 476.7 MB / 0.7714 GB, free: 4.238 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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_11_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_11_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.0029/0.0029, allocations: 65.34 kB / 1.119 GB, free: 40.29 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3749/0.3778, allocations: 170 MB / 1.285 GB, free: 11.2 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003782/0.3816, allocations: 1.693 MB / 1.286 GB, free: 9.504 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001118/0.3827, allocations: 0.6212 MB / 1.287 GB, free: 8.879 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.136e-05/0.3828, allocations: 7.938 kB / 1.287 GB, free: 8.871 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001769/0.383, allocations: 31.78 kB / 1.287 GB, free: 8.84 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0002692/0.3833, allocations: 63.67 kB / 1.287 GB, free: 8.777 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002045/0.3835, allocations: 71.84 kB / 1.287 GB, free: 8.707 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002079/0.3837, allocations: 139.5 kB / 1.287 GB, free: 8.57 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000142/0.3838, allocations: 33.67 kB / 1.287 GB, free: 8.535 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001627/0.384, allocations: 67.77 kB / 1.287 GB, free: 8.469 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001149/0.3841, allocations: 59.7 kB / 1.287 GB, free: 8.41 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.392e-05/0.3841, allocations: 11.94 kB / 1.287 GB, free: 8.398 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 8.175e-05/0.3842, allocations: 31.97 kB / 1.287 GB, free: 8.367 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 9.013e-05/0.3843, allocations: 47.84 kB / 1.287 GB, free: 8.32 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 6.741e-05/0.3844, allocations: 63.53 kB / 1.287 GB, free: 8.258 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002401/0.3846, allocations: 151.2 kB / 1.288 GB, free: 8.109 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.3846, allocations: 0 / 1.288 GB, free: 8.109 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.122e-06/0.3846, allocations: 0 / 1.288 GB, free: 8.109 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.44e-06/0.3846, allocations: 4 kB / 1.288 GB, free: 8.105 MB / 0.9825 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.000653/0.3853, allocations: 401.3 kB / 1.288 GB, free: 7.684 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.398e-05/0.3853, allocations: 8.031 kB / 1.288 GB, free: 7.676 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001625/0.3855, allocations: 28.83 kB / 1.288 GB, free: 7.648 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003393/0.3858, allocations: 190 kB / 1.288 GB, free: 7.438 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.319e-05/0.3858, allocations: 8.375 kB / 1.288 GB, free: 7.43 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.275e-05/0.3858, allocations: 4.375 kB / 1.288 GB, free: 7.426 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002744/0.3861, allocations: 106 kB / 1.288 GB, free: 7.316 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.3861, allocations: 4 kB / 1.288 GB, free: 7.312 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.178e-05/0.3861, allocations: 0 / 1.288 GB, free: 7.312 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.767e-06/0.3861, allocations: 0 / 1.288 GB, free: 7.312 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002254/0.3864, allocations: 71.92 kB / 1.288 GB, free: 7.242 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006039/0.387, allocations: 339.7 kB / 1.289 GB, free: 6.867 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001371/0.3871, allocations: 42.55 kB / 1.289 GB, free: 6.816 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001058/0.3872, allocations: 28.83 kB / 1.289 GB, free: 6.785 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.404e-05/0.3872, allocations: 8 kB / 1.289 GB, free: 6.777 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002282/0.3874, allocations: 93.05 kB / 1.289 GB, free: 6.668 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=3): time 9.42e-07/0.3874, allocations: 0 / 1.289 GB, free: 6.668 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3): time 0.0004153/0.3879, allocations: 129.4 kB / 1.289 GB, free: 6.535 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.068e-05/0.3879, allocations: 81.05 kB / 1.289 GB, free: 6.438 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002814/0.3882, allocations: 260.9 kB / 1.289 GB, free: 6.172 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.327e-05/0.3882, allocations: 29.7 kB / 1.289 GB, free: 6.137 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 9.694e-05/0.3883, allocations: 124.1 kB / 1.289 GB, free: 6.012 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.953e-05/0.3884, allocations: 15.88 kB / 1.289 GB, free: 5.996 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.984e-05/0.3884, allocations: 13.72 kB / 1.29 GB, free: 5.977 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001803/0.3886, allocations: 334.8 kB / 1.29 GB, free: 5.641 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001152/0.3887, allocations: 23.97 kB / 1.29 GB, free: 5.617 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000125/0.3888, allocations: 47.41 kB / 1.29 GB, free: 5.559 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002087/0.389, allocations: 74.5 kB / 1.29 GB, free: 5.477 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.389, allocations: 0 / 1.29 GB, free: 5.477 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002685/0.3893, allocations: 101.4 kB / 1.29 GB, free: 5.371 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.615e-05/0.3893, allocations: 4 kB / 1.29 GB, free: 5.367 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.305e-06/0.3893, allocations: 8.094 kB / 1.29 GB, free: 5.359 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.443e-05/0.3893, allocations: 7.922 kB / 1.29 GB, free: 5.352 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001038/0.3894, allocations: 11.98 kB / 1.29 GB, free: 5.34 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.17e-06/0.3894, allocations: 0 / 1.29 GB, free: 5.34 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.986e-05/0.3895, allocations: 19.92 kB / 1.29 GB, free: 5.32 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.734e-06/0.3895, allocations: 0 / 1.29 GB, free: 5.32 MB / 0.9825 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.0001182/0.3897, allocations: 125.8 kB / 1.29 GB, free: 5.188 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.957e-05/0.3897, allocations: 15.91 kB / 1.29 GB, free: 5.172 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.649e-05/0.3897, allocations: 21.34 kB / 1.29 GB, free: 5.148 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.3897, allocations: 7.938 kB / 1.29 GB, free: 5.141 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.3897, allocations: 0 / 1.29 GB, free: 5.141 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.3897, allocations: 3.984 kB / 1.29 GB, free: 5.137 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001891/0.3899, allocations: 188.6 kB / 1.29 GB, free: 4.91 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.3899, allocations: 0 / 1.29 GB, free: 4.91 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.755e-05/0.39, allocations: 7.984 kB / 1.29 GB, free: 4.902 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.644e-06/0.39, allocations: 7.938 kB / 1.29 GB, free: 4.895 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.144e-06/0.39, allocations: 0 / 1.29 GB, free: 4.895 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.377e-05/0.39, allocations: 7.938 kB / 1.29 GB, free: 4.887 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.39, allocations: 4 kB / 1.29 GB, free: 4.883 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000278/0.3903, allocations: 117 kB / 1.291 GB, free: 4.75 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 2.881e-05/0.3903, allocations: 19.89 kB / 1.291 GB, free: 4.73 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.052e-05/0.3904, allocations: 0 / 1.291 GB, free: 4.73 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.27e-05/0.3904, allocations: 15.92 kB / 1.291 GB, free: 4.715 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.616e-05/0.3905, allocations: 4 kB / 1.291 GB, free: 4.711 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.441e-05/0.3905, allocations: 7.984 kB / 1.291 GB, free: 4.703 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001908/0.3907, allocations: 188.5 kB / 1.291 GB, free: 4.523 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.3907, allocations: 0 / 1.291 GB, free: 4.523 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002233/0.3909, allocations: 23.95 kB / 1.291 GB, free: 4.5 MB / 0.9825 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.0002579/0.3912, allocations: 134.1 kB / 1.291 GB, free: 4.367 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002759/0.3915, allocations: 56.2 kB / 1.291 GB, free: 4.312 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.3915, allocations: 0 / 1.291 GB, free: 4.312 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001092/0.3916, allocations: 31.91 kB / 1.291 GB, free: 4.281 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002892/0.3919, allocations: 47.97 kB / 1.291 GB, free: 4.238 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005969/0.3924, allocations: 326.5 kB / 1.291 GB, free: 3.883 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003737/0.3928, allocations: 0.7197 MB / 1.292 GB, free: 3.137 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.898e-05/0.3929, allocations: 19.42 kB / 1.292 GB, free: 3.117 MB / 0.9825 GB Notification: Performance of SimCode: time 3.11e-07/0.3929, allocations: 0 / 1.292 GB, free: 3.117 MB / 0.9825 GB Notification: Performance of Templates: time 0.004399/0.3973, allocations: 2.127 MB / 1.294 GB, free: 1 MB / 0.9825 GB " [Timeout remaining time 299] make -j1 -f Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile [Timeout 300] make -j1 -f Buildings_11_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 -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 11.1.1-maint.11.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 11.1.1-maint.11.x/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppBuildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.o OMCppBuildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.cpp In file included from OMCppBuildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.cpp:28: ./OMCppBuildings_11_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 11.1.1-maint.11.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_11_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.o] Error 1 [Calling os._exit(0), Time elapsed: 8.418777423008578] Failed to read output from testmodel.py, exit status != 0: 0.9275819800095633 0.420962766 0.033129987 Calling exit ...