Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.CSVWriter.conf.json 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/IDEAS 3.0.0-master/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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) Running command: "" <> buildModelFMU(IDEAS.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.009533/0.009533, allocations: 173.2 kB / 15.12 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7921/0.7921, allocations: 135.2 MB / 151 MB, free: 13.8 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.625/1.625, allocations: 223.2 MB / 406.8 MB, free: 3.219 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008584/0.0008584, allocations: 93.72 kB / 489.9 MB, free: 10.91 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004325/0.0004325, allocations: 11.98 kB / 0.5692 GB, free: 14.07 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3881/0.3885, allocations: 82.31 MB / 0.6495 GB, free: 36.03 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1561/0.5446, allocations: 113.4 MB / 0.7603 GB, free: 2.457 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002371/0.5449, allocations: 83.95 kB / 0.7604 GB, free: 2.375 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.01422/0.5591, allocations: 5.089 MB / 0.7653 GB, free: 13.26 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.385e-06/0.5592, allocations: 0 / 0.7653 GB, free: 13.26 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.532e-05/0.5592, allocations: 4 kB / 0.7653 GB, free: 13.25 MB / 0.5417 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.0006975/0.5599, allocations: 0.5404 MB / 0.7659 GB, free: 12.64 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.38e-05/0.56, allocations: 8.031 kB / 0.7659 GB, free: 12.64 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.725e-05/0.56, allocations: 46.55 kB / 0.7659 GB, free: 12.58 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.311e-05/0.5601, allocations: 23.81 kB / 0.7659 GB, free: 12.56 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003458/0.5604, allocations: 226.7 kB / 0.7662 GB, free: 12.3 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.017e-05/0.5605, allocations: 12 kB / 0.7662 GB, free: 12.29 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.318e-05/0.5605, allocations: 12 kB / 0.7662 GB, free: 12.27 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002758/0.5608, allocations: 117.5 kB / 0.7663 GB, free: 12.15 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.963e-06/0.5608, allocations: 0 / 0.7663 GB, free: 12.15 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.918e-05/0.5608, allocations: 4 kB / 0.7663 GB, free: 12.15 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.369e-06/0.5609, allocations: 0 / 0.7663 GB, free: 12.15 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001946/0.5611, allocations: 79.95 kB / 0.7664 GB, free: 12.07 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006784/0.5617, allocations: 432.5 kB / 0.7668 GB, free: 11.6 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001915/0.5619, allocations: 90.53 kB / 0.7669 GB, free: 11.5 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 2.22e-05/0.562, allocations: 0 / 0.7669 GB, free: 11.5 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002678/0.5623, allocations: 182.8 kB / 0.7671 GB, free: 11.3 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=10): time 1.883e-06/0.5623, allocations: 3.938 kB / 0.7671 GB, free: 11.29 MB / 0.5417 GB Notification: Performance of matching and sorting (n=10): time 0.0008226/0.5631, allocations: 0.5031 MB / 0.7675 GB, free: 10.73 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001126/0.5632, allocations: 178.2 kB / 0.7677 GB, free: 10.52 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001584/0.5634, allocations: 162.3 kB / 0.7679 GB, free: 10.36 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.959e-05/0.5634, allocations: 33.98 kB / 0.7679 GB, free: 10.32 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 8.625e-05/0.5635, allocations: 112.3 kB / 0.768 GB, free: 10.2 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 3.532e-05/0.5636, allocations: 23.7 kB / 0.768 GB, free: 10.18 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.243e-05/0.5636, allocations: 7.938 kB / 0.768 GB, free: 10.17 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001461/0.5637, allocations: 322.8 kB / 0.7683 GB, free: 9.844 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001435/0.5639, allocations: 63.95 kB / 0.7684 GB, free: 9.781 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001718/0.5641, allocations: 102.8 kB / 0.7685 GB, free: 9.656 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002174/0.5643, allocations: 174.8 kB / 0.7687 GB, free: 9.461 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.5643, allocations: 0 / 0.7687 GB, free: 9.461 MB / 0.5417 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005597/0.5649, allocations: 364 kB / 0.769 GB, free: 9.074 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 9.515e-05/0.565, allocations: 118.7 kB / 0.7691 GB, free: 8.934 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/0.565, allocations: 0 / 0.7691 GB, free: 8.934 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.735e-05/0.5651, allocations: 4 kB / 0.7691 GB, free: 8.93 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001236/0.5652, allocations: 28.17 kB / 0.7692 GB, free: 8.902 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.014e-05/0.5652, allocations: 8 kB / 0.7692 GB, free: 8.895 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000106/0.5653, allocations: 19.88 kB / 0.7692 GB, free: 8.875 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.653e-05/0.5653, allocations: 11.98 kB / 0.7692 GB, free: 8.863 MB / 0.5417 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.0001913/0.5655, allocations: 193.2 kB / 0.7694 GB, free: 8.652 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.819e-05/0.5656, allocations: 15.81 kB / 0.7694 GB, free: 8.637 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.114e-05/0.5656, allocations: 17.39 kB / 0.7694 GB, free: 8.613 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.305e-06/0.5656, allocations: 3.938 kB / 0.7694 GB, free: 8.609 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.513e-06/0.5657, allocations: 4 kB / 0.7694 GB, free: 8.605 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.5657, allocations: 4 kB / 0.7694 GB, free: 8.602 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007947/0.5665, allocations: 0.5799 MB / 0.77 GB, free: 7.953 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.5665, allocations: 3.938 kB / 0.77 GB, free: 7.949 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.814e-05/0.5666, allocations: 19.98 kB / 0.77 GB, free: 7.93 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.315e-06/0.5666, allocations: 0 / 0.77 GB, free: 7.93 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.363e-05/0.5666, allocations: 8 kB / 0.77 GB, free: 7.922 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.5666, allocations: 0 / 0.77 GB, free: 7.922 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.041e-06/0.5666, allocations: 0 / 0.77 GB, free: 7.922 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005806/0.5672, allocations: 418.5 kB / 0.7704 GB, free: 7.484 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 5.672e-05/0.5673, allocations: 89 kB / 0.7705 GB, free: 7.379 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.521e-05/0.5673, allocations: 8 kB / 0.7705 GB, free: 7.371 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001146/0.5674, allocations: 11.94 kB / 0.7705 GB, free: 7.359 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.001e-05/0.5675, allocations: 11.98 kB / 0.7705 GB, free: 7.348 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.58e-05/0.5675, allocations: 4 kB / 0.7705 GB, free: 7.344 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0001019/0.5676, allocations: 135.2 kB / 0.7707 GB, free: 7.211 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5676, allocations: 0 / 0.7707 GB, free: 7.211 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002756/0.5679, allocations: 36 kB / 0.7707 GB, free: 7.176 MB / 0.5417 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.001056/0.569, allocations: 0.9698 MB / 0.7717 GB, free: 6.172 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0005152/0.5695, allocations: 369.8 kB / 0.772 GB, free: 5.762 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.043e-06/0.5695, allocations: 0 / 0.772 GB, free: 5.762 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0002512/0.5698, allocations: 211 kB / 0.7722 GB, free: 5.531 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002399/0.57, allocations: 16.17 kB / 0.7722 GB, free: 5.512 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001293/0.5713, allocations: 1.625 MB / 0.7738 GB, free: 3.809 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003338/0.5717, allocations: 0.7082 MB / 0.7745 GB, free: 3.074 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 6.724e-05/0.5717, allocations: 20.53 kB / 0.7745 GB, free: 3.055 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.423e-05/0.5718, allocations: 31.42 kB / 0.7746 GB, free: 3.023 MB / 0.5417 GB Notification: Performance of SimCode: time 2.41e-07/0.5718, allocations: 4 kB / 0.7746 GB, free: 3.02 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01588/0.5877, allocations: 3.29 MB / 0.7778 GB, free: 15.87 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001759/0.5879, allocations: 169.7 kB / 0.7779 GB, free: 15.62 MB / 0.5573 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/IDEAS 3.0.0-master/Resources/C-Sources" -c -o IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_CSVWriter.o IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_CSVWriter.c In file included from IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_CSVWriter.c:7: In file included from ./IDEAS_dev_IDEAS_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:222:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:226: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/IDEAS 3.0.0-master/Resources/C-Sources" -c -o IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_CSVWriter_functions.o IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_CSVWriter_functions.c In file included from IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_CSVWriter_functions.c:2: In file included from ./IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_CSVWriter_functions.h:3: In file included from ./meta/meta_modelica.h:49: ./gc/omc_gc.h:222:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:226:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ In file included from IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_CSVWriter_functions.c:7: In file included from ./IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_CSVWriter_includes.h:5: /home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.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: *** [: IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_CSVWriter_functions.o] Error 1