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.001618/0.001618, allocations: 174.7 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7451/0.7451, allocations: 133.4 MB / 146.7 MB, free: 10.78 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.548/1.548, allocations: 221.3 MB / 400.4 MB, free: 5.844 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009599/0.0009601, allocations: 103.6 kB / 483.3 MB, free: 5.875 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 4.076e-05/4.08e-05, allocations: 3.156 kB / 0.5601 GB, free: 87.88 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2159/0.2159, allocations: 82.3 MB / 0.6405 GB, free: 7.727 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7608/0.9768, allocations: 113.3 MB / 0.7512 GB, free: 11.94 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003287/0.9772, allocations: 80.81 kB / 0.7513 GB, free: 11.94 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.01333/0.9906, allocations: 5.064 MB / 0.7562 GB, free: 27.27 MB / 0.5105 GB Notification: Performance of FrontEnd: time 4.669e-06/0.9906, allocations: 3.844 kB / 0.7562 GB, free: 27.27 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 1.55e-05/0.9907, allocations: 0 / 0.7562 GB, free: 27.27 MB / 0.5105 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.0006302/0.9913, allocations: 0.5172 MB / 0.7567 GB, free: 26.75 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.989e-05/0.9914, allocations: 11.53 kB / 0.7567 GB, free: 26.75 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.721e-05/0.9914, allocations: 38 kB / 0.7568 GB, free: 26.71 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.629e-05/0.9915, allocations: 19.53 kB / 0.7568 GB, free: 26.7 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003675/0.9919, allocations: 229.8 kB / 0.757 GB, free: 26.47 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.96e-05/0.9919, allocations: 10.25 kB / 0.757 GB, free: 26.47 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.207e-05/0.9919, allocations: 12.97 kB / 0.757 GB, free: 26.47 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002445/0.9922, allocations: 110.3 kB / 0.7571 GB, free: 26.42 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.458e-06/0.9922, allocations: 0 / 0.7571 GB, free: 26.42 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.84e-05/0.9923, allocations: 1.312 kB / 0.7571 GB, free: 26.42 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.532e-06/0.9923, allocations: 3.875 kB / 0.7572 GB, free: 26.42 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001188/0.9924, allocations: 54.33 kB / 0.7572 GB, free: 26.41 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006976/0.9931, allocations: 426 kB / 0.7576 GB, free: 26.07 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001311/0.9932, allocations: 74.69 kB / 0.7577 GB, free: 26.04 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.782e-05/0.9933, allocations: 72.42 kB / 0.7577 GB, free: 26.02 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 2.791e-05/0.9934, allocations: 3.984 kB / 0.7578 GB, free: 26.02 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002131/0.9936, allocations: 174.3 kB / 0.7579 GB, free: 25.89 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=10): time 1.433e-06/0.9936, allocations: 0 / 0.7579 GB, free: 25.89 MB / 0.5105 GB Notification: Performance of matching and sorting (n=10): time 0.0004795/0.9941, allocations: 272 kB / 0.7582 GB, free: 25.77 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.01e-05/0.9942, allocations: 162 kB / 0.7583 GB, free: 25.57 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001511/0.9944, allocations: 163.7 kB / 0.7585 GB, free: 25.46 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.509e-05/0.9944, allocations: 32.23 kB / 0.7585 GB, free: 25.43 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 8.009e-05/0.9945, allocations: 112 kB / 0.7586 GB, free: 25.34 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 3.078e-05/0.9945, allocations: 26.86 kB / 0.7587 GB, free: 25.32 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.195e-05/0.9945, allocations: 3.719 kB / 0.7587 GB, free: 25.32 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001683/0.9947, allocations: 329.7 kB / 0.759 GB, free: 25 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.496e-05/0.9948, allocations: 40.2 kB / 0.759 GB, free: 25 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001136/0.9949, allocations: 97.42 kB / 0.7591 GB, free: 24.93 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001803/0.9951, allocations: 164.2 kB / 0.7593 GB, free: 24.79 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.9951, allocations: 0 / 0.7593 GB, free: 24.79 MB / 0.5105 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003872/0.9955, allocations: 331.2 kB / 0.7596 GB, free: 24.59 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 9.571e-05/0.9956, allocations: 129.6 kB / 0.7597 GB, free: 24.45 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.626e-06/0.9956, allocations: 0 / 0.7597 GB, free: 24.45 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.235e-05/0.9957, allocations: 3.844 kB / 0.7597 GB, free: 24.45 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001321/0.9958, allocations: 19.36 kB / 0.7597 GB, free: 24.45 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.849e-06/0.9958, allocations: 0 / 0.7597 GB, free: 24.45 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001149/0.996, allocations: 22.36 kB / 0.7597 GB, free: 24.44 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.577e-05/0.996, allocations: 11.64 kB / 0.7598 GB, free: 24.43 MB / 0.5105 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 () * 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.000141/0.9961, allocations: 188.8 kB / 0.7599 GB, free: 24.25 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.95e-05/0.9962, allocations: 15.7 kB / 0.7599 GB, free: 24.25 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.222e-05/0.9962, allocations: 19.53 kB / 0.76 GB, free: 24.23 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.9962, allocations: 0 / 0.76 GB, free: 24.23 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.9962, allocations: 0 / 0.76 GB, free: 24.23 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.9963, allocations: 0 / 0.76 GB, free: 24.23 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006238/0.9969, allocations: 0.5634 MB / 0.7605 GB, free: 23.82 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.9969, allocations: 0 / 0.7605 GB, free: 23.82 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.858e-05/0.997, allocations: 19.48 kB / 0.7605 GB, free: 23.81 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/0.997, allocations: 0 / 0.7605 GB, free: 23.81 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.107e-05/0.997, allocations: 7.844 kB / 0.7605 GB, free: 23.81 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.997, allocations: 0 / 0.7605 GB, free: 23.81 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.997, allocations: 3.953 kB / 0.7605 GB, free: 23.8 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004332/0.9975, allocations: 382.3 kB / 0.7609 GB, free: 23.57 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 6.994e-05/0.9975, allocations: 91.64 kB / 0.761 GB, free: 23.47 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.17e-05/0.9976, allocations: 3.844 kB / 0.761 GB, free: 23.47 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001216/0.9977, allocations: 19.58 kB / 0.761 GB, free: 23.46 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.221e-05/0.9978, allocations: 3.875 kB / 0.761 GB, free: 23.46 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.931e-05/0.9978, allocations: 15.62 kB / 0.761 GB, free: 23.46 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 9.612e-05/0.9979, allocations: 128.3 kB / 0.7612 GB, free: 23.38 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9979, allocations: 0 / 0.7612 GB, free: 23.38 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0002785/0.9982, allocations: 34.72 kB / 0.7612 GB, free: 23.38 MB / 0.5105 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) * 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.0008705/0.9991, allocations: 0.9472 MB / 0.7621 GB, free: 22.6 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0004243/0.9995, allocations: 340.2 kB / 0.7624 GB, free: 22.34 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.9995, allocations: 8 kB / 0.7625 GB, free: 22.33 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0001661/0.9997, allocations: 193.5 kB / 0.7626 GB, free: 22.19 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000245/1, allocations: 14.38 kB / 0.7626 GB, free: 22.19 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006777/1.001, allocations: 256.6 kB / 0.7629 GB, free: 22.03 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003125/1.001, allocations: 0.7112 MB / 0.7636 GB, free: 21.32 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 9.103e-05/1.001, allocations: 27.86 kB / 0.7636 GB, free: 21.3 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.432e-05/1.001, allocations: 32.52 kB / 0.7636 GB, free: 21.29 MB / 0.5105 GB Notification: Performance of SimCode: time 6.91e-07/1.001, allocations: 3.844 kB / 0.7636 GB, free: 21.29 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01997/1.021, allocations: 3.291 MB / 0.7669 GB, free: 19.67 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001972/1.021, allocations: 148.7 kB / 0.767 GB, free: 19.44 MB / 0.5105 GB Error: Error building simulator. Build log: clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' "-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:111: ./gc/omc_gc.h:217:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:221: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 -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' "-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:217:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:221: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