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/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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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(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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007881/0.0007881, allocations: 91.53 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.0008567/0.0008568, 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.314/1.314, allocations: 223.3 MB / 240 MB, free: 5.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7291/0.7291, allocations: 132.3 MB / 423.4 MB, free: 2.07 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003046/0.0003047, allocations: 12.22 kB / 0.5035 GB, free: 4.105 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3926/0.3929, allocations: 81.57 MB / 0.5832 GB, free: 3.98 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.CSVWriter): time 0.001513/0.3945, allocations: 1.298 MB / 0.5844 GB, free: 3.047 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007239/0.3952, allocations: 0.5764 MB / 0.585 GB, free: 2.648 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.289e-05/0.3953, allocations: 5.594 kB / 0.585 GB, free: 2.645 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001267/0.3954, allocations: 27.5 kB / 0.585 GB, free: 2.625 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001652/0.3956, allocations: 35.19 kB / 0.585 GB, free: 2.605 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003569/0.396, allocations: 90.69 kB / 0.5851 GB, free: 2.562 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.000162/0.3961, allocations: 150.9 kB / 0.5853 GB, free: 2.496 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.228e-05/0.3962, allocations: 26.69 kB / 0.5853 GB, free: 2.484 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001202/0.3964, allocations: 72.38 kB / 0.5854 GB, free: 2.461 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001312/0.3965, allocations: 79.09 kB / 0.5854 GB, free: 2.43 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 3.245e-05/0.3966, allocations: 6.094 kB / 0.5855 GB, free: 2.43 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.829e-05/0.3966, allocations: 18.19 kB / 0.5855 GB, free: 2.426 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 6.526e-05/0.3967, allocations: 26.41 kB / 0.5855 GB, free: 2.414 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 4.85e-05/0.3967, allocations: 49.7 kB / 0.5855 GB, free: 2.375 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000163/0.3969, allocations: 113.4 kB / 0.5857 GB, free: 2.348 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.3969, allocations: 4.812 kB / 0.5857 GB, free: 2.344 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.3969, allocations: 0.6562 kB / 0.5857 GB, free: 2.344 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.597e-06/0.397, allocations: 0 / 0.5857 GB, free: 2.344 MB / 430.1 MB 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.0004745/0.3974, allocations: 0.5234 MB / 0.5862 GB, free: 1.812 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.328e-05/0.3975, allocations: 9.719 kB / 0.5862 GB, free: 1.812 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.297e-05/0.3975, allocations: 38.64 kB / 0.5862 GB, free: 1.77 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.598e-05/0.3976, allocations: 15.97 kB / 0.5862 GB, free: 1.766 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000232/0.3978, allocations: 231.3 kB / 0.5865 GB, free: 1.539 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.662e-05/0.3978, allocations: 14.44 kB / 0.5865 GB, free: 1.531 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.844e-05/0.3979, allocations: 11.03 kB / 0.5865 GB, free: 1.531 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002504/0.3981, allocations: 122 kB / 0.5866 GB, free: 1.473 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.955e-06/0.3981, allocations: 0.9375 kB / 0.5866 GB, free: 1.473 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.673e-05/0.3982, allocations: 3.859 kB / 0.5866 GB, free: 1.473 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.138e-06/0.3982, allocations: 0 / 0.5866 GB, free: 1.473 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001961/0.3984, allocations: 80.78 kB / 0.5867 GB, free: 1.453 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005635/0.3989, allocations: 425.1 kB / 0.5871 GB, free: 1.125 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001859/0.3991, allocations: 91.27 kB / 0.5872 GB, free: 1.082 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000162/0.3993, allocations: 74.02 kB / 0.5872 GB, free: 1.059 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.38e-05/0.3993, allocations: 5.781 kB / 0.5872 GB, free: 1.055 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002527/0.3996, allocations: 194.5 kB / 0.5874 GB, free: 0.9102 MB / 430.1 MB Notification: Performance of pre-optimization done (n=10): time 1.543e-06/0.3996, allocations: 0 / 0.5874 GB, free: 0.9102 MB / 430.1 MB Notification: Performance of matching and sorting (n=10): time 0.0006892/0.4003, allocations: 372.2 kB / 0.5878 GB, free: 0.7344 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.912e-05/0.4004, allocations: 162.6 kB / 0.5879 GB, free: 0.5469 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000133/0.4005, allocations: 176.5 kB / 0.5881 GB, free: 428 kB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.68e-05/0.4005, allocations: 29.55 kB / 0.5881 GB, free: 396 kB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.695e-05/0.4006, allocations: 106.9 kB / 0.5882 GB, free: 292 kB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.512e-05/0.4006, allocations: 27.34 kB / 0.5883 GB, free: 272 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.272e-05/0.4006, allocations: 6.75 kB / 0.5883 GB, free: 268 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 7.142e-05/0.4007, allocations: 326.2 kB / 0.5886 GB, free: 15.94 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001408/0.4009, allocations: 54.73 kB / 0.5886 GB, free: 15.93 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001827/0.4011, allocations: 114.7 kB / 0.5887 GB, free: 15.84 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002137/0.4013, allocations: 182.1 kB / 0.5889 GB, free: 15.69 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.4013, allocations: 0 / 0.5889 GB, free: 15.69 MB / 446.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005657/0.4019, allocations: 355.3 kB / 0.5893 GB, free: 15.47 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.206e-05/0.4019, allocations: 120.1 kB / 0.5894 GB, free: 15.34 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.402, allocations: 1.375 kB / 0.5894 GB, free: 15.34 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.14e-05/0.402, allocations: 3.625 kB / 0.5894 GB, free: 15.34 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001128/0.4021, allocations: 22.52 kB / 0.5894 GB, free: 15.34 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.054e-05/0.4021, allocations: 7.109 kB / 0.5894 GB, free: 15.34 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001044/0.4022, allocations: 15.5 kB / 0.5894 GB, free: 15.33 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.496e-05/0.4023, allocations: 13.34 kB / 0.5894 GB, free: 15.33 MB / 446.1 MB 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.0001586/0.4024, allocations: 195.1 kB / 0.5896 GB, free: 15.14 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.004e-05/0.4025, allocations: 17.22 kB / 0.5896 GB, free: 15.13 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.817e-05/0.4025, allocations: 18.81 kB / 0.5896 GB, free: 15.12 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.285e-06/0.4025, allocations: 5.156 kB / 0.5897 GB, free: 15.11 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.4025, allocations: 0.6562 kB / 0.5897 GB, free: 15.11 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.039e-06/0.4025, allocations: 4.891 kB / 0.5897 GB, free: 15.11 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007777/0.4033, allocations: 0.587 MB / 0.5902 GB, free: 14.67 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.023e-06/0.4033, allocations: 4.281 kB / 0.5902 GB, free: 14.67 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.129e-05/0.4034, allocations: 18.25 kB / 0.5903 GB, free: 14.66 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.4034, allocations: 0 / 0.5903 GB, free: 14.66 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.185e-05/0.4035, allocations: 12.95 kB / 0.5903 GB, free: 14.66 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.316e-06/0.4035, allocations: 3.953 kB / 0.5903 GB, free: 14.66 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.4035, allocations: 4 kB / 0.5903 GB, free: 14.65 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005752/0.404, allocations: 411.3 kB / 0.5907 GB, free: 14.39 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.546e-05/0.4041, allocations: 90.22 kB / 0.5908 GB, free: 14.29 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.958e-05/0.4042, allocations: 8.25 kB / 0.5908 GB, free: 14.29 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001158/0.4043, allocations: 9.359 kB / 0.5908 GB, free: 14.29 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.146e-05/0.4043, allocations: 11.02 kB / 0.5908 GB, free: 14.29 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.183e-05/0.4044, allocations: 11.38 kB / 0.5908 GB, free: 14.28 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001073/0.4045, allocations: 134.8 kB / 0.5909 GB, free: 14.19 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4045, allocations: 0 / 0.5909 GB, free: 14.19 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003036/0.4048, allocations: 34.5 kB / 0.591 GB, free: 14.18 MB / 446.1 MB 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.0009319/0.4057, allocations: 0.9606 MB / 0.5919 GB, free: 13.39 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004887/0.4062, allocations: 374 kB / 0.5922 GB, free: 13.09 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.4062, allocations: 0.75 kB / 0.5922 GB, free: 13.09 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002478/0.4065, allocations: 207 kB / 0.5924 GB, free: 12.93 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003103/0.4068, allocations: 29.14 kB / 0.5925 GB, free: 12.92 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001659/0.4085, allocations: 0.9479 MB / 0.5934 GB, free: 12.33 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002717/0.4088, allocations: 0.7089 MB / 0.5941 GB, free: 11.63 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 7.447e-05/0.4089, allocations: 20.52 kB / 0.5941 GB, free: 11.63 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.858e-05/0.409, allocations: 37.5 kB / 0.5941 GB, free: 11.6 MB / 446.1 MB Notification: Performance of SimCode: time 3.11e-07/0.409, allocations: 0 / 0.5941 GB, free: 11.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01505/0.424, allocations: 3.354 MB / 0.5974 GB, free: 10.91 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001611/0.4242, allocations: 169.1 kB / 0.5976 GB, free: 10.67 MB / 446.1 MB 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/IDEAS 3.0.0/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: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/IDEAS 3.0.0/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: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 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/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