Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001672/0.001672, allocations: 104.4 kB / 19.7 MB, free: 2.125 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.001817/0.001817, allocations: 217.5 kB / 22.99 MB, free: 4.945 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.486/1.486, allocations: 230.6 MB / 256.8 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.355/3.355, allocations: 0.5107 GB / 0.8166 GB, free: 17.85 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_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_latest_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.002055/0.002055, allocations: 68.06 kB / 1.187 GB, free: 13.55 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3322/0.3342, allocations: 181.9 MB / 1.365 GB, free: 13.61 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003123/0.3374, allocations: 1.65 MB / 1.366 GB, free: 11.94 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001055/0.3384, allocations: 0.57 MB / 1.367 GB, free: 11.37 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.177e-05/0.3385, allocations: 7.938 kB / 1.367 GB, free: 11.36 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.000161/0.3386, allocations: 31.77 kB / 1.367 GB, free: 11.33 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0002581/0.3389, allocations: 67.69 kB / 1.367 GB, free: 11.26 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002044/0.3391, allocations: 75.78 kB / 1.367 GB, free: 11.19 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0002051/0.3393, allocations: 139.5 kB / 1.367 GB, free: 11.05 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001417/0.3395, allocations: 33.61 kB / 1.367 GB, free: 11.01 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001722/0.3396, allocations: 71.7 kB / 1.367 GB, free: 10.94 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001038/0.3397, allocations: 51.77 kB / 1.367 GB, free: 10.89 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 2.765e-05/0.3398, allocations: 11.98 kB / 1.367 GB, free: 10.88 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 7.96e-05/0.3398, allocations: 23.98 kB / 1.367 GB, free: 10.86 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 9.286e-05/0.3399, allocations: 47.84 kB / 1.367 GB, free: 10.81 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 5.894e-05/0.34, allocations: 51.66 kB / 1.367 GB, free: 10.76 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002342/0.3402, allocations: 151.2 kB / 1.367 GB, free: 10.61 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.3402, allocations: 0 / 1.367 GB, free: 10.61 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.322e-06/0.3402, allocations: 0 / 1.367 GB, free: 10.61 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.22e-06/0.3402, allocations: 0 / 1.367 GB, free: 10.61 MB / 1.061 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.000624/0.3409, allocations: 393.4 kB / 1.368 GB, free: 10.2 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.226e-05/0.3409, allocations: 12.03 kB / 1.368 GB, free: 10.18 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000166/0.3411, allocations: 32.72 kB / 1.368 GB, free: 10.15 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003079/0.3414, allocations: 193.9 kB / 1.368 GB, free: 9.938 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.189e-05/0.3414, allocations: 4.375 kB / 1.368 GB, free: 9.934 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.631e-05/0.3414, allocations: 4.375 kB / 1.368 GB, free: 9.93 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003161/0.3417, allocations: 167.6 kB / 1.368 GB, free: 9.75 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.277e-06/0.3417, allocations: 4 kB / 1.368 GB, free: 9.746 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.526e-05/0.3417, allocations: 3.984 kB / 1.368 GB, free: 9.742 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/0.3417, allocations: 4 kB / 1.368 GB, free: 9.738 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002449/0.342, allocations: 71.88 kB / 1.368 GB, free: 9.668 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005437/0.3425, allocations: 304.3 kB / 1.369 GB, free: 9.34 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001432/0.3427, allocations: 38.53 kB / 1.369 GB, free: 9.293 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001074/0.3428, allocations: 28.89 kB / 1.369 GB, free: 9.262 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.418e-05/0.3428, allocations: 4 kB / 1.369 GB, free: 9.258 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002594/0.343, allocations: 152.5 kB / 1.369 GB, free: 9.078 MB / 1.061 GB Notification: Performance of pre-optimization done (n=3): time 1.022e-06/0.343, allocations: 0 / 1.369 GB, free: 9.078 MB / 1.061 GB Notification: Performance of matching and sorting (n=3): time 0.0004425/0.3435, allocations: 117.5 kB / 1.369 GB, free: 8.957 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.244e-05/0.3435, allocations: 81.05 kB / 1.369 GB, free: 8.859 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002593/0.3438, allocations: 240 kB / 1.369 GB, free: 8.613 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.203e-05/0.3438, allocations: 29.7 kB / 1.369 GB, free: 8.578 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 9.758e-05/0.3439, allocations: 132 kB / 1.369 GB, free: 8.445 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.271e-05/0.3439, allocations: 15.89 kB / 1.369 GB, free: 8.43 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.951e-05/0.344, allocations: 17.7 kB / 1.369 GB, free: 8.406 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001521/0.3441, allocations: 326.8 kB / 1.37 GB, free: 8.078 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001108/0.3442, allocations: 23.97 kB / 1.37 GB, free: 8.055 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001422/0.3444, allocations: 73.11 kB / 1.37 GB, free: 7.965 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002168/0.3446, allocations: 70.5 kB / 1.37 GB, free: 7.887 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.3446, allocations: 3.938 kB / 1.37 GB, free: 7.883 MB / 1.061 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002856/0.3449, allocations: 101.5 kB / 1.37 GB, free: 7.777 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.348e-05/0.3449, allocations: 4 kB / 1.37 GB, free: 7.773 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-06/0.3449, allocations: 4.094 kB / 1.37 GB, free: 7.77 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.349e-05/0.3449, allocations: 4 kB / 1.37 GB, free: 7.766 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001058/0.345, allocations: 11.98 kB / 1.37 GB, free: 7.754 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.345, allocations: 3.938 kB / 1.37 GB, free: 7.75 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.338e-05/0.3451, allocations: 11.98 kB / 1.37 GB, free: 7.738 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.933e-06/0.3451, allocations: 4 kB / 1.37 GB, free: 7.734 MB / 1.061 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.0001146/0.3452, allocations: 133.7 kB / 1.37 GB, free: 7.594 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.615e-05/0.3453, allocations: 15.91 kB / 1.37 GB, free: 7.578 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.039e-05/0.3453, allocations: 21.02 kB / 1.37 GB, free: 7.559 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.3453, allocations: 4 kB / 1.37 GB, free: 7.555 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.3453, allocations: 3.938 kB / 1.37 GB, free: 7.551 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.064e-06/0.3453, allocations: 0 / 1.37 GB, free: 7.551 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001478/0.3455, allocations: 153.2 kB / 1.37 GB, free: 7.371 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.3455, allocations: 0 / 1.37 GB, free: 7.371 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.562e-05/0.3456, allocations: 11.98 kB / 1.37 GB, free: 7.359 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.3456, allocations: 0 / 1.37 GB, free: 7.359 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.083e-06/0.3456, allocations: 4 kB / 1.37 GB, free: 7.355 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.3456, allocations: 0 / 1.37 GB, free: 7.355 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.3456, allocations: 0 / 1.37 GB, free: 7.355 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002941/0.3459, allocations: 128.9 kB / 1.371 GB, free: 7.211 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.187e-05/0.3459, allocations: 11.91 kB / 1.371 GB, free: 7.199 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.038e-05/0.3459, allocations: 3.938 kB / 1.371 GB, free: 7.195 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.784e-05/0.346, allocations: 19.98 kB / 1.371 GB, free: 7.176 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.563e-05/0.346, allocations: 7.922 kB / 1.371 GB, free: 7.168 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.031e-05/0.3461, allocations: 4.328 kB / 1.371 GB, free: 7.164 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001756/0.3462, allocations: 177.8 kB / 1.371 GB, free: 6.992 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.3462, allocations: 0 / 1.371 GB, free: 6.992 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002209/0.3464, allocations: 27.92 kB / 1.371 GB, free: 6.965 MB / 1.061 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.0002397/0.3467, allocations: 117.1 kB / 1.371 GB, free: 6.84 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002802/0.347, allocations: 60 kB / 1.371 GB, free: 6.781 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.347, allocations: 0 / 1.371 GB, free: 6.781 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001252/0.3471, allocations: 31.91 kB / 1.371 GB, free: 6.75 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002835/0.3474, allocations: 39.64 kB / 1.371 GB, free: 6.711 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005533/0.3479, allocations: 310.4 kB / 1.371 GB, free: 6.375 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001089/0.348, allocations: 114.2 kB / 1.371 GB, free: 6.246 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.779e-05/0.3481, allocations: 23.42 kB / 1.371 GB, free: 6.223 MB / 1.061 GB Notification: Performance of SimCode: time 3.41e-07/0.3481, allocations: 0 / 1.371 GB, free: 6.223 MB / 1.061 GB Notification: Performance of Templates: time 0.004117/0.3522, allocations: 2.118 MB / 1.373 GB, free: 4.121 MB / 1.061 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile [Timeout 300] make -j1 -f Buildings_latest_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 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/Buildings master/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppBuildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.o OMCppBuildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.cpp In file included from OMCppBuildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.cpp:28: ./OMCppBuildings_latest_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 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: *** [: OMCppBuildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.o] Error 1 [Calling os._exit(0), Time elapsed: 8.505463291425258] Failed to read output from testmodel.py, exit status != 0: 0.3602375262416899 0.37493520300000005 0.031577025 Calling exit ...