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/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 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001363/0.001363, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001472/0.001472, allocations: 177.3 kB / 15.94 MB, free: 228 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.879/1.879, allocations: 223.2 MB / 239.9 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 3.529/3.529, allocations: 409.2 MB / 0.6838 GB, free: 0.9414 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0005268/0.000527, allocations: 8 kB / 0.8375 GB, free: 6.609 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.059/1.059, allocations: 146.8 MB / 0.9809 GB, free: 6.344 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.003304/1.063, allocations: 1.296 MB / 0.9821 GB, free: 5.043 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001641/1.064, allocations: 0.5576 MB / 0.9827 GB, free: 4.477 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00011/1.065, allocations: 8 kB / 0.9827 GB, free: 4.469 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0002094/1.065, allocations: 19.86 kB / 0.9827 GB, free: 4.449 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0003398/1.065, allocations: 31.94 kB / 0.9827 GB, free: 4.418 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007256/1.066, allocations: 99.77 kB / 0.9828 GB, free: 4.32 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0002658/1.066, allocations: 95.81 kB / 0.9829 GB, free: 4.227 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002268/1.066, allocations: 29.03 kB / 0.9829 GB, free: 4.199 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00025/1.067, allocations: 71.81 kB / 0.983 GB, free: 4.129 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002169/1.067, allocations: 67.73 kB / 0.9831 GB, free: 4.062 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 4.458e-05/1.067, allocations: 8 kB / 0.9831 GB, free: 4.055 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 9.861e-05/1.067, allocations: 15.98 kB / 0.9831 GB, free: 4.039 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001179/1.067, allocations: 23.91 kB / 0.9831 GB, free: 4.016 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 9.697e-05/1.067, allocations: 53.64 kB / 0.9832 GB, free: 3.957 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002975/1.068, allocations: 114 kB / 0.9833 GB, free: 3.848 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/1.068, allocations: 0 / 0.9833 GB, free: 3.848 MB / 0.7325 GB Notification: Performance of FrontEnd: time 3.867e-06/1.068, allocations: 0 / 0.9833 GB, free: 3.848 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.266e-05/1.068, allocations: 4 kB / 0.9833 GB, free: 3.844 MB / 0.7325 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.001118/1.069, allocations: 0.5249 MB / 0.9838 GB, free: 3.246 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 6.33e-05/1.069, allocations: 12.03 kB / 0.9838 GB, free: 3.234 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.02e-05/1.069, allocations: 42.5 kB / 0.9839 GB, free: 3.184 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.48e-05/1.069, allocations: 11.91 kB / 0.9839 GB, free: 3.172 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005154/1.07, allocations: 226.8 kB / 0.9841 GB, free: 2.91 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.175e-05/1.07, allocations: 12 kB / 0.9841 GB, free: 2.898 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.568e-05/1.07, allocations: 12 kB / 0.9841 GB, free: 2.887 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004421/1.07, allocations: 125.5 kB / 0.9842 GB, free: 2.758 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.217e-05/1.07, allocations: 0 / 0.9842 GB, free: 2.758 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.11e-05/1.07, allocations: 4 kB / 0.9842 GB, free: 2.754 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.636e-06/1.07, allocations: 0 / 0.9842 GB, free: 2.754 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003675/1.071, allocations: 83.94 kB / 0.9843 GB, free: 2.672 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001118/1.072, allocations: 420.5 kB / 0.9847 GB, free: 2.211 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00034/1.072, allocations: 102.5 kB / 0.9848 GB, free: 2.102 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.45e-05/1.072, allocations: 4 kB / 0.9848 GB, free: 2.098 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004636/1.073, allocations: 178.6 kB / 0.985 GB, free: 1.898 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=10): time 5.21e-06/1.073, allocations: 0 / 0.985 GB, free: 1.898 MB / 0.7325 GB Notification: Performance of matching and sorting (n=10): time 0.001372/1.074, allocations: 0.5108 MB / 0.9855 GB, free: 1.332 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001653/1.074, allocations: 170.4 kB / 0.9856 GB, free: 1.129 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003049/1.075, allocations: 167.9 kB / 0.9858 GB, free: 0.9531 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.532e-05/1.075, allocations: 33.7 kB / 0.9858 GB, free: 0.9141 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001257/1.075, allocations: 116.3 kB / 0.9859 GB, free: 0.793 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 5.816e-05/1.075, allocations: 27.64 kB / 0.986 GB, free: 0.7656 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.974e-05/1.075, allocations: 4 kB / 0.986 GB, free: 0.7617 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001997/1.075, allocations: 326.8 kB / 0.9863 GB, free: 444 kB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000229/1.075, allocations: 59.89 kB / 0.9863 GB, free: 384 kB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002902/1.076, allocations: 102.8 kB / 0.9864 GB, free: 256 kB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000356/1.076, allocations: 174.8 kB / 0.9866 GB, free: 56 kB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.642e-06/1.076, allocations: 4 kB / 0.9866 GB, free: 52 kB / 0.7325 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0009726/1.077, allocations: 360.1 kB / 0.987 GB, free: 15.67 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001389/1.077, allocations: 120.4 kB / 0.9871 GB, free: 15.53 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.879e-06/1.077, allocations: 0 / 0.9871 GB, free: 15.53 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.361e-05/1.077, allocations: 4 kB / 0.9871 GB, free: 15.52 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001956/1.077, allocations: 19.98 kB / 0.9871 GB, free: 15.5 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.088e-05/1.078, allocations: 3.938 kB / 0.9871 GB, free: 15.5 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001947/1.078, allocations: 23.84 kB / 0.9871 GB, free: 15.48 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.374e-05/1.078, allocations: 8 kB / 0.9871 GB, free: 15.47 MB / 0.7481 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.0002751/1.078, allocations: 201.3 kB / 0.9873 GB, free: 15.25 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.14e-05/1.078, allocations: 15.86 kB / 0.9873 GB, free: 15.23 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.369e-05/1.078, allocations: 13.41 kB / 0.9873 GB, free: 15.22 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/1.078, allocations: 0 / 0.9873 GB, free: 15.22 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.586e-06/1.078, allocations: 0 / 0.9873 GB, free: 15.22 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.982e-06/1.078, allocations: 288 / 0.9873 GB, free: 15.22 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001364/1.08, allocations: 0.607 MB / 0.9879 GB, free: 14.55 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/1.08, allocations: 0 / 0.9879 GB, free: 14.55 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001099/1.08, allocations: 15.92 kB / 0.988 GB, free: 14.53 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.929e-06/1.08, allocations: 4 kB / 0.988 GB, free: 14.53 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.089e-05/1.08, allocations: 4 kB / 0.988 GB, free: 14.52 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.282e-06/1.08, allocations: 160 / 0.988 GB, free: 14.52 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/1.08, allocations: 3.938 kB / 0.988 GB, free: 14.52 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009639/1.081, allocations: 418.7 kB / 0.9884 GB, free: 14.08 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 9.925e-05/1.081, allocations: 96.91 kB / 0.9885 GB, free: 13.97 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.585e-05/1.081, allocations: 4 kB / 0.9885 GB, free: 13.96 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002088/1.081, allocations: 15.94 kB / 0.9885 GB, free: 13.95 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.464e-05/1.081, allocations: 11.98 kB / 0.9885 GB, free: 13.94 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.079e-05/1.081, allocations: 7.984 kB / 0.9885 GB, free: 13.93 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0001744/1.082, allocations: 127.5 kB / 0.9886 GB, free: 13.8 MB / 0.7481 GB Notification: Performance of sort global known variables: time 2.4e-07/1.082, allocations: 0 / 0.9886 GB, free: 13.8 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.000593/1.082, allocations: 36 kB / 0.9887 GB, free: 13.77 MB / 0.7481 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.001655/1.084, allocations: 0.9771 MB / 0.9896 GB, free: 12.76 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0008383/1.085, allocations: 365.5 kB / 0.99 GB, free: 12.35 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/1.085, allocations: 4 kB / 0.99 GB, free: 12.35 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0004237/1.085, allocations: 211.2 kB / 0.9902 GB, free: 12.12 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004151/1.086, allocations: 20.17 kB / 0.9902 GB, free: 12.1 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002173/1.088, allocations: 1.617 MB / 0.9918 GB, free: 10.4 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000455/1.088, allocations: 0.716 MB / 0.9925 GB, free: 9.66 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0001218/1.088, allocations: 20.53 kB / 0.9925 GB, free: 9.641 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001041/1.089, allocations: 31.42 kB / 0.9925 GB, free: 9.609 MB / 0.7481 GB Notification: Performance of SimCode: time 6.81e-07/1.089, allocations: 0 / 0.9925 GB, free: 9.609 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04237/1.131, allocations: 3.332 MB / 0.9958 GB, free: 6.422 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003903/1.131, allocations: 181.1 kB / 0.9959 GB, free: 6.184 MB / 0.7481 GB Error: Error building simulator. Build log: clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -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 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:149: ./gc/omc_gc.h:218:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:222: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 -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 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:218:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:222: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