Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_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_IDEAS_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="IDEAS_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.009162/0.009162, allocations: 172 kB / 15.11 MB, free: 5.98 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7942/0.7942, allocations: 135.2 MB / 151 MB, free: 13.82 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.596/1.596, allocations: 223.2 MB / 406.8 MB, free: 3.23 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.001037/0.001037, allocations: 94.48 kB / 489.9 MB, free: 10.9 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000351/0.0003511, allocations: 11.98 kB / 0.5692 GB, free: 14.05 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4056/0.4059, allocations: 82.3 MB / 0.6495 GB, free: 36.11 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1538/0.5597, allocations: 113.3 MB / 0.7601 GB, free: 2.699 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002988/0.5601, allocations: 79.95 kB / 0.7602 GB, free: 2.621 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.009839/0.57, allocations: 3.34 MB / 0.7635 GB, free: 15.27 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.345e-06/0.57, allocations: 0 / 0.7635 GB, free: 15.27 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.627e-05/0.57, allocations: 4 kB / 0.7635 GB, free: 15.27 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.0006418/0.5707, allocations: 458.6 kB / 0.7639 GB, free: 14.77 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.568e-05/0.5707, allocations: 8.031 kB / 0.7639 GB, free: 14.77 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.863e-05/0.5708, allocations: 42.5 kB / 0.764 GB, free: 14.71 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.947e-05/0.5709, allocations: 19.81 kB / 0.764 GB, free: 14.7 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002997/0.5712, allocations: 239.6 kB / 0.7642 GB, free: 14.42 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.02e-05/0.5712, allocations: 4 kB / 0.7642 GB, free: 14.41 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.47e-05/0.5712, allocations: 8 kB / 0.7642 GB, free: 14.41 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002775/0.5715, allocations: 105.6 kB / 0.7643 GB, free: 14.3 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/0.5715, allocations: 0 / 0.7643 GB, free: 14.3 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.578e-05/0.5715, allocations: 11.94 kB / 0.7643 GB, free: 14.29 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.509e-06/0.5716, allocations: 0 / 0.7643 GB, free: 14.29 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002373/0.5718, allocations: 75.94 kB / 0.7644 GB, free: 14.21 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006062/0.5724, allocations: 404.4 kB / 0.7648 GB, free: 13.77 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001473/0.5726, allocations: 42.56 kB / 0.7648 GB, free: 13.71 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 1.568e-05/0.5726, allocations: 3.984 kB / 0.7648 GB, free: 13.71 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002244/0.5728, allocations: 110.3 kB / 0.7649 GB, free: 13.59 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=3): time 2.615e-06/0.5728, allocations: 0 / 0.7649 GB, free: 13.59 MB / 0.5417 GB Notification: Performance of matching and sorting (n=3): time 0.000451/0.5733, allocations: 141.4 kB / 0.7651 GB, free: 13.44 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.313e-05/0.5734, allocations: 81.11 kB / 0.7651 GB, free: 13.34 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002432/0.5736, allocations: 220.2 kB / 0.7654 GB, free: 13.12 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 3.107e-05/0.5737, allocations: 29.7 kB / 0.7654 GB, free: 13.09 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 8.951e-05/0.5738, allocations: 124 kB / 0.7655 GB, free: 12.96 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 1.742e-05/0.5738, allocations: 11.84 kB / 0.7655 GB, free: 12.95 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.117e-06/0.5738, allocations: 0 / 0.7655 GB, free: 12.95 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.000134/0.5739, allocations: 330.8 kB / 0.7658 GB, free: 12.62 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001138/0.574, allocations: 27.98 kB / 0.7659 GB, free: 12.59 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001576/0.5742, allocations: 59.41 kB / 0.7659 GB, free: 12.52 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001134/0.5743, allocations: 35.91 kB / 0.766 GB, free: 12.48 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.5743, allocations: 0 / 0.766 GB, free: 12.48 MB / 0.5417 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003026/0.5747, allocations: 121.4 kB / 0.7661 GB, free: 12.36 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.795e-05/0.5747, allocations: 12.83 kB / 0.7661 GB, free: 12.35 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.5747, allocations: 0 / 0.7661 GB, free: 12.35 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.296e-05/0.5747, allocations: 8.094 kB / 0.7661 GB, free: 12.34 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001135/0.5748, allocations: 11.98 kB / 0.7661 GB, free: 12.33 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.92e-06/0.5748, allocations: 4 kB / 0.7661 GB, free: 12.32 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.655e-05/0.5749, allocations: 19.89 kB / 0.7661 GB, free: 12.3 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.975e-06/0.575, allocations: 0 / 0.7661 GB, free: 12.3 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.0001062/0.5751, allocations: 130.7 kB / 0.7662 GB, free: 12.17 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.801e-05/0.5751, allocations: 19.81 kB / 0.7663 GB, free: 12.15 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.213e-05/0.5752, allocations: 25.12 kB / 0.7663 GB, free: 12.12 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.5752, allocations: 0 / 0.7663 GB, free: 12.12 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.877e-05/0.5752, allocations: 4 kB / 0.7663 GB, free: 12.12 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.5752, allocations: 0 / 0.7663 GB, free: 12.12 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002034/0.5754, allocations: 221.6 kB / 0.7665 GB, free: 11.86 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.5754, allocations: 0 / 0.7665 GB, free: 11.86 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.432e-05/0.5755, allocations: 19.92 kB / 0.7665 GB, free: 11.84 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.5755, allocations: 4 kB / 0.7665 GB, free: 11.83 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.566e-06/0.5755, allocations: 0 / 0.7665 GB, free: 11.83 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/0.5756, allocations: 3.953 kB / 0.7665 GB, free: 11.83 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.5756, allocations: 0 / 0.7665 GB, free: 11.83 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003004/0.5759, allocations: 140.9 kB / 0.7667 GB, free: 11.67 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 7.357e-05/0.576, allocations: 92.92 kB / 0.7668 GB, free: 11.56 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.124e-05/0.576, allocations: 0 / 0.7668 GB, free: 11.56 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.224e-05/0.5761, allocations: 15.98 kB / 0.7668 GB, free: 11.55 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.26e-05/0.5761, allocations: 8.266 kB / 0.7668 GB, free: 11.54 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.463e-05/0.5762, allocations: 4 kB / 0.7668 GB, free: 11.54 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.000173/0.5763, allocations: 188.5 kB / 0.767 GB, free: 11.36 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5763, allocations: 0 / 0.767 GB, free: 11.36 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002239/0.5766, allocations: 27.84 kB / 0.767 GB, free: 11.33 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.0007085/0.5773, allocations: 0.6972 MB / 0.7677 GB, free: 10.61 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0002833/0.5776, allocations: 75.88 kB / 0.7677 GB, free: 10.53 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/0.5776, allocations: 3.938 kB / 0.7677 GB, free: 10.53 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0001156/0.5777, allocations: 44.09 kB / 0.7678 GB, free: 10.48 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000264/0.578, allocations: 38.11 kB / 0.7678 GB, free: 10.45 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001715/0.5797, allocations: 1.216 MB / 0.769 GB, free: 9.164 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003224/0.5801, allocations: 0.7238 MB / 0.7697 GB, free: 8.414 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 8.038e-05/0.5801, allocations: 16.55 kB / 0.7697 GB, free: 8.398 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.494e-05/0.5802, allocations: 39.42 kB / 0.7698 GB, free: 8.359 MB / 0.5417 GB Notification: Performance of SimCode: time 3.4e-07/0.5802, allocations: 4 kB / 0.7698 GB, free: 8.355 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01575/0.596, allocations: 3.229 MB / 0.7729 GB, free: 5.254 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002295/0.5963, allocations: 162.3 kB / 0.7731 GB, free: 5.016 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_IDEAS_Utilities_IO_Files_Examples_JSONWriter.o IDEAS_IDEAS_Utilities_IO_Files_Examples_JSONWriter.c In file included from IDEAS_IDEAS_Utilities_IO_Files_Examples_JSONWriter.c:7: In file included from ./IDEAS_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_IDEAS_Utilities_IO_Files_Examples_JSONWriter_functions.o IDEAS_IDEAS_Utilities_IO_Files_Examples_JSONWriter_functions.c In file included from IDEAS_IDEAS_Utilities_IO_Files_Examples_JSONWriter_functions.c:2: In file included from ./IDEAS_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_IDEAS_Utilities_IO_Files_Examples_JSONWriter_functions.c:7: In file included from ./IDEAS_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_IDEAS_Utilities_IO_Files_Examples_JSONWriter_functions.o] Error 1