Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_latest_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.11/2.11, allocations: 390.3 MB / 402.8 MB, free: 6.691 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.0009831/0.0009831, allocations: 172.9 kB / 496.1 MB, free: 12.88 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.321/1.321, allocations: 221.3 MB / 0.7915 GB, free: 5.406 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.0008173/0.0008173, allocations: 105.5 kB / 0.9317 GB, free: 5.715 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.524e-05/3.549e-05, allocations: 4 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.272/0.272, allocations: 143 MB / 1.219 GB, free: 13.43 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8095/1.082, allocations: 152.1 MB / 1.367 GB, free: 1.957 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003071/1.082, allocations: 81.83 kB / 1.367 GB, free: 1.914 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01553/1.097, allocations: 5.057 MB / 1.372 GB, free: 13.63 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.523e-06/1.097, allocations: 0 / 1.372 GB, free: 13.63 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.663e-05/1.098, allocations: 0 / 1.372 GB, free: 13.63 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.0007254/1.098, allocations: 0.5147 MB / 1.373 GB, free: 13.06 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.987e-05/1.098, allocations: 16.03 kB / 1.373 GB, free: 13.04 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.874e-05/1.098, allocations: 38.11 kB / 1.373 GB, free: 13 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.296e-05/1.098, allocations: 19.86 kB / 1.373 GB, free: 12.98 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003899/1.099, allocations: 232.1 kB / 1.373 GB, free: 12.73 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.135e-05/1.099, allocations: 11.44 kB / 1.373 GB, free: 12.72 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.423e-05/1.099, allocations: 12 kB / 1.373 GB, free: 12.71 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003047/1.099, allocations: 105.8 kB / 1.373 GB, free: 12.62 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.099e-05/1.099, allocations: 0 / 1.373 GB, free: 12.62 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.433e-05/1.099, allocations: 0 / 1.373 GB, free: 12.62 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.674e-06/1.099, allocations: 11.94 kB / 1.373 GB, free: 12.61 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001579/1.1, allocations: 48.61 kB / 1.373 GB, free: 12.57 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008885/1.1, allocations: 416.4 kB / 1.374 GB, free: 12.17 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001913/1.101, allocations: 87.17 kB / 1.374 GB, free: 12.09 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001629/1.101, allocations: 69.84 kB / 1.374 GB, free: 12.04 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.135e-05/1.101, allocations: 0 / 1.374 GB, free: 12.04 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003062/1.101, allocations: 171 kB / 1.374 GB, free: 11.87 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=10): time 2.004e-06/1.101, allocations: 0 / 1.374 GB, free: 11.87 MB / 0.8386 GB Notification: Performance of matching and sorting (n=10): time 0.0006766/1.102, allocations: 286.6 kB / 1.374 GB, free: 11.61 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001233/1.102, allocations: 166.1 kB / 1.375 GB, free: 11.41 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002181/1.102, allocations: 164.9 kB / 1.375 GB, free: 11.26 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.557e-05/1.102, allocations: 29.7 kB / 1.375 GB, free: 11.23 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001032/1.102, allocations: 112.7 kB / 1.375 GB, free: 11.12 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.735e-05/1.102, allocations: 23.14 kB / 1.375 GB, free: 11.11 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.595e-05/1.102, allocations: 6.75 kB / 1.375 GB, free: 11.1 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001539/1.103, allocations: 325.8 kB / 1.375 GB, free: 10.78 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001268/1.103, allocations: 38.69 kB / 1.375 GB, free: 10.75 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001803/1.103, allocations: 99.97 kB / 1.375 GB, free: 10.64 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002287/1.103, allocations: 164.5 kB / 1.375 GB, free: 10.48 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/1.103, allocations: 0 / 1.375 GB, free: 10.48 MB / 0.8386 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0006149/1.104, allocations: 327.5 kB / 1.376 GB, free: 10.16 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 9.999e-05/1.104, allocations: 114.8 kB / 1.376 GB, free: 10.02 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.186e-06/1.104, allocations: 0 / 1.376 GB, free: 10.02 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.104e-05/1.104, allocations: 7.984 kB / 1.376 GB, free: 10.02 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001548/1.104, allocations: 27.77 kB / 1.376 GB, free: 9.992 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.61e-05/1.104, allocations: 7.922 kB / 1.376 GB, free: 9.984 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000143/1.104, allocations: 12 kB / 1.376 GB, free: 9.973 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.055e-05/1.104, allocations: 8 kB / 1.376 GB, free: 9.965 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 0.0001774/1.105, allocations: 178.9 kB / 1.376 GB, free: 9.777 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.83e-05/1.105, allocations: 19.81 kB / 1.376 GB, free: 9.758 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.419e-05/1.105, allocations: 20.39 kB / 1.376 GB, free: 9.742 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.375e-06/1.105, allocations: 0 / 1.376 GB, free: 9.742 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.448e-06/1.105, allocations: 11.95 kB / 1.376 GB, free: 9.73 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/1.105, allocations: 0 / 1.376 GB, free: 9.73 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008604/1.106, allocations: 0.5636 MB / 1.377 GB, free: 9.164 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/1.106, allocations: 0 / 1.377 GB, free: 9.164 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.747e-05/1.106, allocations: 8 kB / 1.377 GB, free: 9.156 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.396e-06/1.106, allocations: 4 kB / 1.377 GB, free: 9.152 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.081e-05/1.106, allocations: 15.91 kB / 1.377 GB, free: 9.137 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.779e-06/1.106, allocations: 4.031 kB / 1.377 GB, free: 9.133 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.02e-06/1.106, allocations: 11.92 kB / 1.377 GB, free: 9.121 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006084/1.106, allocations: 376.5 kB / 1.377 GB, free: 8.77 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 6.225e-05/1.106, allocations: 96.34 kB / 1.377 GB, free: 8.66 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.918e-05/1.107, allocations: 4 kB / 1.377 GB, free: 8.656 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001518/1.107, allocations: 8 kB / 1.377 GB, free: 8.648 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.936e-05/1.107, allocations: 15.25 kB / 1.377 GB, free: 8.637 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.454e-05/1.107, allocations: 8 kB / 1.377 GB, free: 8.629 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001325/1.107, allocations: 129.3 kB / 1.377 GB, free: 8.516 MB / 0.8386 GB Notification: Performance of sort global known variables: time 2.965e-06/1.107, allocations: 0 / 1.377 GB, free: 8.516 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0004008/1.107, allocations: 39.25 kB / 1.377 GB, free: 8.48 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.001118/1.108, allocations: 0.9373 MB / 1.378 GB, free: 7.562 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0004893/1.109, allocations: 338.4 kB / 1.379 GB, free: 7.215 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/1.109, allocations: 0 / 1.379 GB, free: 7.215 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002456/1.109, allocations: 195.3 kB / 1.379 GB, free: 7.031 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002799/1.11, allocations: 19.56 kB / 1.379 GB, free: 7.012 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007093/1.11, allocations: 268.9 kB / 1.379 GB, free: 6.742 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000254/1.111, allocations: 0.7121 MB / 1.38 GB, free: 6.004 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 7.141e-05/1.111, allocations: 20.53 kB / 1.38 GB, free: 5.984 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.011e-05/1.111, allocations: 35.23 kB / 1.38 GB, free: 5.969 MB / 0.8386 GB Notification: Performance of SimCode: time 3.61e-07/1.111, allocations: 0 / 1.38 GB, free: 5.969 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01507/1.126, allocations: 3.314 MB / 1.383 GB, free: 2.789 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002022/1.126, allocations: 163.4 kB / 1.383 GB, free: 2.559 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 10.0.0-master/Resources/C-Sources" -c -o Buildings_latest_Buildings_Utilities_IO_Files_Examples_CSVWriter.o Buildings_latest_Buildings_Utilities_IO_Files_Examples_CSVWriter.c In file included from Buildings_latest_Buildings_Utilities_IO_Files_Examples_CSVWriter.c:7: In file included from ./Buildings_latest_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 10.0.0-master/Resources/C-Sources" -c -o Buildings_latest_Buildings_Utilities_IO_Files_Examples_CSVWriter_functions.o Buildings_latest_Buildings_Utilities_IO_Files_Examples_CSVWriter_functions.c In file included from Buildings_latest_Buildings_Utilities_IO_Files_Examples_CSVWriter_functions.c:2: In file included from ./Buildings_latest_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_latest_Buildings_Utilities_IO_Files_Examples_CSVWriter_functions.c:7: In file included from ./Buildings_latest_Buildings_Utilities_IO_Files_Examples_CSVWriter_includes.h:5: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_Buildings_Utilities_IO_Files_Examples_CSVWriter_functions.o] Error 1