Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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(IBPSA.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="IBPSA_latest_IBPSA_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.001555/0.001555, allocations: 96.19 kB / 15.69 MB, free: 476 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002432/0.002432, allocations: 174.9 kB / 16.57 MB, free: 6.859 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.466/2.466, allocations: 223.2 MB / 240.5 MB, free: 5.484 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 1.237/1.237, allocations: 113.7 MB / 405.3 MB, free: 4.715 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003726/0.0003728, allocations: 8 kB / 493 MB, free: 8.613 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3073/0.3077, allocations: 77.12 MB / 0.5567 GB, free: 11.7 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.IO.Files.Examples.CSVWriter): time 0.003669/0.3115, allocations: 1.282 MB / 0.558 GB, free: 10.41 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001451/0.313, allocations: 0.5537 MB / 0.5585 GB, free: 9.848 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001142/0.3131, allocations: 0 / 0.5585 GB, free: 9.848 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002234/0.3134, allocations: 11.94 kB / 0.5585 GB, free: 9.836 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005641/0.3139, allocations: 47.86 kB / 0.5586 GB, free: 9.789 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005804/0.3145, allocations: 95.77 kB / 0.5587 GB, free: 9.695 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002303/0.3148, allocations: 103.8 kB / 0.5588 GB, free: 9.594 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003408/0.3151, allocations: 17.09 kB / 0.5588 GB, free: 9.574 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002266/0.3154, allocations: 67.83 kB / 0.5589 GB, free: 9.508 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002077/0.3156, allocations: 79.72 kB / 0.5589 GB, free: 9.43 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 4.714e-05/0.3156, allocations: 4 kB / 0.5589 GB, free: 9.426 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.041e-05/0.3157, allocations: 15.94 kB / 0.5589 GB, free: 9.41 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001035/0.3158, allocations: 27.91 kB / 0.559 GB, free: 9.383 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 9.324e-05/0.316, allocations: 49.64 kB / 0.559 GB, free: 9.328 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002553/0.3162, allocations: 112 kB / 0.5591 GB, free: 9.219 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.3162, allocations: 0 / 0.5591 GB, free: 9.219 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.3162, allocations: 0 / 0.5591 GB, free: 9.219 MB / 430.1 MB Notification: Performance of Transformations before backend: time 6.171e-06/0.3163, allocations: 0 / 0.5591 GB, free: 9.219 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.001135/0.3174, allocations: 0.5328 MB / 0.5596 GB, free: 8.609 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.307e-05/0.3175, allocations: 8.031 kB / 0.5597 GB, free: 8.602 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.378e-05/0.3176, allocations: 34.56 kB / 0.5597 GB, free: 8.559 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.655e-05/0.3177, allocations: 19.81 kB / 0.5597 GB, free: 8.539 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005449/0.3182, allocations: 226.8 kB / 0.5599 GB, free: 8.277 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.563e-05/0.3183, allocations: 4 kB / 0.5599 GB, free: 8.273 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.897e-05/0.3183, allocations: 16 kB / 0.5599 GB, free: 8.258 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004718/0.3188, allocations: 125.5 kB / 0.5601 GB, free: 8.129 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.197e-05/0.3188, allocations: 0 / 0.5601 GB, free: 8.129 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.197e-05/0.3189, allocations: 8 kB / 0.5601 GB, free: 8.121 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.544e-06/0.3189, allocations: 0 / 0.5601 GB, free: 8.121 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003183/0.3192, allocations: 79.88 kB / 0.5601 GB, free: 8.043 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001187/0.3204, allocations: 424.6 kB / 0.5606 GB, free: 7.578 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003574/0.3208, allocations: 94.56 kB / 0.5606 GB, free: 7.477 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.555e-05/0.3209, allocations: 0 / 0.5606 GB, free: 7.477 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004837/0.3213, allocations: 182.9 kB / 0.5608 GB, free: 7.273 MB / 430.1 MB Notification: Performance of pre-optimization done (n=10): time 1.994e-06/0.3214, allocations: 4 kB / 0.5608 GB, free: 7.27 MB / 430.1 MB Notification: Performance of matching and sorting (n=10): time 0.001367/0.3227, allocations: 0.5146 MB / 0.5613 GB, free: 6.699 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001735/0.3229, allocations: 162.2 kB / 0.5615 GB, free: 6.504 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002992/0.3232, allocations: 178.6 kB / 0.5616 GB, free: 6.316 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 4.519e-05/0.3233, allocations: 25.7 kB / 0.5617 GB, free: 6.285 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001419/0.3235, allocations: 112.3 kB / 0.5618 GB, free: 6.168 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.04e-05/0.3235, allocations: 19.72 kB / 0.5618 GB, free: 6.148 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.236e-05/0.3236, allocations: 12 kB / 0.5618 GB, free: 6.137 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002814/0.3239, allocations: 322.8 kB / 0.5621 GB, free: 5.812 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002152/0.3241, allocations: 55.95 kB / 0.5622 GB, free: 5.758 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002991/0.3244, allocations: 110.8 kB / 0.5623 GB, free: 5.625 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004228/0.3248, allocations: 182.7 kB / 0.5625 GB, free: 5.422 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/0.3249, allocations: 3.938 kB / 0.5625 GB, free: 5.418 MB / 430.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.001013/0.3259, allocations: 352.3 kB / 0.5628 GB, free: 5.043 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001891/0.3261, allocations: 122.8 kB / 0.5629 GB, free: 4.898 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.386e-05/0.3261, allocations: 4 kB / 0.5629 GB, free: 4.895 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.674e-05/0.3262, allocations: 0 / 0.5629 GB, free: 4.895 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002048/0.3264, allocations: 19.98 kB / 0.5629 GB, free: 4.875 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.974e-05/0.3264, allocations: 8.281 kB / 0.5629 GB, free: 4.867 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001741/0.3266, allocations: 15.84 kB / 0.563 GB, free: 4.852 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.394e-05/0.3266, allocations: 15.98 kB / 0.563 GB, free: 4.836 MB / 430.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.0004391/0.3271, allocations: 201.7 kB / 0.5632 GB, free: 4.617 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.08e-05/0.3272, allocations: 19.77 kB / 0.5632 GB, free: 4.598 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.668e-05/0.3272, allocations: 13.41 kB / 0.5632 GB, free: 4.586 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.029e-05/0.3273, allocations: 4 kB / 0.5632 GB, free: 4.582 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.355e-05/0.3273, allocations: 3.984 kB / 0.5632 GB, free: 4.578 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.348e-06/0.3273, allocations: 3.984 kB / 0.5632 GB, free: 4.574 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001447/0.3288, allocations: 0.5915 MB / 0.5638 GB, free: 3.914 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.3288, allocations: 0 / 0.5638 GB, free: 3.914 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001024/0.3289, allocations: 19.98 kB / 0.5638 GB, free: 3.895 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.1e-06/0.3289, allocations: 0 / 0.5638 GB, free: 3.895 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.248e-05/0.329, allocations: 4 kB / 0.5638 GB, free: 3.891 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.49e-06/0.329, allocations: 3.984 kB / 0.5638 GB, free: 3.887 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.861e-06/0.329, allocations: 4 kB / 0.5638 GB, free: 3.883 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009208/0.3299, allocations: 414.5 kB / 0.5642 GB, free: 3.449 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.928e-05/0.33, allocations: 88.92 kB / 0.5643 GB, free: 3.344 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.583e-05/0.3301, allocations: 8 kB / 0.5643 GB, free: 3.336 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001795/0.3303, allocations: 11.98 kB / 0.5643 GB, free: 3.324 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.243e-05/0.3304, allocations: 8 kB / 0.5643 GB, free: 3.316 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.43e-05/0.3304, allocations: 15.98 kB / 0.5643 GB, free: 3.301 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002394/0.3307, allocations: 128.3 kB / 0.5645 GB, free: 3.176 MB / 430.1 MB Notification: Performance of sort global known variables: time 7.21e-07/0.3307, allocations: 0 / 0.5645 GB, free: 3.176 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005441/0.3312, allocations: 36 kB / 0.5645 GB, free: 3.141 MB / 430.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.002023/0.3333, allocations: 0.9676 MB / 0.5654 GB, free: 2.141 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.000928/0.3342, allocations: 373.4 kB / 0.5658 GB, free: 1.727 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.468e-06/0.3342, allocations: 4 kB / 0.5658 GB, free: 1.723 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003874/0.3346, allocations: 198.8 kB / 0.566 GB, free: 1.504 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004126/0.335, allocations: 20.39 kB / 0.566 GB, free: 1.488 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00241/0.3375, allocations: 1.625 MB / 0.5676 GB, free: 15.78 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004821/0.338, allocations: 0.716 MB / 0.5683 GB, free: 15.04 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001217/0.3381, allocations: 20.53 kB / 0.5683 GB, free: 15.02 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001091/0.3382, allocations: 35.42 kB / 0.5683 GB, free: 14.98 MB / 446.1 MB Notification: Performance of SimCode: time 8.92e-07/0.3383, allocations: 0 / 0.5683 GB, free: 14.98 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03269/0.371, allocations: 3.316 MB / 0.5716 GB, free: 11.82 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003617/0.3714, allocations: 183.6 kB / 0.5718 GB, free: 11.57 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/IBPSA 4.0.0-master/Resources/C-Sources" -c -o IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_CSVWriter.o IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_CSVWriter.c In file included from IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_CSVWriter.c:7: In file included from ./IBPSA_latest_IBPSA_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/IBPSA 4.0.0-master/Resources/C-Sources" -c -o IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_CSVWriter_functions.o IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_CSVWriter_functions.c In file included from IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_CSVWriter_functions.c:2: In file included from ./IBPSA_latest_IBPSA_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 IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_CSVWriter_functions.c:7: In file included from ./IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_CSVWriter_includes.h:5: /home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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: *** [: IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_CSVWriter_functions.o] Error 1