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/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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007909/0.0007906, allocations: 87.11 kB / 15.06 MB, free: 1.09 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.000861/0.0008611, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.309/1.309, allocations: 223.3 MB / 240 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.76/0.76, allocations: 132.3 MB / 423.4 MB, free: 2.082 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004595/0.0004596, allocations: 8 kB / 0.5035 GB, free: 4.176 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3937/0.3942, allocations: 81.57 MB / 0.5831 GB, free: 3.984 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.001884/0.3961, allocations: 1.324 MB / 0.5844 GB, free: 3.031 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008435/0.397, allocations: 0.5111 MB / 0.5849 GB, free: 2.672 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001145/0.3971, allocations: 7.625 kB / 0.5849 GB, free: 2.668 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001709/0.3973, allocations: 26.95 kB / 0.585 GB, free: 2.648 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002439/0.3975, allocations: 55.58 kB / 0.585 GB, free: 2.617 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001849/0.3977, allocations: 54.45 kB / 0.5851 GB, free: 2.594 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.000192/0.3979, allocations: 113.5 kB / 0.5852 GB, free: 2.543 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001432/0.3981, allocations: 46.2 kB / 0.5852 GB, free: 2.52 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001149/0.3982, allocations: 36.97 kB / 0.5853 GB, free: 2.508 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001129/0.3983, allocations: 55.56 kB / 0.5853 GB, free: 2.48 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 2.322e-05/0.3984, allocations: 2.906 kB / 0.5853 GB, free: 2.48 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.143e-05/0.3984, allocations: 16 kB / 0.5853 GB, free: 2.477 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 7.521e-05/0.3985, allocations: 38.64 kB / 0.5854 GB, free: 2.461 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 3.203e-05/0.3986, allocations: 43.48 kB / 0.5854 GB, free: 2.418 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001684/0.3987, allocations: 101.8 kB / 0.5855 GB, free: 2.391 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.91e-06/0.3987, allocations: 0 / 0.5855 GB, free: 2.391 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3987, allocations: 0 / 0.5855 GB, free: 2.391 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.831e-06/0.3988, allocations: 4.812 kB / 0.5855 GB, free: 2.387 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0005453/0.3993, allocations: 453.1 kB / 0.5859 GB, free: 1.969 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.987e-05/0.3994, allocations: 10.66 kB / 0.586 GB, free: 1.969 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.04e-05/0.3994, allocations: 38.34 kB / 0.586 GB, free: 1.926 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.072e-05/0.3995, allocations: 21.36 kB / 0.586 GB, free: 1.914 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002535/0.3997, allocations: 228.2 kB / 0.5862 GB, free: 1.684 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.256e-05/0.3997, allocations: 2.906 kB / 0.5862 GB, free: 1.684 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.334e-05/0.3998, allocations: 3.594 kB / 0.5862 GB, free: 1.684 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002969/0.4001, allocations: 123.6 kB / 0.5864 GB, free: 1.625 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/0.4001, allocations: 0.7188 kB / 0.5864 GB, free: 1.625 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.401e-05/0.4001, allocations: 0.6875 kB / 0.5864 GB, free: 1.625 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.981e-06/0.4001, allocations: 2.281 kB / 0.5864 GB, free: 1.625 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002396/0.4004, allocations: 80.5 kB / 0.5864 GB, free: 1.609 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005599/0.4009, allocations: 392.2 kB / 0.5868 GB, free: 1.289 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001362/0.4011, allocations: 54.09 kB / 0.5869 GB, free: 1.254 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001058/0.4012, allocations: 36.48 kB / 0.5869 GB, free: 1.242 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.639e-05/0.4012, allocations: 3.938 kB / 0.5869 GB, free: 1.238 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002669/0.4015, allocations: 107.7 kB / 0.587 GB, free: 1.16 MB / 430.1 MB Notification: Performance of pre-optimization done (n=3): time 1.422e-06/0.4015, allocations: 0 / 0.587 GB, free: 1.16 MB / 430.1 MB Notification: Performance of matching and sorting (n=3): time 0.0004453/0.402, allocations: 143.3 kB / 0.5871 GB, free: 1.105 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.876e-05/0.402, allocations: 79.52 kB / 0.5872 GB, free: 1.012 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002649/0.4023, allocations: 256.8 kB / 0.5875 GB, free: 0.8594 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.361e-05/0.4023, allocations: 25.7 kB / 0.5875 GB, free: 0.8281 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.171e-05/0.4024, allocations: 131.3 kB / 0.5876 GB, free: 0.7109 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.712e-05/0.4024, allocations: 13.86 kB / 0.5876 GB, free: 0.6992 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.597e-06/0.4024, allocations: 0 / 0.5876 GB, free: 0.6992 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 5.321e-05/0.4024, allocations: 324.7 kB / 0.5879 GB, free: 392 kB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001149/0.4026, allocations: 30.72 kB / 0.588 GB, free: 388 kB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001098/0.4027, allocations: 62.08 kB / 0.588 GB, free: 344 kB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001151/0.4028, allocations: 40.95 kB / 0.5881 GB, free: 332 kB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.4028, allocations: 0 / 0.5881 GB, free: 332 kB / 430.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002808/0.4031, allocations: 123 kB / 0.5882 GB, free: 272 kB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.378e-05/0.4031, allocations: 5.656 kB / 0.5882 GB, free: 272 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.97e-06/0.4031, allocations: 0.5 kB / 0.5882 GB, free: 272 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.399e-05/0.4032, allocations: 3.094 kB / 0.5882 GB, free: 272 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00011/0.4033, allocations: 14.66 kB / 0.5882 GB, free: 272 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.711e-06/0.4033, allocations: 0.6562 kB / 0.5882 GB, free: 272 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.434e-05/0.4034, allocations: 22.28 kB / 0.5882 GB, free: 264 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.07e-05/0.4034, allocations: 6.25 kB / 0.5882 GB, free: 260 kB / 430.1 MB 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 8.834e-05/0.4035, allocations: 129.8 kB / 0.5884 GB, free: 136 kB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.021e-05/0.4035, allocations: 21.08 kB / 0.5884 GB, free: 124 kB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.547e-05/0.4036, allocations: 21.06 kB / 0.5884 GB, free: 108 kB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.4036, allocations: 1.812 kB / 0.5884 GB, free: 108 kB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.4036, allocations: 0 / 0.5884 GB, free: 108 kB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.4036, allocations: 0 / 0.5884 GB, free: 108 kB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001914/0.4038, allocations: 216.9 kB / 0.5886 GB, free: 15.89 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.4038, allocations: 1.672 kB / 0.5886 GB, free: 15.89 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.732e-05/0.4039, allocations: 18.88 kB / 0.5886 GB, free: 15.89 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.069e-06/0.4039, allocations: 3.953 kB / 0.5886 GB, free: 15.89 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.028e-05/0.404, allocations: 5 kB / 0.5886 GB, free: 15.88 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.305e-06/0.404, allocations: 0.75 kB / 0.5886 GB, free: 15.88 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.404, allocations: 0.9375 kB / 0.5886 GB, free: 15.88 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002951/0.4043, allocations: 134.7 kB / 0.5888 GB, free: 15.8 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.138e-05/0.4043, allocations: 92.25 kB / 0.5888 GB, free: 15.7 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.908e-05/0.4044, allocations: 9.766 kB / 0.5889 GB, free: 15.69 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.926e-05/0.4045, allocations: 16.88 kB / 0.5889 GB, free: 15.69 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.417e-05/0.4045, allocations: 4.391 kB / 0.5889 GB, free: 15.69 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.949e-05/0.4046, allocations: 5.688 kB / 0.5889 GB, free: 15.69 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0002019/0.4048, allocations: 196.8 kB / 0.5891 GB, free: 15.57 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4048, allocations: 0 / 0.5891 GB, free: 15.57 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002433/0.405, allocations: 23.02 kB / 0.5891 GB, free: 15.57 MB / 446.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: 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.0007248/0.4058, allocations: 0.693 MB / 0.5898 GB, free: 14.94 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0003038/0.4061, allocations: 71.38 kB / 0.5898 GB, free: 14.93 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/0.4061, allocations: 0.9375 kB / 0.5898 GB, free: 14.93 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001198/0.4062, allocations: 38.19 kB / 0.5899 GB, free: 14.92 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003174/0.4065, allocations: 38.47 kB / 0.5899 GB, free: 14.91 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001679/0.4082, allocations: 0.9293 MB / 0.5908 GB, free: 14.35 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002543/0.4085, allocations: 0.7162 MB / 0.5915 GB, free: 13.66 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 8.15e-05/0.4086, allocations: 15.12 kB / 0.5915 GB, free: 13.66 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.791e-05/0.4087, allocations: 50.86 kB / 0.5916 GB, free: 13.62 MB / 446.1 MB Notification: Performance of SimCode: time 3.71e-07/0.4087, allocations: 0 / 0.5916 GB, free: 13.62 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01503/0.4237, allocations: 3.202 MB / 0.5947 GB, free: 13.21 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002155/0.424, allocations: 169.8 kB / 0.5949 GB, free: 12.97 MB / 446.1 MB Error: Error building simulator. Build log: clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality -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/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:144: ./gc/omc_gc.h:219:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:223: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 -Wno-parentheses-equality -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/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:219:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:223: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/Resources/C-Sources/jsonWriterInit.c:9: /home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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