Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001547/0.001548, allocations: 113.8 kB / 17.08 MB, free: 5.965 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001605/0.001605, allocations: 192.7 kB / 20.02 MB, free: 3.043 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.423/1.423, allocations: 222.9 MB / 245.7 MB, free: 4.195 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.614/2.614, allocations: 437 MB / 0.7177 GB, free: 4.484 MB / 0.5606 GB " [Timeout remaining time 177] Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|ramp.startTime|const.y|cosine.y",fileNamePrefix="Buildings_10_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_10_Buildings.Utilities.IO.Files.Examples.JSONWriter") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001976/0.001976, allocations: 68.08 kB / 1.028 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3038/0.3058, allocations: 151.6 MB / 1.176 GB, free: 5.855 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003191/0.309, allocations: 1.644 MB / 1.177 GB, free: 4.191 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001023/0.31, allocations: 0.5378 MB / 1.178 GB, free: 3.648 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.823e-05/0.3101, allocations: 3.938 kB / 1.178 GB, free: 3.645 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0001774/0.3103, allocations: 27.8 kB / 1.178 GB, free: 3.617 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.000267/0.3106, allocations: 71.59 kB / 1.178 GB, free: 3.547 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001598/0.3108, allocations: 63.86 kB / 1.178 GB, free: 3.484 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0002182/0.311, allocations: 135.5 kB / 1.178 GB, free: 3.352 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001743/0.3112, allocations: 53.45 kB / 1.178 GB, free: 3.293 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000131/0.3113, allocations: 51.77 kB / 1.178 GB, free: 3.242 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001459/0.3115, allocations: 67.69 kB / 1.178 GB, free: 3.176 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 3.036e-05/0.3115, allocations: 8 kB / 1.178 GB, free: 3.168 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 6.645e-05/0.3116, allocations: 16 kB / 1.178 GB, free: 3.152 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.000102/0.3117, allocations: 51.83 kB / 1.178 GB, free: 3.102 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 7.726e-05/0.3118, allocations: 55.61 kB / 1.179 GB, free: 3.047 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0002843/0.3121, allocations: 159.2 kB / 1.179 GB, free: 2.891 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.3121, allocations: 4 kB / 1.179 GB, free: 2.887 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.272e-06/0.3121, allocations: 0 / 1.179 GB, free: 2.887 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.691e-06/0.3121, allocations: 0 / 1.179 GB, free: 2.887 MB / 0.92 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.0007499/0.3129, allocations: 476.7 kB / 1.179 GB, free: 2.375 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.247e-05/0.3129, allocations: 8.031 kB / 1.179 GB, free: 2.367 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.558e-05/0.313, allocations: 20.8 kB / 1.179 GB, free: 2.348 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003495/0.3133, allocations: 245 kB / 1.179 GB, free: 2.066 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.357e-05/0.3133, allocations: 4.375 kB / 1.179 GB, free: 2.062 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.274e-05/0.3134, allocations: 8.375 kB / 1.179 GB, free: 2.055 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003247/0.3137, allocations: 109.6 kB / 1.18 GB, free: 1.945 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.232e-05/0.3137, allocations: 7.984 kB / 1.18 GB, free: 1.938 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.542e-05/0.3137, allocations: 4 kB / 1.18 GB, free: 1.934 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.3137, allocations: 0 / 1.18 GB, free: 1.934 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002436/0.314, allocations: 67.88 kB / 1.18 GB, free: 1.867 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00063/0.3146, allocations: 372.6 kB / 1.18 GB, free: 1.453 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001525/0.3148, allocations: 50.53 kB / 1.18 GB, free: 1.395 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001137/0.3149, allocations: 28.84 kB / 1.18 GB, free: 1.363 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.67e-05/0.3149, allocations: 0 / 1.18 GB, free: 1.363 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002462/0.3152, allocations: 97.03 kB / 1.18 GB, free: 1.25 MB / 0.92 GB Notification: Performance of pre-optimization done (n=3): time 1.172e-06/0.3152, allocations: 0 / 1.18 GB, free: 1.25 MB / 0.92 GB Notification: Performance of matching and sorting (n=3): time 0.000473/0.3157, allocations: 133.4 kB / 1.18 GB, free: 1.113 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.926e-05/0.3158, allocations: 77.11 kB / 1.18 GB, free: 1.02 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002933/0.316, allocations: 253 kB / 1.181 GB, free: 0.7656 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.015e-05/0.3161, allocations: 25.7 kB / 1.181 GB, free: 0.7344 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.000102/0.3162, allocations: 128.1 kB / 1.181 GB, free: 0.6055 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.076e-05/0.3162, allocations: 11.89 kB / 1.181 GB, free: 0.5938 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.393e-05/0.3163, allocations: 17.7 kB / 1.181 GB, free: 0.5703 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001568/0.3164, allocations: 330.8 kB / 1.181 GB, free: 244 kB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001173/0.3165, allocations: 23.97 kB / 1.181 GB, free: 220 kB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001346/0.3167, allocations: 47.41 kB / 1.181 GB, free: 160 kB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002286/0.3169, allocations: 70.5 kB / 1.181 GB, free: 80 kB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.3169, allocations: 0 / 1.181 GB, free: 80 kB / 0.92 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000305/0.3173, allocations: 113.4 kB / 1.181 GB, free: 15.96 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.205e-05/0.3173, allocations: 9.812 kB / 1.181 GB, free: 15.95 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.148e-06/0.3173, allocations: 0 / 1.181 GB, free: 15.95 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.598e-05/0.3173, allocations: 3.938 kB / 1.181 GB, free: 15.95 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001096/0.3174, allocations: 11.98 kB / 1.181 GB, free: 15.94 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.36e-06/0.3174, allocations: 4 kB / 1.181 GB, free: 15.93 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.029e-05/0.3175, allocations: 15.94 kB / 1.181 GB, free: 15.92 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.233e-05/0.3176, allocations: 3.984 kB / 1.181 GB, free: 15.91 MB / 0.9356 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.0001141/0.3177, allocations: 133.8 kB / 1.181 GB, free: 15.77 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.898e-05/0.3177, allocations: 19.91 kB / 1.181 GB, free: 15.75 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.873e-05/0.3178, allocations: 17.23 kB / 1.182 GB, free: 15.73 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.3178, allocations: 7.875 kB / 1.182 GB, free: 15.73 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.3178, allocations: 0 / 1.182 GB, free: 15.73 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.3178, allocations: 0 / 1.182 GB, free: 15.73 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002154/0.318, allocations: 213.6 kB / 1.182 GB, free: 15.47 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.21e-07/0.318, allocations: 0 / 1.182 GB, free: 15.47 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.915e-05/0.3181, allocations: 11.98 kB / 1.182 GB, free: 15.46 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.078e-06/0.3181, allocations: 3.984 kB / 1.182 GB, free: 15.45 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.825e-06/0.3181, allocations: 0 / 1.182 GB, free: 15.45 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.138e-06/0.3181, allocations: 7.938 kB / 1.182 GB, free: 15.45 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.3181, allocations: 0 / 1.182 GB, free: 15.45 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003072/0.3184, allocations: 125 kB / 1.182 GB, free: 15.3 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 6.754e-05/0.3185, allocations: 89.02 kB / 1.182 GB, free: 15.2 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.175e-05/0.3185, allocations: 0 / 1.182 GB, free: 15.2 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.474e-05/0.3186, allocations: 19.92 kB / 1.182 GB, free: 15.18 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.526e-05/0.3187, allocations: 8.25 kB / 1.182 GB, free: 15.17 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.24e-05/0.3187, allocations: 8 kB / 1.182 GB, free: 15.16 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001961/0.3189, allocations: 188.5 kB / 1.182 GB, free: 14.98 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3189, allocations: 4 kB / 1.182 GB, free: 14.98 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002187/0.3192, allocations: 19.94 kB / 1.182 GB, free: 14.96 MB / 0.9356 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.0002687/0.3194, allocations: 123.2 kB / 1.182 GB, free: 14.83 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003118/0.3198, allocations: 47.95 kB / 1.182 GB, free: 14.78 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 5.811e-06/0.3198, allocations: 4 kB / 1.182 GB, free: 14.78 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001222/0.3199, allocations: 31.91 kB / 1.182 GB, free: 14.75 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003113/0.3202, allocations: 44.16 kB / 1.182 GB, free: 14.71 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005883/0.3208, allocations: 321.5 kB / 1.183 GB, free: 14.36 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003919/0.3212, allocations: 0.7197 MB / 1.183 GB, free: 13.61 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.344e-05/0.3213, allocations: 15.44 kB / 1.183 GB, free: 13.6 MB / 0.9356 GB Notification: Performance of SimCode: time 2.7e-07/0.3213, allocations: 3.938 kB / 1.183 GB, free: 13.6 MB / 0.9356 GB Notification: Performance of Templates: time 0.004592/0.3259, allocations: 2.119 MB / 1.186 GB, free: 11.49 MB / 0.9356 GB " [Timeout remaining time 300] make -j1 -f Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile [Timeout 300] make -j1 -f Buildings_10_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_2/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/Resources/C-Sources" -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/build/include/omc/sundials" "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppBuildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.o OMCppBuildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.cpp In file included from OMCppBuildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.cpp:28: ./OMCppBuildings_10_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 10.1.1-maint.10.0.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_10_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.o] Error 1 [Calling os._exit(0), Time elapsed: 7.160501776030287] Failed to read output from testmodel.py, exit status != 0: 0.33359771594405174 0.34699317500000004 0.032272322 Calling exit ...