Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_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_IDEAS_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="IDEAS_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.01032/0.01032, allocations: 170.4 kB / 15.11 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.796/0.796, allocations: 135.2 MB / 151 MB, free: 13.85 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.534/1.534, allocations: 223.2 MB / 406.8 MB, free: 3.16 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.001006/0.001006, allocations: 91.3 kB / 489.9 MB, free: 10.9 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005283/0.0005283, allocations: 8 kB / 0.5692 GB, free: 14.05 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5608/0.5614, allocations: 82.3 MB / 0.6495 GB, free: 36.15 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1571/0.7186, allocations: 113.4 MB / 0.7603 GB, free: 2.57 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002406/0.7189, allocations: 75.95 kB / 0.7604 GB, free: 2.496 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.01539/0.7343, allocations: 5.097 MB / 0.7653 GB, free: 13.38 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.174e-06/0.7343, allocations: 0 / 0.7653 GB, free: 13.38 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 2.029e-05/0.7343, allocations: 4 kB / 0.7653 GB, free: 13.37 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.0009171/0.7353, allocations: 0.5377 MB / 0.7659 GB, free: 12.76 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.353e-05/0.7353, allocations: 12.03 kB / 0.7659 GB, free: 12.75 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.055e-05/0.7354, allocations: 38.55 kB / 0.7659 GB, free: 12.7 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.226e-05/0.7355, allocations: 23.75 kB / 0.7659 GB, free: 12.68 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000328/0.7358, allocations: 234.8 kB / 0.7662 GB, free: 12.41 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.848e-05/0.7358, allocations: 8 kB / 0.7662 GB, free: 12.4 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.291e-05/0.7359, allocations: 16 kB / 0.7662 GB, free: 12.39 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003104/0.7362, allocations: 113.6 kB / 0.7663 GB, free: 12.27 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.947e-05/0.7362, allocations: 3.938 kB / 0.7663 GB, free: 12.27 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.909e-05/0.7362, allocations: 4 kB / 0.7663 GB, free: 12.26 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.7363, allocations: 0 / 0.7663 GB, free: 12.26 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002066/0.7365, allocations: 71.95 kB / 0.7664 GB, free: 12.19 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007379/0.7372, allocations: 440.4 kB / 0.7668 GB, free: 11.71 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002087/0.7374, allocations: 94.53 kB / 0.7669 GB, free: 11.61 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 2.489e-05/0.7375, allocations: 0 / 0.7669 GB, free: 11.61 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002896/0.7378, allocations: 178.7 kB / 0.7671 GB, free: 11.41 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=10): time 1.463e-06/0.7378, allocations: 0 / 0.7671 GB, free: 11.41 MB / 0.5417 GB Notification: Performance of matching and sorting (n=10): time 0.0008589/0.7387, allocations: 0.5109 MB / 0.7676 GB, free: 10.84 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001186/0.7388, allocations: 174.4 kB / 0.7677 GB, free: 10.64 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001672/0.739, allocations: 162.3 kB / 0.7679 GB, free: 10.47 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.774e-05/0.739, allocations: 29.7 kB / 0.7679 GB, free: 10.43 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 8.464e-05/0.7391, allocations: 116.2 kB / 0.768 GB, free: 10.31 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 2.735e-05/0.7391, allocations: 19.72 kB / 0.768 GB, free: 10.29 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.092e-05/0.7391, allocations: 4 kB / 0.768 GB, free: 10.29 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001686/0.7393, allocations: 326.8 kB / 0.7683 GB, free: 9.961 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000154/0.7395, allocations: 59.89 kB / 0.7684 GB, free: 9.902 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001702/0.7397, allocations: 114.8 kB / 0.7685 GB, free: 9.766 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002236/0.7399, allocations: 174.8 kB / 0.7687 GB, free: 9.57 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.7399, allocations: 0 / 0.7687 GB, free: 9.57 MB / 0.5417 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005598/0.7405, allocations: 348.1 kB / 0.769 GB, free: 9.199 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 8.31e-05/0.7406, allocations: 131 kB / 0.7691 GB, free: 9.047 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.7406, allocations: 0 / 0.7691 GB, free: 9.047 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.987e-05/0.7406, allocations: 4 kB / 0.7691 GB, free: 9.043 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001372/0.7407, allocations: 19.98 kB / 0.7692 GB, free: 9.023 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.506e-06/0.7408, allocations: 3.938 kB / 0.7692 GB, free: 9.02 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001088/0.7409, allocations: 23.8 kB / 0.7692 GB, free: 8.996 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.417e-05/0.7409, allocations: 15.98 kB / 0.7692 GB, free: 8.98 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.0001619/0.7411, allocations: 193.2 kB / 0.7694 GB, free: 8.77 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.998e-05/0.7411, allocations: 15.81 kB / 0.7694 GB, free: 8.754 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.124e-05/0.7412, allocations: 13.41 kB / 0.7694 GB, free: 8.734 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.604e-06/0.7412, allocations: 0 / 0.7694 GB, free: 8.734 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.7412, allocations: 3.984 kB / 0.7694 GB, free: 8.73 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.7412, allocations: 3.984 kB / 0.7694 GB, free: 8.727 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007968/0.742, allocations: 0.5954 MB / 0.77 GB, free: 8.062 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.744e-06/0.742, allocations: 0 / 0.77 GB, free: 8.062 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.878e-05/0.7421, allocations: 15.92 kB / 0.77 GB, free: 8.047 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.415e-06/0.7421, allocations: 0 / 0.77 GB, free: 8.047 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.37e-05/0.7421, allocations: 12 kB / 0.77 GB, free: 8.035 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.7422, allocations: 0 / 0.77 GB, free: 8.035 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.7422, allocations: 0 / 0.77 GB, free: 8.035 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005777/0.7427, allocations: 410.6 kB / 0.7704 GB, free: 7.605 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 7.356e-05/0.7428, allocations: 88.95 kB / 0.7705 GB, free: 7.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.819e-05/0.7429, allocations: 7.984 kB / 0.7705 GB, free: 7.492 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001235/0.743, allocations: 16 kB / 0.7705 GB, free: 7.477 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.15e-05/0.7431, allocations: 15.92 kB / 0.7705 GB, free: 7.461 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.746e-05/0.7431, allocations: 4 kB / 0.7705 GB, free: 7.457 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0001125/0.7432, allocations: 135.2 kB / 0.7707 GB, free: 7.324 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7432, allocations: 0 / 0.7707 GB, free: 7.324 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.00031/0.7435, allocations: 39.94 kB / 0.7707 GB, free: 7.285 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.001033/0.7446, allocations: 0.9585 MB / 0.7716 GB, free: 6.293 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0005361/0.7451, allocations: 373.4 kB / 0.772 GB, free: 5.879 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.7451, allocations: 0 / 0.772 GB, free: 5.879 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0002648/0.7454, allocations: 210.7 kB / 0.7722 GB, free: 5.648 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002434/0.7457, allocations: 17.52 kB / 0.7722 GB, free: 5.629 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001419/0.7471, allocations: 1.621 MB / 0.7738 GB, free: 3.93 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004115/0.7475, allocations: 0.7082 MB / 0.7745 GB, free: 3.195 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 8.321e-05/0.7476, allocations: 24.53 kB / 0.7745 GB, free: 3.172 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.046e-05/0.7477, allocations: 35.42 kB / 0.7746 GB, free: 3.137 MB / 0.5417 GB Notification: Performance of SimCode: time 4.41e-07/0.7477, allocations: 0 / 0.7746 GB, free: 3.137 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01559/0.7633, allocations: 3.281 MB / 0.7778 GB, free: 15.98 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002154/0.7636, allocations: 160.3 kB / 0.7779 GB, free: 15.75 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_IDEAS_Utilities_IO_Files_Examples_CSVWriter.o IDEAS_IDEAS_Utilities_IO_Files_Examples_CSVWriter.c In file included from IDEAS_IDEAS_Utilities_IO_Files_Examples_CSVWriter.c:7: In file included from ./IDEAS_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_IDEAS_Utilities_IO_Files_Examples_CSVWriter_functions.o IDEAS_IDEAS_Utilities_IO_Files_Examples_CSVWriter_functions.c In file included from IDEAS_IDEAS_Utilities_IO_Files_Examples_CSVWriter_functions.c:2: In file included from ./IDEAS_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_IDEAS_Utilities_IO_Files_Examples_CSVWriter_functions.c:7: In file included from ./IDEAS_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_IDEAS_Utilities_IO_Files_Examples_CSVWriter_functions.o] Error 1