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.001315/0.001315, 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.001665/0.001665, 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.32/1.32, allocations: 223.2 MB / 239.9 MB, free: 5.469 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.296/2.296, allocations: 390.3 MB / 0.6653 GB, free: 3.039 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003219/0.000322, allocations: 8 kB / 0.8146 GB, free: 14.24 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6492/0.6496, allocations: 142.3 MB / 0.9536 GB, free: 8.098 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.001602/0.6512, allocations: 1.284 MB / 0.9548 GB, free: 7.09 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007449/0.652, allocations: 0.5622 MB / 0.9554 GB, free: 6.652 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.547e-05/0.6521, allocations: 1.188 kB / 0.9554 GB, free: 6.652 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001341/0.6522, allocations: 18.89 kB / 0.9554 GB, free: 6.637 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001967/0.6524, allocations: 39.45 kB / 0.9554 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003929/0.6528, allocations: 97.48 kB / 0.9555 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001338/0.653, allocations: 97.17 kB / 0.9556 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000121/0.6531, allocations: 23.75 kB / 0.9557 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001417/0.6532, allocations: 64.73 kB / 0.9557 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000122/0.6534, allocations: 73.38 kB / 0.9558 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.27e-05/0.6534, allocations: 10.22 kB / 0.9558 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.008e-05/0.6535, allocations: 18.94 kB / 0.9558 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.946e-05/0.6535, allocations: 30.03 kB / 0.9558 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.268e-05/0.6536, allocations: 48.89 kB / 0.9559 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000159/0.6538, allocations: 114.6 kB / 0.956 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.635e-06/0.6538, allocations: 0 / 0.956 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.705e-06/0.6538, allocations: 0 / 0.956 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.059e-06/0.6538, allocations: 1.094 kB / 0.956 GB, free: 6.238 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.0005432/0.6543, allocations: 0.5278 MB / 0.9565 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.235e-05/0.6544, allocations: 8.781 kB / 0.9565 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.638e-05/0.6544, allocations: 42.19 kB / 0.9566 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.91e-05/0.6545, allocations: 19.36 kB / 0.9566 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002765/0.6548, allocations: 230.2 kB / 0.9568 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.565e-05/0.6548, allocations: 6.562 kB / 0.9568 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.001e-05/0.6548, allocations: 15.38 kB / 0.9568 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002519/0.6551, allocations: 114.7 kB / 0.9569 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.244e-06/0.6551, allocations: 0 / 0.9569 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.671e-05/0.6551, allocations: 6.844 kB / 0.9569 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.59e-06/0.6551, allocations: 5.484 kB / 0.9569 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001923/0.6553, allocations: 77.31 kB / 0.957 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005514/0.6559, allocations: 420.4 kB / 0.9574 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001678/0.6561, allocations: 89.78 kB / 0.9575 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.187e-05/0.6561, allocations: 10.72 kB / 0.9575 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002068/0.6563, allocations: 184.2 kB / 0.9577 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 1.453e-06/0.6563, allocations: 0 / 0.9577 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.0006773/0.657, allocations: 0.5076 MB / 0.9582 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.292e-05/0.6571, allocations: 172.5 kB / 0.9584 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001348/0.6572, allocations: 183.6 kB / 0.9585 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.88e-05/0.6572, allocations: 29.64 kB / 0.9586 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.869e-05/0.6573, allocations: 107.5 kB / 0.9587 GB, free: 3.777 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.419e-05/0.6573, allocations: 27.55 kB / 0.9587 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.05e-05/0.6573, allocations: 2.938 kB / 0.9587 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.773e-05/0.6574, allocations: 327.2 kB / 0.959 GB, free: 3.43 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00013/0.6575, allocations: 67.48 kB / 0.9591 GB, free: 3.395 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001398/0.6577, allocations: 107.1 kB / 0.9592 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001642/0.6579, allocations: 176.1 kB / 0.9593 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.6579, allocations: 1.062 kB / 0.9593 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004616/0.6583, allocations: 355.4 kB / 0.9597 GB, free: 2.902 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 5.11e-05/0.6584, allocations: 120.6 kB / 0.9598 GB, free: 2.77 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.6584, allocations: 5.828 kB / 0.9598 GB, free: 2.766 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.394e-05/0.6584, allocations: 1.875 kB / 0.9598 GB, free: 2.766 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001329/0.6586, allocations: 23.77 kB / 0.9598 GB, free: 2.758 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.414e-06/0.6586, allocations: 7.406 kB / 0.9598 GB, free: 2.754 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001033/0.6587, allocations: 17.25 kB / 0.9598 GB, free: 2.746 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.119e-05/0.6587, allocations: 12.39 kB / 0.9599 GB, free: 2.742 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.0001185/0.6588, allocations: 191.3 kB / 0.96 GB, free: 2.551 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.826e-05/0.6589, allocations: 18.53 kB / 0.9601 GB, free: 2.543 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.444e-05/0.6589, allocations: 12.81 kB / 0.9601 GB, free: 2.531 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.928e-06/0.6589, allocations: 12.97 kB / 0.9601 GB, free: 2.52 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.6589, allocations: 0 / 0.9601 GB, free: 2.52 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.6589, allocations: 0 / 0.9601 GB, free: 2.52 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006321/0.6596, allocations: 0.59 MB / 0.9607 GB, free: 2.02 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.6596, allocations: 0 / 0.9607 GB, free: 2.02 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.49e-05/0.6597, allocations: 21.55 kB / 0.9607 GB, free: 2.008 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.945e-06/0.6597, allocations: 5.328 kB / 0.9607 GB, free: 2.004 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.963e-05/0.6597, allocations: 13.48 kB / 0.9607 GB, free: 1.996 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.6597, allocations: 0 / 0.9607 GB, free: 1.996 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.6597, allocations: 0 / 0.9607 GB, free: 1.996 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004572/0.6602, allocations: 415 kB / 0.9611 GB, free: 1.703 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.151e-05/0.6602, allocations: 89.05 kB / 0.9612 GB, free: 1.602 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.216e-05/0.6603, allocations: 8.078 kB / 0.9612 GB, free: 1.598 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001188/0.6604, allocations: 20.17 kB / 0.9612 GB, free: 1.586 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.31e-05/0.6604, allocations: 2.688 kB / 0.9612 GB, free: 1.586 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.865e-05/0.6605, allocations: 10.08 kB / 0.9612 GB, free: 1.582 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.782e-05/0.6605, allocations: 126.1 kB / 0.9613 GB, free: 1.484 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6605, allocations: 7.938 kB / 0.9613 GB, free: 1.477 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003013/0.6609, allocations: 38.95 kB / 0.9614 GB, free: 1.469 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.0007716/0.6616, allocations: 0.9597 MB / 0.9623 GB, free: 0.6445 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004328/0.6621, allocations: 369.1 kB / 0.9627 GB, free: 336 kB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.6621, allocations: 0 / 0.9627 GB, free: 336 kB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000202/0.6623, allocations: 216.3 kB / 0.9629 GB, free: 152 kB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002392/0.6625, allocations: 22.5 kB / 0.9629 GB, free: 140 kB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001239/0.6638, allocations: 1.615 MB / 0.9645 GB, free: 14.56 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002893/0.6641, allocations: 0.7101 MB / 0.9652 GB, free: 13.85 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 7.585e-05/0.6642, allocations: 23.56 kB / 0.9652 GB, free: 13.84 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.36e-05/0.6642, allocations: 41.86 kB / 0.9652 GB, free: 13.8 MB / 0.7325 GB Notification: Performance of SimCode: time 5.71e-07/0.6643, allocations: 0 / 0.9652 GB, free: 13.8 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01317/0.6774, allocations: 3.323 MB / 0.9685 GB, free: 12.18 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001553/0.6776, allocations: 183.6 kB / 0.9686 GB, free: 11.93 MB / 0.7325 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 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: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 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: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_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