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/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.136/2.136, allocations: 387.1 MB / 399.7 MB, free: 9.43 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001224/0.001224, allocations: 180.1 kB / 492.3 MB, free: 0.582 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.683/1.683, allocations: 221.3 MB / 0.7871 GB, free: 12.84 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008674/0.0008677, allocations: 94.52 kB / 0.9267 GB, free: 13.91 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.165e-05/4.207e-05, allocations: 4 kB / 1.073 GB, free: 180.2 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3184/0.3185, allocations: 142.3 MB / 1.212 GB, free: 38.38 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8443/1.163, allocations: 151.3 MB / 1.36 GB, free: 19.03 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002165/1.163, allocations: 79.67 kB / 1.36 GB, free: 19.03 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01279/1.176, allocations: 5.057 MB / 1.365 GB, free: 34.39 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.472e-06/1.176, allocations: 0 / 1.365 GB, free: 34.39 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.452e-05/1.176, allocations: 3.844 kB / 1.365 GB, free: 34.39 MB / 0.8386 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.0005159/1.177, allocations: 0.5212 MB / 1.366 GB, free: 33.89 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.789e-05/1.177, allocations: 11.59 kB / 1.366 GB, free: 33.89 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.206e-05/1.177, allocations: 42.91 kB / 1.366 GB, free: 33.84 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.452e-05/1.177, allocations: 19.34 kB / 1.366 GB, free: 33.84 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00024/1.177, allocations: 229 kB / 1.366 GB, free: 33.63 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.467e-05/1.177, allocations: 7.656 kB / 1.366 GB, free: 33.63 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.711e-05/1.177, allocations: 15.03 kB / 1.366 GB, free: 33.63 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001948/1.177, allocations: 101.9 kB / 1.366 GB, free: 33.59 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.063e-06/1.177, allocations: 4 kB / 1.366 GB, free: 33.59 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.6e-05/1.177, allocations: 0 / 1.366 GB, free: 33.59 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.109e-06/1.177, allocations: 3.719 kB / 1.366 GB, free: 33.59 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001008/1.177, allocations: 54.02 kB / 1.366 GB, free: 33.59 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005748/1.178, allocations: 425.5 kB / 1.367 GB, free: 33.32 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001163/1.178, allocations: 73.11 kB / 1.367 GB, free: 33.29 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.86e-05/1.178, allocations: 72.69 kB / 1.367 GB, free: 33.29 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.053e-05/1.178, allocations: 0 / 1.367 GB, free: 33.29 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001629/1.178, allocations: 176 kB / 1.367 GB, free: 33.17 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=10): time 1.974e-06/1.178, allocations: 0 / 1.367 GB, free: 33.17 MB / 0.8386 GB Notification: Performance of matching and sorting (n=10): time 0.0004057/1.179, allocations: 284.5 kB / 1.367 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.609e-05/1.179, allocations: 168.5 kB / 1.367 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001266/1.179, allocations: 159.3 kB / 1.368 GB, free: 32.76 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.073e-05/1.179, allocations: 29.67 kB / 1.368 GB, free: 32.73 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.786e-05/1.179, allocations: 112.3 kB / 1.368 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.351e-05/1.179, allocations: 29.94 kB / 1.368 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.049e-05/1.179, allocations: 3.969 kB / 1.368 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 8.838e-05/1.179, allocations: 324.6 kB / 1.368 GB, free: 32.31 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.787e-05/1.179, allocations: 52.3 kB / 1.368 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.76e-05/1.179, allocations: 92.81 kB / 1.368 GB, free: 32.24 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001174/1.179, allocations: 163.2 kB / 1.368 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.606e-06/1.179, allocations: 0 / 1.368 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003411/1.18, allocations: 328.6 kB / 1.369 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 4.605e-05/1.18, allocations: 117 kB / 1.369 GB, free: 31.81 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.965e-06/1.18, allocations: 4.219 kB / 1.369 GB, free: 31.81 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.658e-05/1.18, allocations: 7.906 kB / 1.369 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001097/1.18, allocations: 14.34 kB / 1.369 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.012e-05/1.18, allocations: 14.67 kB / 1.369 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.889e-05/1.18, allocations: 15.64 kB / 1.369 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.964e-05/1.18, allocations: 11.44 kB / 1.369 GB, free: 31.79 MB / 0.8386 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 () * 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 9.803e-05/1.18, allocations: 175 kB / 1.369 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.601e-05/1.18, allocations: 22.77 kB / 1.369 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.518e-05/1.18, allocations: 19.56 kB / 1.369 GB, free: 31.6 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.993e-06/1.18, allocations: 0 / 1.369 GB, free: 31.6 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/1.18, allocations: 0 / 1.369 GB, free: 31.6 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.117e-06/1.18, allocations: 3.953 kB / 1.369 GB, free: 31.6 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004888/1.181, allocations: 0.5586 MB / 1.37 GB, free: 31.24 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/1.181, allocations: 0 / 1.37 GB, free: 31.24 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.418e-05/1.181, allocations: 14.88 kB / 1.37 GB, free: 31.24 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.889e-06/1.181, allocations: 0 / 1.37 GB, free: 31.24 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.093e-05/1.181, allocations: 15.06 kB / 1.37 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/1.181, allocations: 3.844 kB / 1.37 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.664e-06/1.181, allocations: 3.953 kB / 1.37 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003605/1.181, allocations: 375.8 kB / 1.37 GB, free: 31.03 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.448e-05/1.181, allocations: 91.41 kB / 1.37 GB, free: 30.93 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.465e-05/1.181, allocations: 11.12 kB / 1.37 GB, free: 30.92 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001087/1.182, allocations: 10.05 kB / 1.37 GB, free: 30.92 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.181e-05/1.182, allocations: 16.42 kB / 1.37 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.616e-05/1.182, allocations: 14.47 kB / 1.37 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 9.144e-05/1.182, allocations: 120.8 kB / 1.37 GB, free: 30.84 MB / 0.8386 GB Notification: Performance of sort global known variables: time 2.71e-07/1.182, allocations: 3.938 kB / 1.37 GB, free: 30.83 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002628/1.182, allocations: 37.56 kB / 1.37 GB, free: 30.83 MB / 0.8386 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) * 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.000754/1.183, allocations: 0.9357 MB / 1.371 GB, free: 30.09 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0003117/1.183, allocations: 345.2 kB / 1.371 GB, free: 29.84 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.053e-06/1.183, allocations: 0 / 1.371 GB, free: 29.84 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001336/1.183, allocations: 198.1 kB / 1.372 GB, free: 29.71 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002119/1.184, allocations: 21.12 kB / 1.372 GB, free: 29.7 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005729/1.184, allocations: 257 kB / 1.372 GB, free: 29.57 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002842/1.184, allocations: 0.709 MB / 1.373 GB, free: 28.87 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 6.607e-05/1.184, allocations: 20.25 kB / 1.373 GB, free: 28.87 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.404e-05/1.185, allocations: 43.41 kB / 1.373 GB, free: 28.86 MB / 0.8386 GB Notification: Performance of SimCode: time 3.2e-07/1.185, allocations: 0 / 1.373 GB, free: 28.86 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01424/1.199, allocations: 3.311 MB / 1.376 GB, free: 28.43 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001429/1.199, allocations: 156.3 kB / 1.376 GB, free: 28.21 MB / 0.8386 GB Error: Error building simulator. Build log: clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' "-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:111: ./gc/omc_gc.h:217:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:221: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 -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' "-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:217:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:221: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