Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Utilities.IO.Files.Examples.CSVWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo): time 0.7403/0.7403, allocations: 128.7 MB / 143.7 MB, free: 2.207 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001242/0.001242, allocations: 182.4 kB / 173.7 MB, free: 6.004 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.781/1.781, allocations: 205.4 MB / 409 MB, free: 10.47 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009296/0.0009297, allocations: 94.41 kB / 486.6 MB, free: 12.98 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004619/0.000462, allocations: 13.03 kB / 0.5604 GB, free: 97.52 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1695/0.17, allocations: 76.76 MB / 0.6354 GB, free: 30.42 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1349/0.3049, allocations: 104.7 MB / 0.7376 GB, free: 5.625 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002684/0.3052, allocations: 79.95 kB / 0.7377 GB, free: 5.547 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 0.007494/0.3128, allocations: 2.594 MB / 0.7402 GB, free: 2.93 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.094e-06/0.3128, allocations: 0 / 0.7402 GB, free: 2.93 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 1.528e-05/0.3128, allocations: 4 kB / 0.7402 GB, free: 2.926 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.0008422/0.3137, allocations: 0.5173 MB / 0.7407 GB, free: 2.336 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 6.372e-05/0.3138, allocations: 12.03 kB / 0.7407 GB, free: 2.324 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.361e-05/0.3138, allocations: 34.55 kB / 0.7408 GB, free: 2.281 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.137e-05/0.3139, allocations: 23.77 kB / 0.7408 GB, free: 2.258 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000399/0.3143, allocations: 216.3 kB / 0.741 GB, free: 2.004 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.922e-05/0.3144, allocations: 7.938 kB / 0.741 GB, free: 1.996 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.871e-05/0.3144, allocations: 12 kB / 0.741 GB, free: 1.984 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003075/0.3147, allocations: 109.6 kB / 0.7411 GB, free: 1.871 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.197e-05/0.3147, allocations: 0 / 0.7411 GB, free: 1.871 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.747e-05/0.3148, allocations: 0 / 0.7411 GB, free: 1.871 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.145e-05/0.3148, allocations: 7.953 kB / 0.7411 GB, free: 1.863 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002066/0.315, allocations: 67.95 kB / 0.7412 GB, free: 1.797 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007951/0.3158, allocations: 388.7 kB / 0.7416 GB, free: 1.367 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001985/0.316, allocations: 82.53 kB / 0.7416 GB, free: 1.277 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 3.214e-05/0.3161, allocations: 8.141 kB / 0.7417 GB, free: 1.27 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002732/0.3164, allocations: 178.7 kB / 0.7418 GB, free: 1.07 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=10): time 1.633e-06/0.3164, allocations: 0 / 0.7418 GB, free: 1.07 MB / 0.5105 GB Notification: Performance of matching and sorting (n=10): time 0.0007547/0.3171, allocations: 486.9 kB / 0.7423 GB, free: 0.5391 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.848e-05/0.3172, allocations: 158.2 kB / 0.7424 GB, free: 356 kB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001519/0.3174, allocations: 153.5 kB / 0.7426 GB, free: 196 kB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.606e-05/0.3174, allocations: 29.7 kB / 0.7426 GB, free: 160 kB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 6.493e-05/0.3175, allocations: 112.3 kB / 0.7427 GB, free: 44 kB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 3.336e-05/0.3175, allocations: 27.64 kB / 0.7427 GB, free: 16 kB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.213e-05/0.3176, allocations: 8 kB / 0.7428 GB, free: 8 kB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.3105/0.6281, allocations: 320.7 kB / 0.7431 GB, free: 108.7 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003359/0.6285, allocations: 48.06 kB / 0.7431 GB, free: 108.7 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001568/0.6287, allocations: 101.5 kB / 0.7432 GB, free: 108.6 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001888/0.6289, allocations: 171.3 kB / 0.7434 GB, free: 108.5 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.6289, allocations: 4.781 kB / 0.7434 GB, free: 108.5 MB / 0.5105 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005094/0.6294, allocations: 324.2 kB / 0.7437 GB, free: 108.4 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 6.316e-05/0.6295, allocations: 118.5 kB / 0.7438 GB, free: 108.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.6295, allocations: 0 / 0.7438 GB, free: 108.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.357e-05/0.6295, allocations: 3.859 kB / 0.7438 GB, free: 108.2 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001283/0.6297, allocations: 21.64 kB / 0.7438 GB, free: 108.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.36e-05/0.6297, allocations: 9.453 kB / 0.7438 GB, free: 108.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001052/0.6298, allocations: 16.34 kB / 0.7438 GB, free: 108.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.964e-05/0.6298, allocations: 11.41 kB / 0.7438 GB, free: 108.2 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 () * 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.0001701/0.63, allocations: 189.1 kB / 0.744 GB, free: 108.1 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.433e-05/0.63, allocations: 14.09 kB / 0.744 GB, free: 108.1 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.562e-05/0.6301, allocations: 15.81 kB / 0.7441 GB, free: 108.1 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.6301, allocations: 2.469 kB / 0.7441 GB, free: 108.1 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.6301, allocations: 0 / 0.7441 GB, free: 108.1 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.6301, allocations: 0 / 0.7441 GB, free: 108.1 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000624/0.6308, allocations: 0.5627 MB / 0.7446 GB, free: 107.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.6308, allocations: 0 / 0.7446 GB, free: 107.7 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.769e-05/0.6308, allocations: 18.27 kB / 0.7446 GB, free: 107.7 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.907e-06/0.6309, allocations: 0.9062 kB / 0.7446 GB, free: 107.7 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.01e-05/0.6309, allocations: 9.578 kB / 0.7446 GB, free: 107.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.6309, allocations: 0 / 0.7446 GB, free: 107.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/0.6309, allocations: 1.438 kB / 0.7446 GB, free: 107.7 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004187/0.6313, allocations: 379.6 kB / 0.745 GB, free: 107.5 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 3.648e-05/0.6314, allocations: 92.22 kB / 0.7451 GB, free: 107.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.033e-05/0.6314, allocations: 7.5 kB / 0.7451 GB, free: 107.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001073/0.6315, allocations: 13.19 kB / 0.7451 GB, free: 107.4 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.679e-05/0.6316, allocations: 9.875 kB / 0.7451 GB, free: 107.4 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.562e-05/0.6316, allocations: 7.625 kB / 0.7451 GB, free: 107.4 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 8.073e-05/0.6317, allocations: 126.8 kB / 0.7452 GB, free: 107.3 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6317, allocations: 0 / 0.7452 GB, free: 107.3 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0002735/0.632, allocations: 34.59 kB / 0.7453 GB, free: 107.3 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) * 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.0007331/0.6327, allocations: 0.9398 MB / 0.7462 GB, free: 106.6 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0003959/0.6331, allocations: 353.3 kB / 0.7465 GB, free: 106.3 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.6331, allocations: 0 / 0.7465 GB, free: 106.3 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0001852/0.6333, allocations: 195.7 kB / 0.7467 GB, free: 106.2 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001552/0.6335, allocations: 7.594 kB / 0.7467 GB, free: 106.2 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009027/0.6344, allocations: 1.609 MB / 0.7483 GB, free: 104.7 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001341/0.6345, allocations: 0.7081 MB / 0.749 GB, free: 104 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 7.618e-05/0.6346, allocations: 17.94 kB / 0.749 GB, free: 104 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.039e-05/0.6347, allocations: 35.78 kB / 0.749 GB, free: 104 MB / 0.5105 GB Notification: Performance of SimCode: time 2.3e-07/0.6347, allocations: 4 kB / 0.749 GB, free: 104 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01519/0.6499, allocations: 2.881 MB / 0.7519 GB, free: 103.7 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001542/0.6501, allocations: 186.6 kB / 0.752 GB, free: 103.5 MB / 0.5105 GB 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 -c -o BuildSysPro_BuildSysPro_IBPSA_Utilities_IO_Files_Examples_CSVWriter.o BuildSysPro_BuildSysPro_IBPSA_Utilities_IO_Files_Examples_CSVWriter.c In file included from BuildSysPro_BuildSysPro_IBPSA_Utilities_IO_Files_Examples_CSVWriter.c:7: In file included from ./BuildSysPro_BuildSysPro_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:222:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:226: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 -c -o BuildSysPro_BuildSysPro_IBPSA_Utilities_IO_Files_Examples_CSVWriter_functions.o BuildSysPro_BuildSysPro_IBPSA_Utilities_IO_Files_Examples_CSVWriter_functions.c In file included from BuildSysPro_BuildSysPro_IBPSA_Utilities_IO_Files_Examples_CSVWriter_functions.c:2: In file included from ./BuildSysPro_BuildSysPro_IBPSA_Utilities_IO_Files_Examples_CSVWriter_functions.h:3: In file included from ./meta/meta_modelica.h:49: ./gc/omc_gc.h:222:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:226:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ In file included from BuildSysPro_BuildSysPro_IBPSA_Utilities_IO_Files_Examples_CSVWriter_functions.c:7: ./BuildSysPro_BuildSysPro_IBPSA_Utilities_IO_Files_Examples_CSVWriter_includes.h:4:10: fatal error: 'fileWriterStructure.h' file not found #include "fileWriterStructure.h" ^~~~~~~~~~~~~~~~~~~~~~~ 2 warnings and 1 error generated. make: *** [: BuildSysPro_BuildSysPro_IBPSA_Utilities_IO_Files_Examples_CSVWriter_functions.o] Error 1