Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.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.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-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: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_9_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_9_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007873/0.0007874, allocations: 91.12 kB / 15.06 MB, free: 1.078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008339/0.000834, allocations: 172.7 kB / 15.95 MB, free: 192 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.338/1.338, allocations: 223.3 MB / 240 MB, free: 5.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.359/2.359, allocations: 390.4 MB / 0.6655 GB, free: 2.883 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003175/0.0003177, allocations: 12 kB / 0.8149 GB, free: 14.08 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6321/0.6324, allocations: 142.3 MB / 0.9539 GB, free: 8.07 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.001725/0.6342, allocations: 1.288 MB / 0.9551 GB, free: 7.059 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008183/0.635, allocations: 0.5853 MB / 0.9557 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.205e-05/0.6351, allocations: 1.219 kB / 0.9557 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001589/0.6353, allocations: 11.75 kB / 0.9557 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001998/0.6355, allocations: 43.22 kB / 0.9557 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003578/0.6359, allocations: 96.92 kB / 0.9558 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001679/0.636, allocations: 142.8 kB / 0.956 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001265/0.6362, allocations: 23.39 kB / 0.956 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000153/0.6363, allocations: 75.91 kB / 0.9561 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001433/0.6365, allocations: 76 kB / 0.9561 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.841e-05/0.6365, allocations: 6.844 kB / 0.9561 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.047e-05/0.6366, allocations: 20.97 kB / 0.9562 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.449e-05/0.6367, allocations: 26.19 kB / 0.9562 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.932e-05/0.6368, allocations: 49.08 kB / 0.9562 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000175/0.637, allocations: 109.9 kB / 0.9563 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 7.253e-06/0.637, allocations: 1.5 kB / 0.9563 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of FrontEnd: time 3.176e-06/0.637, allocations: 7.984 kB / 0.9563 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.6e-06/0.637, allocations: 0 / 0.9563 GB, free: 6.164 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005864/0.6376, allocations: 0.5287 MB / 0.9569 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.48e-05/0.6376, allocations: 9.688 kB / 0.9569 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.706e-05/0.6377, allocations: 38.8 kB / 0.9569 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.713e-05/0.6377, allocations: 18.48 kB / 0.9569 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002495/0.638, allocations: 234.2 kB / 0.9571 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.85e-05/0.638, allocations: 10.22 kB / 0.9572 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.402e-05/0.6381, allocations: 15.06 kB / 0.9572 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002608/0.6383, allocations: 114.7 kB / 0.9573 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.353e-06/0.6383, allocations: 0 / 0.9573 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.617e-05/0.6384, allocations: 3.094 kB / 0.9573 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.714e-06/0.6384, allocations: 5.078 kB / 0.9573 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002038/0.6386, allocations: 85.58 kB / 0.9574 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005791/0.6392, allocations: 420.4 kB / 0.9578 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000182/0.6394, allocations: 98.41 kB / 0.9579 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001549/0.6395, allocations: 79.12 kB / 0.9579 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.7e-05/0.6396, allocations: 1.438 kB / 0.9579 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002703/0.6398, allocations: 185.2 kB / 0.9581 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 1.403e-06/0.6399, allocations: 0 / 0.9581 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.0006519/0.6405, allocations: 369.7 kB / 0.9585 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.696e-05/0.6406, allocations: 167.4 kB / 0.9586 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001327/0.6407, allocations: 181 kB / 0.9588 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.773e-05/0.6407, allocations: 33.33 kB / 0.9588 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.547e-05/0.6408, allocations: 107.5 kB / 0.9589 GB, free: 3.844 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.209e-05/0.6408, allocations: 23.28 kB / 0.959 GB, free: 3.824 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.132e-05/0.6408, allocations: 3.531 kB / 0.959 GB, free: 3.824 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.609e-05/0.6409, allocations: 326.7 kB / 0.9593 GB, free: 3.5 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001204/0.641, allocations: 60.45 kB / 0.9593 GB, free: 3.473 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001384/0.6412, allocations: 104 kB / 0.9594 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001602/0.6413, allocations: 180 kB / 0.9596 GB, free: 3.223 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.6413, allocations: 0 / 0.9596 GB, free: 3.223 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004679/0.6418, allocations: 364.1 kB / 0.96 GB, free: 2.969 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 5.079e-05/0.6419, allocations: 120.4 kB / 0.9601 GB, free: 2.836 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.311e-06/0.6419, allocations: 1.375 kB / 0.9601 GB, free: 2.836 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.344e-05/0.6419, allocations: 2.75 kB / 0.9601 GB, free: 2.836 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001112/0.642, allocations: 23.36 kB / 0.9601 GB, free: 2.828 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.905e-06/0.642, allocations: 2.75 kB / 0.9601 GB, free: 2.828 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.233e-05/0.6421, allocations: 18.94 kB / 0.9601 GB, free: 2.82 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.027e-05/0.6422, allocations: 10.86 kB / 0.9601 GB, free: 2.816 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.combiTimeTableWriter.str,combiTimeTableWriter.str,$PRE.csvWriter.str,csvWriter.str,$whenCondition2,combiTimeTableWriter.sampleTrigger,$whenCondition1,csvWriter.sampleTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 4 * 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.0001158/0.6423, allocations: 196.4 kB / 0.9603 GB, free: 2.621 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.575e-05/0.6423, allocations: 17.44 kB / 0.9603 GB, free: 2.613 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.491e-05/0.6423, allocations: 17.48 kB / 0.9603 GB, free: 2.598 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.6424, allocations: 11.92 kB / 0.9604 GB, free: 2.586 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.6424, allocations: 1.375 kB / 0.9604 GB, free: 2.586 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.6424, allocations: 0 / 0.9604 GB, free: 2.586 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000667/0.643, allocations: 0.5846 MB / 0.9609 GB, free: 2.09 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.6431, allocations: 4.734 kB / 0.9609 GB, free: 2.086 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.647e-05/0.6431, allocations: 17.89 kB / 0.961 GB, free: 2.078 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.527e-06/0.6431, allocations: 4.953 kB / 0.961 GB, free: 2.074 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.13e-05/0.6432, allocations: 13.17 kB / 0.961 GB, free: 2.066 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.6432, allocations: 0 / 0.961 GB, free: 2.066 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.6432, allocations: 1 kB / 0.961 GB, free: 2.066 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005015/0.6437, allocations: 406.4 kB / 0.9614 GB, free: 1.781 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.506e-05/0.6437, allocations: 88.58 kB / 0.9614 GB, free: 1.68 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.856e-05/0.6438, allocations: 7.922 kB / 0.9614 GB, free: 1.676 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001078/0.6439, allocations: 12.14 kB / 0.9615 GB, free: 1.672 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.534e-05/0.644, allocations: 7.188 kB / 0.9615 GB, free: 1.668 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.976e-05/0.644, allocations: 14.06 kB / 0.9615 GB, free: 1.66 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 8.058e-05/0.6441, allocations: 125.7 kB / 0.9616 GB, free: 1.562 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6441, allocations: 7.938 kB / 0.9616 GB, free: 1.555 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002881/0.6444, allocations: 35.17 kB / 0.9616 GB, free: 1.551 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: 6 ($whenCondition1,$whenCondition2,combiTimeTableWriter.str,combiTimeTableWriter.sampleTrigger,csvWriter.str,csvWriter.sampleTrigger) * Number of discrete states: 4 (combiTimeTableWriter.str,$whenCondition2,csvWriter.str,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 2 * 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.0008322/0.6452, allocations: 0.962 MB / 0.9626 GB, free: 0.7227 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004436/0.6457, allocations: 373.2 kB / 0.9629 GB, free: 412 kB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.6457, allocations: 0 / 0.9629 GB, free: 412 kB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002072/0.6459, allocations: 208.3 kB / 0.9631 GB, free: 236 kB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003139/0.6462, allocations: 23.88 kB / 0.9632 GB, free: 224 kB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001627/0.6478, allocations: 0.9604 MB / 0.9641 GB, free: 15.53 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000392/0.6482, allocations: 0.7038 MB / 0.9648 GB, free: 14.82 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 6.908e-05/0.6483, allocations: 21 kB / 0.9648 GB, free: 14.81 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.352e-05/0.6484, allocations: 36.48 kB / 0.9648 GB, free: 14.78 MB / 0.7325 GB Notification: Performance of SimCode: time 3.7e-07/0.6484, allocations: 4 kB / 0.9648 GB, free: 14.78 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01512/0.6635, allocations: 3.365 MB / 0.9681 GB, free: 13.13 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001614/0.6637, allocations: 182 kB / 0.9683 GB, free: 12.89 MB / 0.7325 GB Error: Error building simulator. Build log: clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/Resources/C-Sources" -c -o Buildings_9_Buildings_Utilities_IO_Files_Examples_CSVWriter.o Buildings_9_Buildings_Utilities_IO_Files_Examples_CSVWriter.c In file included from Buildings_9_Buildings_Utilities_IO_Files_Examples_CSVWriter.c:7: In file included from ./Buildings_9_Buildings_Utilities_IO_Files_Examples_CSVWriter_model.h:5: In file included from ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:144: ./gc/omc_gc.h:219:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:223:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ 2 warnings generated. clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/Resources/C-Sources" -c -o Buildings_9_Buildings_Utilities_IO_Files_Examples_CSVWriter_functions.o Buildings_9_Buildings_Utilities_IO_Files_Examples_CSVWriter_functions.c In file included from Buildings_9_Buildings_Utilities_IO_Files_Examples_CSVWriter_functions.c:2: In file included from ./Buildings_9_Buildings_Utilities_IO_Files_Examples_CSVWriter_functions.h:3: In file included from ./meta/meta_modelica.h:49: ./gc/omc_gc.h:219:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:223:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ In file included from Buildings_9_Buildings_Utilities_IO_Files_Examples_CSVWriter_functions.c:7: In file included from ./Buildings_9_Buildings_Utilities_IO_Files_Examples_CSVWriter_includes.h:5: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/Resources/C-Sources/fileWriterFree.c:7:10: fatal error: 'ModelicaUtilities.h' file not found #include "ModelicaUtilities.h" ^~~~~~~~~~~~~~~~~~~~~ 2 warnings and 1 error generated. make: *** [: Buildings_9_Buildings_Utilities_IO_Files_Examples_CSVWriter_functions.o] Error 1