Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter.conf.json 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/IDEAS 3.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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) Running command: "" <> buildModelFMU(IDEAS.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00639/0.006389, allocations: 171.3 kB / 15.11 MB, free: 5.984 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8788/0.8788, allocations: 135.2 MB / 151 MB, free: 13.84 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.492/1.492, allocations: 223.2 MB / 406.8 MB, free: 3.254 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009709/0.0009709, allocations: 100.6 kB / 489.9 MB, free: 10.94 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000364/0.0003642, allocations: 8 kB / 0.5692 GB, free: 14.1 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4207/0.4211, allocations: 82.31 MB / 0.6495 GB, free: 36.16 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1548/0.5759, allocations: 113.2 MB / 0.7601 GB, free: 2.77 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002776/0.5762, allocations: 91.92 kB / 0.7602 GB, free: 2.68 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.009572/0.5858, allocations: 3.336 MB / 0.7635 GB, free: 15.34 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.345e-06/0.5859, allocations: 0 / 0.7635 GB, free: 15.34 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.561e-05/0.5859, allocations: 4 kB / 0.7635 GB, free: 15.33 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0006191/0.5865, allocations: 466.6 kB / 0.7639 GB, free: 14.83 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.008e-05/0.5866, allocations: 8.031 kB / 0.7639 GB, free: 14.82 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.444e-05/0.5866, allocations: 42.5 kB / 0.764 GB, free: 14.77 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.783e-05/0.5867, allocations: 19.75 kB / 0.764 GB, free: 14.75 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003195/0.587, allocations: 231.7 kB / 0.7642 GB, free: 14.48 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.191e-05/0.587, allocations: 4 kB / 0.7642 GB, free: 14.48 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.057e-05/0.5871, allocations: 11.98 kB / 0.7642 GB, free: 14.46 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000299/0.5874, allocations: 105.6 kB / 0.7643 GB, free: 14.36 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.666e-06/0.5874, allocations: 0 / 0.7643 GB, free: 14.36 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.795e-05/0.5874, allocations: 11.94 kB / 0.7643 GB, free: 14.34 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.412e-06/0.5874, allocations: 0 / 0.7643 GB, free: 14.34 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002488/0.5877, allocations: 79.88 kB / 0.7644 GB, free: 14.27 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006583/0.5884, allocations: 400.4 kB / 0.7648 GB, free: 13.82 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001408/0.5885, allocations: 38.56 kB / 0.7648 GB, free: 13.78 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 1.577e-05/0.5885, allocations: 0 / 0.7648 GB, free: 13.78 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002347/0.5888, allocations: 118.3 kB / 0.7649 GB, free: 13.64 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=3): time 8.91e-07/0.5888, allocations: 0 / 0.7649 GB, free: 13.64 MB / 0.5417 GB Notification: Performance of matching and sorting (n=3): time 0.0004573/0.5893, allocations: 145.4 kB / 0.7651 GB, free: 13.5 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.822e-05/0.5893, allocations: 77.11 kB / 0.7651 GB, free: 13.4 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002596/0.5896, allocations: 228.2 kB / 0.7654 GB, free: 13.17 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.049e-05/0.5896, allocations: 29.7 kB / 0.7654 GB, free: 13.14 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 8.719e-05/0.5897, allocations: 120 kB / 0.7655 GB, free: 13.02 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 2.014e-05/0.5897, allocations: 15.84 kB / 0.7655 GB, free: 13 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.078e-06/0.5898, allocations: 0 / 0.7655 GB, free: 13 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001409/0.5899, allocations: 330.8 kB / 0.7658 GB, free: 12.67 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001237/0.59, allocations: 27.98 kB / 0.7659 GB, free: 12.64 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001275/0.5902, allocations: 55.58 kB / 0.7659 GB, free: 12.57 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001239/0.5903, allocations: 43.94 kB / 0.766 GB, free: 12.53 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/0.5903, allocations: 0 / 0.766 GB, free: 12.53 MB / 0.5417 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002933/0.5906, allocations: 121.4 kB / 0.7661 GB, free: 12.41 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.79e-05/0.5906, allocations: 11.95 kB / 0.7661 GB, free: 12.39 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.5906, allocations: 0 / 0.7661 GB, free: 12.39 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.298e-05/0.5907, allocations: 0 / 0.7661 GB, free: 12.39 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001225/0.5908, allocations: 15.98 kB / 0.7661 GB, free: 12.38 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.384e-06/0.5908, allocations: 3.984 kB / 0.7661 GB, free: 12.38 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.687e-05/0.5909, allocations: 23.95 kB / 0.7661 GB, free: 12.35 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.163e-05/0.5909, allocations: 4 kB / 0.7661 GB, free: 12.35 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * 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.0001078/0.591, allocations: 125.8 kB / 0.7662 GB, free: 12.21 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.86e-05/0.5911, allocations: 15.81 kB / 0.7663 GB, free: 12.2 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.732e-05/0.5911, allocations: 25.19 kB / 0.7663 GB, free: 12.18 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.864e-06/0.5911, allocations: 0 / 0.7663 GB, free: 12.18 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.5911, allocations: 0 / 0.7663 GB, free: 12.18 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-06/0.5912, allocations: 0 / 0.7663 GB, free: 12.18 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001942/0.5914, allocations: 225.6 kB / 0.7665 GB, free: 11.91 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.5914, allocations: 0 / 0.7665 GB, free: 11.91 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.081e-05/0.5915, allocations: 15.92 kB / 0.7665 GB, free: 11.89 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.567e-06/0.5915, allocations: 4 kB / 0.7665 GB, free: 11.89 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.327e-06/0.5915, allocations: 0 / 0.7665 GB, free: 11.89 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.985e-06/0.5915, allocations: 3.953 kB / 0.7665 GB, free: 11.88 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.5915, allocations: 0 / 0.7665 GB, free: 11.88 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002974/0.5918, allocations: 132.9 kB / 0.7667 GB, free: 11.73 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 7.817e-05/0.5919, allocations: 104.8 kB / 0.7668 GB, free: 11.61 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.152e-05/0.5919, allocations: 0 / 0.7668 GB, free: 11.61 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.965e-05/0.592, allocations: 15.98 kB / 0.7668 GB, free: 11.6 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.31e-05/0.5921, allocations: 11.94 kB / 0.7668 GB, free: 11.59 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.379e-05/0.5921, allocations: 4 kB / 0.7668 GB, free: 11.58 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.000168/0.5923, allocations: 184.5 kB / 0.767 GB, free: 11.41 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5923, allocations: 0 / 0.767 GB, free: 11.41 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002163/0.5925, allocations: 27.84 kB / 0.767 GB, free: 11.38 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * 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.0007191/0.5932, allocations: 0.6922 MB / 0.7677 GB, free: 10.66 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0002996/0.5935, allocations: 72 kB / 0.7677 GB, free: 10.59 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 4.629e-06/0.5936, allocations: 3.938 kB / 0.7677 GB, free: 10.59 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0001234/0.5937, allocations: 40.09 kB / 0.7678 GB, free: 10.55 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000256/0.594, allocations: 39.05 kB / 0.7678 GB, free: 10.51 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001629/0.5956, allocations: 1.22 MB / 0.769 GB, free: 9.223 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003496/0.596, allocations: 0.7277 MB / 0.7697 GB, free: 8.469 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 6.912e-05/0.596, allocations: 16.48 kB / 0.7697 GB, free: 8.453 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.317e-05/0.5961, allocations: 43.42 kB / 0.7698 GB, free: 8.41 MB / 0.5417 GB Notification: Performance of SimCode: time 2.21e-07/0.5961, allocations: 0 / 0.7698 GB, free: 8.41 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01666/0.6128, allocations: 3.227 MB / 0.7729 GB, free: 5.312 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002205/0.6131, allocations: 179.7 kB / 0.7731 GB, free: 5.066 MB / 0.5417 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 "-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_JSONWriter.o IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_JSONWriter.c In file included from IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_JSONWriter.c:7: In file included from ./IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_JSONWriter_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 "-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_JSONWriter_functions.o IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_JSONWriter_functions.c In file included from IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_JSONWriter_functions.c:2: In file included from ./IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_JSONWriter_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 IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_JSONWriter_functions.c:7: In file included from ./IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_JSONWriter_includes.h:5: In file included from /home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/Resources/C-Sources/jsonWriterInit.c:9: /home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/Resources/C-Sources/fileWriterStructure.c:4: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_JSONWriter_functions.o] Error 1