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.001026/0.001026, 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.001167/0.001167, 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 2.377/2.377, allocations: 223.2 MB / 239.9 MB, free: 5.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 1.254/1.254, allocations: 132.2 MB / 423.2 MB, free: 2.102 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0006441/0.0006446, allocations: 15.98 kB / 0.5033 GB, free: 4.141 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7652/0.7659, allocations: 81.57 MB / 0.583 GB, free: 3.984 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.CSVWriter): time 0.003496/0.7695, allocations: 1.291 MB / 0.5842 GB, free: 3.055 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001635/0.7711, allocations: 0.5575 MB / 0.5848 GB, free: 2.672 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001183/0.7713, allocations: 6.625 kB / 0.5848 GB, free: 2.668 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001951/0.7715, allocations: 18.61 kB / 0.5848 GB, free: 2.656 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003176/0.7718, allocations: 38.83 kB / 0.5848 GB, free: 2.633 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006587/0.7725, allocations: 100 kB / 0.5849 GB, free: 2.582 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002308/0.7727, allocations: 93.64 kB / 0.585 GB, free: 2.539 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001721/0.7729, allocations: 23.23 kB / 0.585 GB, free: 2.531 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002171/0.7732, allocations: 66.88 kB / 0.5851 GB, free: 2.508 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001878/0.7734, allocations: 69.69 kB / 0.5852 GB, free: 2.48 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 4.368e-05/0.7734, allocations: 6.938 kB / 0.5852 GB, free: 2.48 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.994e-05/0.7735, allocations: 15.95 kB / 0.5852 GB, free: 2.477 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000101/0.7736, allocations: 26.25 kB / 0.5852 GB, free: 2.465 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 8.038e-05/0.7737, allocations: 53.11 kB / 0.5853 GB, free: 2.422 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002911/0.774, allocations: 118.8 kB / 0.5854 GB, free: 2.391 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.915e-06/0.774, allocations: 0 / 0.5854 GB, free: 2.391 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.774, allocations: 0 / 0.5854 GB, free: 2.391 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.43e-06/0.7741, allocations: 0 / 0.5854 GB, free: 2.391 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.0007663/0.7748, allocations: 0.5204 MB / 0.5859 GB, free: 1.863 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.16e-05/0.7749, allocations: 9.125 kB / 0.5859 GB, free: 1.863 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.266e-05/0.775, allocations: 43.67 kB / 0.5859 GB, free: 1.816 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.775e-05/0.7751, allocations: 22.34 kB / 0.586 GB, free: 1.805 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004699/0.7756, allocations: 235.9 kB / 0.5862 GB, free: 1.574 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.647e-05/0.7756, allocations: 11.81 kB / 0.5862 GB, free: 1.57 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.522e-05/0.7757, allocations: 10.81 kB / 0.5862 GB, free: 1.57 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004826/0.7762, allocations: 113.1 kB / 0.5863 GB, free: 1.52 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.53e-05/0.7762, allocations: 0.5312 kB / 0.5863 GB, free: 1.52 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.512e-05/0.7762, allocations: 3.594 kB / 0.5863 GB, free: 1.52 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.077e-05/0.7763, allocations: 1.844 kB / 0.5863 GB, free: 1.52 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003883/0.7767, allocations: 83.05 kB / 0.5864 GB, free: 1.496 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001115/0.7778, allocations: 422.3 kB / 0.5868 GB, free: 1.172 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003503/0.7782, allocations: 94.17 kB / 0.5869 GB, free: 1.125 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.493e-05/0.7782, allocations: 5.016 kB / 0.5869 GB, free: 1.121 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000453/0.7787, allocations: 182 kB / 0.5871 GB, free: 0.9883 MB / 430.1 MB Notification: Performance of pre-optimization done (n=10): time 3.166e-06/0.7787, allocations: 0 / 0.5871 GB, free: 0.9883 MB / 430.1 MB Notification: Performance of matching and sorting (n=10): time 0.00136/0.7801, allocations: 0.5061 MB / 0.5876 GB, free: 0.6367 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001037/0.7802, allocations: 175 kB / 0.5877 GB, free: 448 kB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002734/0.7805, allocations: 172.2 kB / 0.5879 GB, free: 320 kB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.017e-05/0.7805, allocations: 32.45 kB / 0.5879 GB, free: 284 kB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.511e-05/0.7806, allocations: 112.2 kB / 0.588 GB, free: 176 kB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.72e-05/0.7807, allocations: 29.08 kB / 0.5881 GB, free: 152 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.123e-05/0.7807, allocations: 3.438 kB / 0.5881 GB, free: 152 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001809/0.7809, allocations: 327.9 kB / 0.5884 GB, free: 15.83 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002569/0.7812, allocations: 58.53 kB / 0.5884 GB, free: 15.81 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003286/0.7815, allocations: 107.2 kB / 0.5885 GB, free: 15.73 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003963/0.7819, allocations: 179.6 kB / 0.5887 GB, free: 15.58 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.562e-06/0.782, allocations: 1.312 kB / 0.5887 GB, free: 15.58 MB / 446.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.001055/0.783, allocations: 354.3 kB / 0.589 GB, free: 15.36 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001666/0.7832, allocations: 119.7 kB / 0.5892 GB, free: 15.23 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.318e-05/0.7832, allocations: 6.625 kB / 0.5892 GB, free: 15.23 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.935e-05/0.7833, allocations: 3.406 kB / 0.5892 GB, free: 15.23 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001953/0.7835, allocations: 18.19 kB / 0.5892 GB, free: 15.23 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.272e-05/0.7835, allocations: 15.34 kB / 0.5892 GB, free: 15.22 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002091/0.7838, allocations: 23.7 kB / 0.5892 GB, free: 15.21 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.411e-05/0.7838, allocations: 9.5 kB / 0.5892 GB, free: 15.21 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.0003101/0.7841, allocations: 192.3 kB / 0.5894 GB, free: 15.02 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.86e-05/0.7842, allocations: 21.28 kB / 0.5894 GB, free: 15.01 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.52e-05/0.7843, allocations: 16.38 kB / 0.5895 GB, free: 15 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.949e-06/0.7843, allocations: 0.75 kB / 0.5895 GB, free: 15 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.7843, allocations: 4 kB / 0.5895 GB, free: 14.99 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.458e-06/0.7843, allocations: 5.656 kB / 0.5895 GB, free: 14.99 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001531/0.7859, allocations: 0.5865 MB / 0.59 GB, free: 14.55 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.428e-06/0.7859, allocations: 1.031 kB / 0.59 GB, free: 14.55 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001187/0.786, allocations: 17.2 kB / 0.5901 GB, free: 14.55 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.548e-06/0.7861, allocations: 0.6094 kB / 0.5901 GB, free: 14.55 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.68e-05/0.7861, allocations: 7.375 kB / 0.5901 GB, free: 14.55 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.356e-06/0.7861, allocations: 0.6562 kB / 0.5901 GB, free: 14.55 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.594e-06/0.7861, allocations: 3.953 kB / 0.5901 GB, free: 14.54 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001111/0.7872, allocations: 410.9 kB / 0.5905 GB, free: 14.29 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000106/0.7874, allocations: 98.58 kB / 0.5905 GB, free: 14.18 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.454e-05/0.7875, allocations: 8.5 kB / 0.5906 GB, free: 14.17 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002069/0.7877, allocations: 9.672 kB / 0.5906 GB, free: 14.17 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.941e-05/0.7878, allocations: 13.88 kB / 0.5906 GB, free: 14.16 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.274e-05/0.7878, allocations: 8.656 kB / 0.5906 GB, free: 14.16 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0002394/0.7881, allocations: 129.6 kB / 0.5907 GB, free: 14.07 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.7881, allocations: 0 / 0.5907 GB, free: 14.07 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0005898/0.7887, allocations: 39.56 kB / 0.5907 GB, free: 14.07 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.001929/0.7906, allocations: 0.9714 MB / 0.5917 GB, free: 13.26 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0009676/0.7916, allocations: 374.3 kB / 0.5921 GB, free: 12.96 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.7916, allocations: 0 / 0.5921 GB, free: 12.96 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004788/0.7921, allocations: 211.9 kB / 0.5923 GB, free: 12.8 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003852/0.7925, allocations: 14.62 kB / 0.5923 GB, free: 12.8 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002693/0.7952, allocations: 1.615 MB / 0.5938 GB, free: 11.26 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005473/0.7958, allocations: 0.7147 MB / 0.5945 GB, free: 10.56 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001429/0.796, allocations: 20.17 kB / 0.5946 GB, free: 10.56 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001087/0.7961, allocations: 32.67 kB / 0.5946 GB, free: 10.54 MB / 446.1 MB Notification: Performance of SimCode: time 1.103e-06/0.7961, allocations: 4 kB / 0.5946 GB, free: 10.53 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02523/0.8214, allocations: 3.316 MB / 0.5978 GB, free: 9.941 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003259/0.8218, allocations: 164.9 kB / 0.598 GB, free: 9.699 MB / 446.1 MB 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/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: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/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: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 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