Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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=5000,variableFilter="time|ramp.startTime|const.y|cosine.y",fileNamePrefix="Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter") translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|ramp.startTime|const.y|cosine.y",fileNamePrefix="Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00103/0.00103, allocations: 100.6 kB / 15.71 MB, free: 452 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001501/0.001501, allocations: 177.4 kB / 16.58 MB, free: 6.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.583/1.583, allocations: 223.3 MB / 240.6 MB, free: 5.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.595/2.595, allocations: 390.5 MB / 0.6662 GB, free: 2.898 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004173/0.0004175, allocations: 16 kB / 0.8154 GB, free: 14.16 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8049/0.8053, allocations: 142.3 MB / 0.9544 GB, free: 8.07 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.001836/0.8072, allocations: 1.325 MB / 0.9557 GB, free: 7.027 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007681/0.808, allocations: 0.5137 MB / 0.9562 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.929e-05/0.8081, allocations: 6.531 kB / 0.9562 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001651/0.8083, allocations: 23.72 kB / 0.9562 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002236/0.8085, allocations: 56.28 kB / 0.9563 GB, free: 6.555 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001226/0.8086, allocations: 49.12 kB / 0.9563 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000179/0.8088, allocations: 116.1 kB / 0.9564 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001657/0.809, allocations: 43.86 kB / 0.9565 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001075/0.8091, allocations: 43.44 kB / 0.9565 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.932e-05/0.8092, allocations: 53.14 kB / 0.9566 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.382e-05/0.8092, allocations: 3.312 kB / 0.9566 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.627e-05/0.8093, allocations: 14.41 kB / 0.9566 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.176e-05/0.8094, allocations: 38.36 kB / 0.9566 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.075e-05/0.8094, allocations: 48.02 kB / 0.9567 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001529/0.8096, allocations: 103.5 kB / 0.9568 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.8096, allocations: 0 / 0.9568 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.044e-06/0.8096, allocations: 0 / 0.9568 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.038e-05/0.8096, allocations: 1.062 kB / 0.9568 GB, free: 6.219 MB / 0.7169 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.0005325/0.8102, allocations: 449.4 kB / 0.9572 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.929e-05/0.8102, allocations: 9.094 kB / 0.9572 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.688e-05/0.8103, allocations: 28.08 kB / 0.9572 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002274/0.8105, allocations: 225.9 kB / 0.9574 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.462e-05/0.8105, allocations: 1.5 kB / 0.9574 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.323e-05/0.8106, allocations: 8.125 kB / 0.9575 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003217/0.8109, allocations: 118.3 kB / 0.9576 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.061e-05/0.8109, allocations: 1.125 kB / 0.9576 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.236e-05/0.8109, allocations: 4 kB / 0.9576 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.843e-06/0.8109, allocations: 2.531 kB / 0.9576 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002412/0.8112, allocations: 83.73 kB / 0.9577 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006511/0.8118, allocations: 384 kB / 0.958 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001408/0.812, allocations: 50.8 kB / 0.9581 GB, free: 5.004 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001074/0.8121, allocations: 37.14 kB / 0.9581 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.458e-05/0.8121, allocations: 7.156 kB / 0.9581 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000307/0.8125, allocations: 102 kB / 0.9582 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 2.986e-06/0.8125, allocations: 1.062 kB / 0.9582 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0005009/0.813, allocations: 147.3 kB / 0.9584 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.034e-05/0.813, allocations: 82.58 kB / 0.9584 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002747/0.8133, allocations: 254.2 kB / 0.9587 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.532e-05/0.8133, allocations: 27.52 kB / 0.9587 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.186e-05/0.8134, allocations: 133 kB / 0.9588 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.655e-05/0.8134, allocations: 3.906 kB / 0.9588 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.248e-06/0.8135, allocations: 5.719 kB / 0.9588 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.166e-05/0.8135, allocations: 326.4 kB / 0.9591 GB, free: 4.047 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001025/0.8136, allocations: 31.94 kB / 0.9592 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001086/0.8138, allocations: 61.97 kB / 0.9592 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001187/0.8139, allocations: 45.52 kB / 0.9593 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.8139, allocations: 0 / 0.9593 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002745/0.8142, allocations: 116.5 kB / 0.9594 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.169e-05/0.8142, allocations: 8.078 kB / 0.9594 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.8142, allocations: 1.344 kB / 0.9594 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.632e-05/0.8142, allocations: 1.438 kB / 0.9594 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001165/0.8144, allocations: 14.33 kB / 0.9594 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.885e-06/0.8144, allocations: 5.375 kB / 0.9594 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.986e-05/0.8145, allocations: 23.36 kB / 0.9594 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.256e-05/0.8145, allocations: 5.406 kB / 0.9594 GB, free: 3.867 MB / 0.7169 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001024/0.8146, allocations: 127.8 kB / 0.9596 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.943e-05/0.8146, allocations: 16.5 kB / 0.9596 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.239e-05/0.8147, allocations: 19 kB / 0.9596 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.377e-06/0.8147, allocations: 1.312 kB / 0.9596 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.634e-06/0.8147, allocations: 7.984 kB / 0.9596 GB, free: 3.719 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.8147, allocations: 0 / 0.9596 GB, free: 3.719 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001827/0.8149, allocations: 211.4 kB / 0.9598 GB, free: 3.488 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.8149, allocations: 4.984 kB / 0.9598 GB, free: 3.484 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.048e-05/0.815, allocations: 14.98 kB / 0.9598 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.815, allocations: 0 / 0.9598 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.121e-05/0.815, allocations: 1 kB / 0.9598 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.815, allocations: 3.938 kB / 0.9598 GB, free: 3.477 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.815, allocations: 5.078 kB / 0.9598 GB, free: 3.473 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002753/0.8153, allocations: 133.6 kB / 0.96 GB, free: 3.375 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 5.446e-05/0.8154, allocations: 105.5 kB / 0.9601 GB, free: 3.258 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.481e-05/0.8154, allocations: 4.969 kB / 0.9601 GB, free: 3.254 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.354e-05/0.8155, allocations: 13.3 kB / 0.9601 GB, free: 3.25 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.904e-05/0.8156, allocations: 6.391 kB / 0.9601 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.589e-05/0.8156, allocations: 3.844 kB / 0.9601 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.000167/0.8158, allocations: 190.6 kB / 0.9603 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8158, allocations: 0 / 0.9603 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002418/0.816, allocations: 21.81 kB / 0.9603 GB, free: 3.117 MB / 0.7169 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002691/0.8163, allocations: 127.3 kB / 0.9604 GB, free: 3.012 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003043/0.8166, allocations: 67.7 kB / 0.9605 GB, free: 2.988 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.8166, allocations: 1.094 kB / 0.9605 GB, free: 2.988 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001226/0.8167, allocations: 38.62 kB / 0.9605 GB, free: 2.973 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00033/0.8171, allocations: 45.69 kB / 0.9606 GB, free: 2.949 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006019/0.8177, allocations: 351.4 kB / 0.9609 GB, free: 2.664 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001882/0.8179, allocations: 0.7169 MB / 0.9616 GB, free: 1.949 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.52e-05/0.8179, allocations: 14.31 kB / 0.9616 GB, free: 1.941 MB / 0.7169 GB Notification: Performance of SimCode: time 5.82e-07/0.818, allocations: 0 / 0.9616 GB, free: 1.941 MB / 0.7169 GB Notification: Performance of Templates: time 0.004543/0.8225, allocations: 2.091 MB / 0.9637 GB, free: 0.8672 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile make -j1 -f Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile clang++ NOTFOUND -Winvalid-pch -O0 -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 9.1.2-maint.9.1.x/Resources/C-Sources" -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppBuildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.o OMCppBuildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppBuildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.o] Error 1