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/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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009941/0.0009941, allocations: 87.42 kB / 15.07 MB, free: 1.082 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.0009108/0.0009108, allocations: 168.7 kB / 15.95 MB, free: 200 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.339/1.339, allocations: 223.3 MB / 240 MB, free: 5.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9316/0.9316, allocations: 135.3 MB / 426.4 MB, free: 14.28 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002921/0.0002921, allocations: 8 kB / 0.5071 GB, free: 5.02 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1483/0.1487, allocations: 82.31 MB / 0.5875 GB, free: 2.879 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.CSVWriter): time 0.001986/0.1507, allocations: 1.285 MB / 0.5887 GB, free: 1.582 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.000895/0.1516, allocations: 0.5771 MB / 0.5893 GB, free: 1 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.733e-05/0.1517, allocations: 4 kB / 0.5893 GB, free: 0.9961 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001365/0.1518, allocations: 15.88 kB / 0.5893 GB, free: 0.9805 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001781/0.152, allocations: 31.83 kB / 0.5893 GB, free: 0.9492 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003775/0.1524, allocations: 103.9 kB / 0.5894 GB, free: 0.8477 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001557/0.1526, allocations: 143.6 kB / 0.5896 GB, free: 0.707 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.913e-05/0.1527, allocations: 24.98 kB / 0.5896 GB, free: 0.6797 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001161/0.1528, allocations: 75.75 kB / 0.5897 GB, free: 0.6055 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001193/0.1529, allocations: 79.72 kB / 0.5897 GB, free: 0.5273 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.173e-05/0.153, allocations: 8 kB / 0.5898 GB, free: 0.5195 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.2e-05/0.153, allocations: 16 kB / 0.5898 GB, free: 0.5039 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.022e-05/0.1531, allocations: 27.91 kB / 0.5898 GB, free: 488 kB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 5.203e-05/0.1531, allocations: 49.64 kB / 0.5898 GB, free: 432 kB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001434/0.1533, allocations: 116 kB / 0.59 GB, free: 316 kB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.1533, allocations: 4 kB / 0.59 GB, free: 312 kB / 494.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1533, allocations: 0 / 0.59 GB, free: 312 kB / 494.1 MB Notification: Performance of Transformations before backend: time 3.707e-06/0.1533, allocations: 0 / 0.59 GB, free: 312 kB / 494.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.0006233/0.154, allocations: 0.525 MB / 0.5905 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.769e-05/0.154, allocations: 11.97 kB / 0.5905 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.503e-05/0.154, allocations: 34.56 kB / 0.5905 GB, free: 15.65 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.464e-05/0.1541, allocations: 27.88 kB / 0.5905 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003077/0.1544, allocations: 240.2 kB / 0.5908 GB, free: 15.35 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.742e-05/0.1545, allocations: 7.938 kB / 0.5908 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.671e-05/0.1545, allocations: 16 kB / 0.5908 GB, free: 15.33 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002711/0.1548, allocations: 109.6 kB / 0.5909 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.227e-06/0.1548, allocations: 0 / 0.5909 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.019e-05/0.1548, allocations: 8 kB / 0.5909 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.1548, allocations: 0 / 0.5909 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001898/0.155, allocations: 75.95 kB / 0.591 GB, free: 15.13 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00063/0.1557, allocations: 428.6 kB / 0.5914 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000185/0.1559, allocations: 86.53 kB / 0.5915 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001511/0.156, allocations: 76.97 kB / 0.5915 GB, free: 14.49 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.601e-05/0.1561, allocations: 12.02 kB / 0.5916 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002579/0.1563, allocations: 178.7 kB / 0.5917 GB, free: 14.28 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=10): time 1.533e-06/0.1563, allocations: 0 / 0.5917 GB, free: 14.28 MB / 0.4981 GB Notification: Performance of matching and sorting (n=10): time 0.0006936/0.157, allocations: 368.6 kB / 0.5921 GB, free: 13.9 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.285e-05/0.1571, allocations: 174.2 kB / 0.5922 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001552/0.1573, allocations: 180.1 kB / 0.5924 GB, free: 13.51 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.706e-05/0.1573, allocations: 29.7 kB / 0.5924 GB, free: 13.47 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.513e-05/0.1574, allocations: 112.3 kB / 0.5926 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.58e-05/0.1574, allocations: 23.7 kB / 0.5926 GB, free: 13.33 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.41e-05/0.1575, allocations: 8 kB / 0.5926 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.661e-05/0.1576, allocations: 326.8 kB / 0.5929 GB, free: 13 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001304/0.1577, allocations: 55.95 kB / 0.5929 GB, free: 12.94 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001553/0.1579, allocations: 106.8 kB / 0.593 GB, free: 12.81 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001912/0.1581, allocations: 174.7 kB / 0.5932 GB, free: 12.62 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.1581, allocations: 7.938 kB / 0.5932 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005018/0.1586, allocations: 352 kB / 0.5936 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 7.299e-05/0.1587, allocations: 125.1 kB / 0.5937 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.1587, allocations: 0 / 0.5937 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.28e-05/0.1587, allocations: 8.25 kB / 0.5937 GB, free: 12.08 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001117/0.1588, allocations: 19.98 kB / 0.5937 GB, free: 12.06 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.993e-06/0.1588, allocations: 3.953 kB / 0.5937 GB, free: 12.06 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.415e-05/0.1589, allocations: 15.94 kB / 0.5937 GB, free: 12.04 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.102e-05/0.159, allocations: 8 kB / 0.5937 GB, free: 12.04 MB / 0.4981 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.0001512/0.1591, allocations: 204.8 kB / 0.5939 GB, free: 11.82 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.735e-05/0.1592, allocations: 15.81 kB / 0.5939 GB, free: 11.8 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.44e-05/0.1592, allocations: 17.41 kB / 0.594 GB, free: 11.78 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.1592, allocations: 0 / 0.594 GB, free: 11.78 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.1592, allocations: 0 / 0.594 GB, free: 11.78 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.1592, allocations: 7.953 kB / 0.594 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006917/0.1599, allocations: 0.5914 MB / 0.5945 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.1599, allocations: 4 kB / 0.5945 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.957e-05/0.16, allocations: 15.98 kB / 0.5946 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/0.16, allocations: 3.984 kB / 0.5946 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.867e-05/0.16, allocations: 8 kB / 0.5946 GB, free: 11.08 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.915e-06/0.16, allocations: 4 kB / 0.5946 GB, free: 11.07 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.1601, allocations: 3.953 kB / 0.5946 GB, free: 11.07 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005197/0.1606, allocations: 418.9 kB / 0.595 GB, free: 10.63 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.425e-05/0.1606, allocations: 88.92 kB / 0.5951 GB, free: 10.53 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.373e-05/0.1607, allocations: 4 kB / 0.5951 GB, free: 10.52 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001137/0.1608, allocations: 12 kB / 0.5951 GB, free: 10.51 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.05e-05/0.1608, allocations: 11.94 kB / 0.5951 GB, free: 10.5 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.93e-05/0.1609, allocations: 11.98 kB / 0.5951 GB, free: 10.49 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 9.766e-05/0.161, allocations: 132.3 kB / 0.5952 GB, free: 10.36 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.6e-07/0.161, allocations: 0 / 0.5952 GB, free: 10.36 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002885/0.1613, allocations: 36 kB / 0.5953 GB, free: 10.32 MB / 0.4981 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.0009152/0.1622, allocations: 0.9588 MB / 0.5962 GB, free: 9.332 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004772/0.1627, allocations: 373.5 kB / 0.5966 GB, free: 8.918 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1627, allocations: 0 / 0.5966 GB, free: 8.918 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002321/0.1629, allocations: 210.8 kB / 0.5968 GB, free: 8.688 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003031/0.1632, allocations: 26.05 kB / 0.5968 GB, free: 8.664 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001554/0.1648, allocations: 0.9478 MB / 0.5977 GB, free: 7.648 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002668/0.1651, allocations: 0.7043 MB / 0.5984 GB, free: 6.918 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 6.537e-05/0.1652, allocations: 20.53 kB / 0.5984 GB, free: 6.898 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.872e-05/0.1652, allocations: 43.42 kB / 0.5985 GB, free: 6.855 MB / 0.4981 GB Notification: Performance of SimCode: time 2.51e-07/0.1652, allocations: 0 / 0.5985 GB, free: 6.855 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0136/0.1789, allocations: 3.347 MB / 0.6017 GB, free: 3.664 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001631/0.179, allocations: 179.5 kB / 0.6019 GB, free: 3.422 MB / 0.4981 GB 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-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: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-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: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_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