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.001788/0.001788, 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.002202/0.002202, allocations: 214.8 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.536/1.536, allocations: 230.6 MB / 256.8 MB, free: 7.812 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.344/3.344, allocations: 0.4893 GB / 0.7951 GB, free: 35.5 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.002138/0.002138, allocations: 73.36 kB / 1.154 GB, free: 25.52 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4048/0.407, allocations: 176.1 MB / 1.326 GB, free: 1.867 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.004258/0.4112, allocations: 1.643 MB / 1.328 GB, free: 224 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001552/0.4128, allocations: 0.5767 MB / 1.328 GB, free: 15.64 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001529/0.4129, allocations: 11.94 kB / 1.328 GB, free: 15.62 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0002328/0.4132, allocations: 27.72 kB / 1.328 GB, free: 15.6 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0004362/0.4136, allocations: 63.73 kB / 1.329 GB, free: 15.54 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002729/0.4139, allocations: 71.84 kB / 1.329 GB, free: 15.46 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002748/0.4141, allocations: 135.5 kB / 1.329 GB, free: 15.33 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001979/0.4143, allocations: 37.59 kB / 1.329 GB, free: 15.29 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002124/0.4146, allocations: 63.72 kB / 1.329 GB, free: 15.23 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001462/0.4147, allocations: 63.69 kB / 1.329 GB, free: 15.16 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 3.397e-05/0.4147, allocations: 12 kB / 1.329 GB, free: 15.15 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001007/0.4148, allocations: 23.98 kB / 1.329 GB, free: 15.13 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001308/0.415, allocations: 47.83 kB / 1.329 GB, free: 15.08 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 7.876e-05/0.4151, allocations: 55.61 kB / 1.329 GB, free: 15.03 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002934/0.4153, allocations: 143.4 kB / 1.329 GB, free: 14.89 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.4153, allocations: 0 / 1.329 GB, free: 14.89 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.062e-06/0.4153, allocations: 0 / 1.329 GB, free: 14.89 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.254e-05/0.4154, allocations: 0 / 1.329 GB, free: 14.89 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.0008178/0.4162, allocations: 401.2 kB / 1.33 GB, free: 14.46 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.4162, allocations: 16.03 kB / 1.33 GB, free: 14.45 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002195/0.4164, allocations: 24.83 kB / 1.33 GB, free: 14.43 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004229/0.4169, allocations: 193.9 kB / 1.33 GB, free: 14.21 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.875e-05/0.4169, allocations: 4.359 kB / 1.33 GB, free: 14.21 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.033e-05/0.417, allocations: 8.375 kB / 1.33 GB, free: 14.2 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003636/0.4173, allocations: 161.3 kB / 1.33 GB, free: 14.02 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.4173, allocations: 7.938 kB / 1.33 GB, free: 14.02 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.694e-05/0.4174, allocations: 4 kB / 1.33 GB, free: 14.01 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.584e-06/0.4174, allocations: 4 kB / 1.33 GB, free: 14.01 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003135/0.4177, allocations: 63.94 kB / 1.33 GB, free: 13.95 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006364/0.4183, allocations: 304.2 kB / 1.33 GB, free: 13.62 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000147/0.4185, allocations: 42.55 kB / 1.33 GB, free: 13.57 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001126/0.4186, allocations: 32.89 kB / 1.33 GB, free: 13.53 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.068e-05/0.4186, allocations: 0 / 1.33 GB, free: 13.53 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003077/0.4189, allocations: 152.4 kB / 1.331 GB, free: 13.35 MB / 1.029 GB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/0.4189, allocations: 3.938 kB / 1.331 GB, free: 13.35 MB / 1.029 GB Notification: Performance of matching and sorting (n=3): time 0.000462/0.4194, allocations: 117.5 kB / 1.331 GB, free: 13.23 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.86e-05/0.4194, allocations: 81.05 kB / 1.331 GB, free: 13.13 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003124/0.4197, allocations: 252 kB / 1.331 GB, free: 12.87 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.6e-05/0.4198, allocations: 25.7 kB / 1.331 GB, free: 12.84 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001387/0.4199, allocations: 124.1 kB / 1.331 GB, free: 12.71 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.448e-05/0.4199, allocations: 7.891 kB / 1.331 GB, free: 12.71 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.051e-05/0.42, allocations: 21.7 kB / 1.331 GB, free: 12.68 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001871/0.4202, allocations: 322.8 kB / 1.331 GB, free: 12.36 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001201/0.4203, allocations: 27.97 kB / 1.331 GB, free: 12.33 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001427/0.4204, allocations: 77.11 kB / 1.332 GB, free: 12.23 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002208/0.4207, allocations: 70.47 kB / 1.332 GB, free: 12.16 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.4207, allocations: 0 / 1.332 GB, free: 12.16 MB / 1.029 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002875/0.4209, allocations: 105.5 kB / 1.332 GB, free: 12.05 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.89e-05/0.421, allocations: 8 kB / 1.332 GB, free: 12.04 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.421, allocations: 0 / 1.332 GB, free: 12.04 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.495e-05/0.421, allocations: 0 / 1.332 GB, free: 12.04 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001173/0.4211, allocations: 11.98 kB / 1.332 GB, free: 12.03 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.677e-05/0.4211, allocations: 11.88 kB / 1.332 GB, free: 12.02 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.6e-05/0.4212, allocations: 11.94 kB / 1.332 GB, free: 12 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.918e-06/0.4212, allocations: 4 kB / 1.332 GB, free: 12 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.0001439/0.4214, allocations: 133.9 kB / 1.332 GB, free: 11.86 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.244e-05/0.4214, allocations: 15.91 kB / 1.332 GB, free: 11.84 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.995e-05/0.4214, allocations: 21.02 kB / 1.332 GB, free: 11.82 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-06/0.4214, allocations: 0 / 1.332 GB, free: 11.82 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.683e-06/0.4214, allocations: 3.938 kB / 1.332 GB, free: 11.82 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.4214, allocations: 288 / 1.332 GB, free: 11.82 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001645/0.4216, allocations: 149.3 kB / 1.332 GB, free: 11.64 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.4216, allocations: 0 / 1.332 GB, free: 11.64 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001618/0.4218, allocations: 11.98 kB / 1.332 GB, free: 11.63 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.864e-06/0.4218, allocations: 3.984 kB / 1.332 GB, free: 11.63 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.257e-06/0.4218, allocations: 4 kB / 1.332 GB, free: 11.62 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.302e-06/0.4218, allocations: 7.984 kB / 1.332 GB, free: 11.62 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.4218, allocations: 0 / 1.332 GB, free: 11.62 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002992/0.4221, allocations: 128.9 kB / 1.332 GB, free: 11.47 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.499e-05/0.4221, allocations: 15.84 kB / 1.332 GB, free: 11.46 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.167e-05/0.4221, allocations: 0 / 1.332 GB, free: 11.46 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.625e-05/0.4222, allocations: 11.92 kB / 1.332 GB, free: 11.45 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.205e-05/0.4223, allocations: 11.92 kB / 1.332 GB, free: 11.43 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.438e-05/0.4223, allocations: 8 kB / 1.332 GB, free: 11.43 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001994/0.4225, allocations: 181.6 kB / 1.332 GB, free: 11.25 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.4225, allocations: 0 / 1.332 GB, free: 11.25 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.000223/0.4227, allocations: 27.89 kB / 1.332 GB, free: 11.22 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.0002747/0.423, allocations: 122 kB / 1.333 GB, free: 11.1 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002964/0.4233, allocations: 59.88 kB / 1.333 GB, free: 11.04 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.4233, allocations: 0 / 1.333 GB, free: 11.04 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001133/0.4234, allocations: 27.97 kB / 1.333 GB, free: 11.01 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003/0.4237, allocations: 40.86 kB / 1.333 GB, free: 10.97 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007072/0.4244, allocations: 314.6 kB / 1.333 GB, free: 10.63 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000116/0.4245, allocations: 114.1 kB / 1.333 GB, free: 10.5 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.339e-05/0.4246, allocations: 19.42 kB / 1.333 GB, free: 10.48 MB / 1.029 GB Notification: Performance of SimCode: time 2.91e-07/0.4246, allocations: 0 / 1.333 GB, free: 10.48 MB / 1.029 GB Notification: Performance of Templates: time 0.005095/0.4297, allocations: 2.122 MB / 1.335 GB, free: 8.371 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.84790172521025] Failed to read output from testmodel.py, exit status != 0: 0.4387583499774337 0.45519851599999994 0.036513581 Calling exit ...