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.0007678/0.0007678, allocations: 91.77 kB / 15.06 MB, free: 1.098 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.0008383/0.0008383, allocations: 172.7 kB / 15.95 MB, free: 208 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.308/1.308, allocations: 223.2 MB / 240 MB, free: 5.453 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.377/2.377, allocations: 409.4 MB / 0.684 GB, free: 0.9102 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003139/0.0003141, allocations: 8 kB / 0.8378 GB, free: 6.504 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5543/0.5547, allocations: 146.8 MB / 0.9811 GB, free: 6.25 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.001655/0.5564, allocations: 1.307 MB / 0.9824 GB, free: 4.938 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0007695/0.5571, allocations: 0.5771 MB / 0.983 GB, free: 4.352 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.274e-05/0.5572, allocations: 0 / 0.983 GB, free: 4.352 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.000115/0.5573, allocations: 15.86 kB / 0.983 GB, free: 4.336 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.000166/0.5575, allocations: 35.83 kB / 0.983 GB, free: 4.301 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003994/0.5579, allocations: 99.83 kB / 0.9831 GB, free: 4.203 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001675/0.5581, allocations: 147.6 kB / 0.9833 GB, free: 4.059 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 9.29e-05/0.5582, allocations: 29.08 kB / 0.9833 GB, free: 4.031 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001516/0.5583, allocations: 75.75 kB / 0.9834 GB, free: 3.957 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001255/0.5585, allocations: 75.72 kB / 0.9834 GB, free: 3.883 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.895e-05/0.5585, allocations: 4 kB / 0.9834 GB, free: 3.879 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 5.803e-05/0.5586, allocations: 24 kB / 0.9835 GB, free: 3.855 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 5.899e-05/0.5587, allocations: 19.92 kB / 0.9835 GB, free: 3.836 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 5.441e-05/0.5587, allocations: 53.64 kB / 0.9835 GB, free: 3.777 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001531/0.5589, allocations: 114 kB / 0.9836 GB, free: 3.668 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.5589, allocations: 0 / 0.9836 GB, free: 3.668 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.273e-06/0.5589, allocations: 4 kB / 0.9836 GB, free: 3.664 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.428e-06/0.5589, allocations: 0 / 0.9836 GB, free: 3.664 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.0005744/0.5595, allocations: 0.5249 MB / 0.9842 GB, free: 3.066 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.471e-05/0.5595, allocations: 16.03 kB / 0.9842 GB, free: 3.051 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.806e-05/0.5596, allocations: 38.56 kB / 0.9842 GB, free: 3.004 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.485e-05/0.5596, allocations: 11.91 kB / 0.9842 GB, free: 2.992 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002807/0.5599, allocations: 230.7 kB / 0.9844 GB, free: 2.727 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.905e-05/0.5599, allocations: 19.98 kB / 0.9845 GB, free: 2.707 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.684e-05/0.56, allocations: 12 kB / 0.9845 GB, free: 2.695 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002669/0.5602, allocations: 113.6 kB / 0.9846 GB, free: 2.578 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.775e-06/0.5603, allocations: 0 / 0.9846 GB, free: 2.578 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.315e-05/0.5603, allocations: 11.98 kB / 0.9846 GB, free: 2.566 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.5603, allocations: 0 / 0.9846 GB, free: 2.566 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001953/0.5605, allocations: 75.89 kB / 0.9847 GB, free: 2.492 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006019/0.5611, allocations: 428.6 kB / 0.9851 GB, free: 2.023 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001797/0.5613, allocations: 90.58 kB / 0.9852 GB, free: 1.926 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001553/0.5615, allocations: 84.81 kB / 0.9852 GB, free: 1.84 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.975e-05/0.5615, allocations: 3.984 kB / 0.9852 GB, free: 1.836 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002527/0.5618, allocations: 182.6 kB / 0.9854 GB, free: 1.633 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=10): time 1.502e-06/0.5618, allocations: 0 / 0.9854 GB, free: 1.633 MB / 0.7325 GB Notification: Performance of matching and sorting (n=10): time 0.0006772/0.5625, allocations: 364.9 kB / 0.9858 GB, free: 1.258 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.312e-05/0.5625, allocations: 166.2 kB / 0.9859 GB, free: 1.059 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001542/0.5627, allocations: 175.9 kB / 0.9861 GB, free: 0.875 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.48e-05/0.5627, allocations: 33.7 kB / 0.9861 GB, free: 0.8359 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 6.086e-05/0.5628, allocations: 108.4 kB / 0.9862 GB, free: 0.7227 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.437e-05/0.5629, allocations: 31.64 kB / 0.9863 GB, free: 0.6914 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.101e-05/0.5629, allocations: 0 / 0.9863 GB, free: 0.6914 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001033/0.563, allocations: 327.1 kB / 0.9866 GB, free: 372 kB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001297/0.5631, allocations: 47.97 kB / 0.9866 GB, free: 324 kB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001633/0.5633, allocations: 114.8 kB / 0.9867 GB, free: 184 kB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002066/0.5635, allocations: 182.7 kB / 0.9869 GB, free: 15.98 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.037e-06/0.5635, allocations: 3.953 kB / 0.9869 GB, free: 15.97 MB / 0.7481 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005151/0.564, allocations: 356.2 kB / 0.9872 GB, free: 15.59 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 7.252e-05/0.5641, allocations: 118.8 kB / 0.9873 GB, free: 15.45 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.5641, allocations: 4 kB / 0.9874 GB, free: 15.45 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.252e-05/0.5642, allocations: 4 kB / 0.9874 GB, free: 15.45 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001059/0.5643, allocations: 15.98 kB / 0.9874 GB, free: 15.43 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.859e-06/0.5643, allocations: 7.938 kB / 0.9874 GB, free: 15.42 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000101/0.5644, allocations: 23.84 kB / 0.9874 GB, free: 15.4 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.319e-05/0.5644, allocations: 8 kB / 0.9874 GB, free: 15.39 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.0001494/0.5646, allocations: 198.7 kB / 0.9876 GB, free: 15.18 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.875e-05/0.5646, allocations: 19.86 kB / 0.9876 GB, free: 15.16 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.407e-05/0.5646, allocations: 17.41 kB / 0.9876 GB, free: 15.14 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.5647, allocations: 0 / 0.9876 GB, free: 15.14 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.5647, allocations: 0 / 0.9876 GB, free: 15.14 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.589e-06/0.5647, allocations: 3.984 kB / 0.9876 GB, free: 15.14 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007008/0.5654, allocations: 0.5954 MB / 0.9882 GB, free: 14.47 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.5654, allocations: 4 kB / 0.9882 GB, free: 14.47 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.569e-05/0.5655, allocations: 11.98 kB / 0.9882 GB, free: 14.46 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.464e-06/0.5655, allocations: 0 / 0.9882 GB, free: 14.46 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.176e-05/0.5655, allocations: 8 kB / 0.9882 GB, free: 14.45 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.5655, allocations: 4.016 kB / 0.9882 GB, free: 14.45 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.5655, allocations: 3.984 kB / 0.9883 GB, free: 14.44 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005285/0.566, allocations: 410.6 kB / 0.9886 GB, free: 14.01 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 6.143e-05/0.5661, allocations: 96.91 kB / 0.9887 GB, free: 13.9 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.294e-05/0.5662, allocations: 4 kB / 0.9887 GB, free: 13.89 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001114/0.5663, allocations: 8 kB / 0.9887 GB, free: 13.89 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.623e-05/0.5663, allocations: 15.98 kB / 0.9888 GB, free: 13.87 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.182e-05/0.5664, allocations: 11.98 kB / 0.9888 GB, free: 13.86 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 9.313e-05/0.5664, allocations: 131.4 kB / 0.9889 GB, free: 13.73 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5665, allocations: 3.938 kB / 0.9889 GB, free: 13.73 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0002942/0.5668, allocations: 32 kB / 0.9889 GB, free: 13.7 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.0009049/0.5677, allocations: 0.9707 MB / 0.9899 GB, free: 12.69 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0004599/0.5681, allocations: 365.5 kB / 0.9902 GB, free: 12.28 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.5682, allocations: 0 / 0.9902 GB, free: 12.28 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0002338/0.5684, allocations: 215.2 kB / 0.9904 GB, free: 12.05 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002958/0.5687, allocations: 20.17 kB / 0.9905 GB, free: 12.03 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001506/0.5702, allocations: 0.9579 MB / 0.9914 GB, free: 11 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002565/0.5705, allocations: 0.7083 MB / 0.9921 GB, free: 10.27 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 6.554e-05/0.5706, allocations: 20.53 kB / 0.9921 GB, free: 10.25 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.952e-05/0.5706, allocations: 43.36 kB / 0.9921 GB, free: 10.21 MB / 0.7481 GB Notification: Performance of SimCode: time 4.11e-07/0.5706, allocations: 0 / 0.9921 GB, free: 10.21 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01405/0.5847, allocations: 3.367 MB / 0.9954 GB, free: 6.992 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001765/0.5849, allocations: 194.1 kB / 0.9956 GB, free: 6.754 MB / 0.7481 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 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: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 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: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_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