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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001455/0.001455, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.002048/0.002047, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.275/2.275, allocations: 223.2 MB / 239.9 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.303/1.303, allocations: 135.2 MB / 426.2 MB, free: 14.23 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004938/0.0004939, allocations: 8 kB / 0.5069 GB, free: 5.148 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2597/0.2603, allocations: 82.32 MB / 0.5873 GB, free: 3.008 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.003263/0.2636, allocations: 1.311 MB / 0.5886 GB, free: 1.688 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001488/0.2651, allocations: 0.4992 MB / 0.5891 GB, free: 1.184 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001166/0.2653, allocations: 0 / 0.5891 GB, free: 1.184 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002331/0.2655, allocations: 23.8 kB / 0.5891 GB, free: 1.16 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004238/0.266, allocations: 63.84 kB / 0.5891 GB, free: 1.098 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002396/0.2662, allocations: 51.88 kB / 0.5892 GB, free: 1.047 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002781/0.2665, allocations: 87.83 kB / 0.5893 GB, free: 0.9609 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002291/0.2668, allocations: 45.39 kB / 0.5893 GB, free: 0.9102 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001613/0.2669, allocations: 39.8 kB / 0.5894 GB, free: 0.8711 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001382/0.2671, allocations: 43.77 kB / 0.5894 GB, free: 0.8281 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.628e-05/0.2672, allocations: 4 kB / 0.5894 GB, free: 0.8242 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.343e-05/0.2672, allocations: 15.98 kB / 0.5894 GB, free: 0.8086 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001143/0.2674, allocations: 35.84 kB / 0.5895 GB, free: 0.7734 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 5.683e-05/0.2675, allocations: 41.64 kB / 0.5895 GB, free: 0.7266 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002375/0.2677, allocations: 104 kB / 0.5896 GB, free: 0.625 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.2677, allocations: 0 / 0.5896 GB, free: 0.625 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.2677, allocations: 0 / 0.5896 GB, free: 0.625 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.194e-06/0.2678, allocations: 0 / 0.5896 GB, free: 0.625 MB / 494.1 MB 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.0009343/0.2687, allocations: 458.5 kB / 0.59 GB, free: 132 kB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.387e-05/0.2688, allocations: 8.031 kB / 0.59 GB, free: 124 kB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.429e-05/0.2689, allocations: 42.55 kB / 0.5901 GB, free: 72 kB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.725e-05/0.269, allocations: 15.81 kB / 0.5901 GB, free: 56 kB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004465/0.2694, allocations: 227.7 kB / 0.5903 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.885e-05/0.2695, allocations: 4 kB / 0.5903 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.215e-05/0.2695, allocations: 15.92 kB / 0.5903 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004763/0.27, allocations: 109.6 kB / 0.5904 GB, free: 15.66 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.798e-06/0.27, allocations: 0 / 0.5904 GB, free: 15.66 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.613e-05/0.27, allocations: 7.984 kB / 0.5904 GB, free: 15.65 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.672e-06/0.2701, allocations: 0 / 0.5904 GB, free: 15.65 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004526/0.2705, allocations: 79.94 kB / 0.5905 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00101/0.2715, allocations: 396.4 kB / 0.5909 GB, free: 15.13 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002508/0.2718, allocations: 46.55 kB / 0.5909 GB, free: 15.08 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.449e-05/0.2719, allocations: 3.984 kB / 0.5909 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004371/0.2723, allocations: 113 kB / 0.591 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 2.405e-06/0.2723, allocations: 0 / 0.591 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0008469/0.2732, allocations: 141.4 kB / 0.5912 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.627e-05/0.2733, allocations: 81.11 kB / 0.5913 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004641/0.2738, allocations: 253 kB / 0.5915 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.718e-05/0.2738, allocations: 29.7 kB / 0.5915 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001434/0.274, allocations: 128 kB / 0.5917 GB, free: 14.28 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.25e-05/0.274, allocations: 7.906 kB / 0.5917 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.873e-06/0.2741, allocations: 0 / 0.5917 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001932/0.2743, allocations: 326.8 kB / 0.592 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002363/0.2745, allocations: 39.91 kB / 0.592 GB, free: 13.91 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002703/0.2748, allocations: 55.41 kB / 0.5921 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002527/0.2751, allocations: 32.02 kB / 0.5921 GB, free: 13.81 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.2751, allocations: 3.938 kB / 0.5921 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0006153/0.2757, allocations: 121.4 kB / 0.5922 GB, free: 13.68 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.982e-05/0.2758, allocations: 7.953 kB / 0.5922 GB, free: 13.67 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.303e-05/0.2758, allocations: 4 kB / 0.5922 GB, free: 13.67 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.244e-05/0.2758, allocations: 4 kB / 0.5922 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002083/0.2761, allocations: 15.98 kB / 0.5922 GB, free: 13.65 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.148e-06/0.2761, allocations: 64 / 0.5922 GB, free: 13.65 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000199/0.2763, allocations: 23.89 kB / 0.5923 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.609e-05/0.2763, allocations: 0 / 0.5923 GB, free: 13.62 MB / 0.4981 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.0001914/0.2766, allocations: 133.8 kB / 0.5924 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.264e-05/0.2766, allocations: 15.81 kB / 0.5924 GB, free: 13.47 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.132e-05/0.2767, allocations: 21.19 kB / 0.5924 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.048e-06/0.2767, allocations: 0 / 0.5924 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.2767, allocations: 288 / 0.5924 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.945e-06/0.2768, allocations: 8 kB / 0.5924 GB, free: 13.44 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003292/0.2771, allocations: 213.6 kB / 0.5926 GB, free: 13.18 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.2771, allocations: 0 / 0.5926 GB, free: 13.18 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001502/0.2773, allocations: 19.97 kB / 0.5927 GB, free: 13.16 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.897e-06/0.2773, allocations: 0 / 0.5927 GB, free: 13.16 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.598e-05/0.2773, allocations: 4 kB / 0.5927 GB, free: 13.16 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.663e-06/0.2773, allocations: 3.953 kB / 0.5927 GB, free: 13.15 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.761e-06/0.2774, allocations: 0 / 0.5927 GB, free: 13.15 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005663/0.2779, allocations: 140.8 kB / 0.5928 GB, free: 13 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001192/0.2781, allocations: 100.8 kB / 0.5929 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.778e-05/0.2781, allocations: 4 kB / 0.5929 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000171/0.2783, allocations: 11.98 kB / 0.5929 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.309e-05/0.2784, allocations: 15.88 kB / 0.5929 GB, free: 12.85 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.907e-05/0.2785, allocations: 4 kB / 0.5929 GB, free: 12.84 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003283/0.2788, allocations: 188.5 kB / 0.5931 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of sort global known variables: time 5.11e-07/0.2788, allocations: 0 / 0.5931 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004426/0.2793, allocations: 23.91 kB / 0.5931 GB, free: 12.64 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: 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.001205/0.2805, allocations: 0.6896 MB / 0.5938 GB, free: 11.92 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005542/0.2811, allocations: 71.88 kB / 0.5939 GB, free: 11.85 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.2811, allocations: 0 / 0.5939 GB, free: 11.85 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002422/0.2813, allocations: 31.98 kB / 0.5939 GB, free: 11.82 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004231/0.2818, allocations: 47.03 kB / 0.594 GB, free: 11.78 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002555/0.2844, allocations: 1.206 MB / 0.5951 GB, free: 10.52 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004625/0.2848, allocations: 0.7278 MB / 0.5958 GB, free: 9.762 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001209/0.285, allocations: 20.66 kB / 0.5959 GB, free: 9.742 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001187/0.2851, allocations: 47.41 kB / 0.5959 GB, free: 9.695 MB / 0.4981 GB Notification: Performance of SimCode: time 6.81e-07/0.2851, allocations: 0 / 0.5959 GB, free: 9.695 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02553/0.3107, allocations: 3.188 MB / 0.599 GB, free: 6.66 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002947/0.311, allocations: 169.5 kB / 0.5992 GB, free: 6.422 MB / 0.4981 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: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/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: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 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