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.001096/0.001096, allocations: 91.3 kB / 15.06 MB, free: 1.098 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.001436/0.001436, allocations: 172.7 kB / 15.95 MB, free: 208 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.338/1.338, allocations: 223.3 MB / 240 MB, free: 5.285 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9223/0.9223, allocations: 135.3 MB / 426.4 MB, free: 14.32 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000297/0.0002971, allocations: 15.94 kB / 0.5071 GB, free: 5.047 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1502/0.1506, allocations: 82.31 MB / 0.5875 GB, free: 2.914 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.001762/0.1524, allocations: 1.317 MB / 0.5887 GB, free: 1.586 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007215/0.1531, allocations: 0.5148 MB / 0.5893 GB, free: 1.066 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.498e-05/0.1532, allocations: 4 kB / 0.5893 GB, free: 1.062 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001414/0.1533, allocations: 19.86 kB / 0.5893 GB, free: 1.043 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002011/0.1535, allocations: 51.75 kB / 0.5893 GB, free: 0.9922 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001322/0.1537, allocations: 59.92 kB / 0.5894 GB, free: 0.9336 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000154/0.1538, allocations: 115.6 kB / 0.5895 GB, free: 0.8203 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001172/0.154, allocations: 37.48 kB / 0.5895 GB, free: 0.7773 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.912e-05/0.1541, allocations: 47.77 kB / 0.5896 GB, free: 0.7305 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.075e-05/0.1542, allocations: 51.69 kB / 0.5896 GB, free: 0.6797 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.107e-05/0.1542, allocations: 4 kB / 0.5896 GB, free: 0.6758 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.626e-05/0.1543, allocations: 15.94 kB / 0.5896 GB, free: 0.6602 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.733e-05/0.1543, allocations: 35.91 kB / 0.5897 GB, free: 0.625 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.426e-05/0.1544, allocations: 45.64 kB / 0.5897 GB, free: 0.5742 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001326/0.1545, allocations: 96.03 kB / 0.5898 GB, free: 492 kB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.1545, allocations: 3.938 kB / 0.5898 GB, free: 488 kB / 494.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.1545, allocations: 0 / 0.5898 GB, free: 488 kB / 494.1 MB Notification: Performance of Transformations before backend: time 3.777e-06/0.1545, allocations: 0 / 0.5898 GB, free: 488 kB / 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.0005481/0.1551, allocations: 454.8 kB / 0.5902 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.483e-05/0.1551, allocations: 12.03 kB / 0.5903 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.24e-05/0.1552, allocations: 38.55 kB / 0.5903 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.593e-05/0.1552, allocations: 19.75 kB / 0.5903 GB, free: 15.9 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002207/0.1555, allocations: 231.5 kB / 0.5905 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.059e-05/0.1555, allocations: 8 kB / 0.5905 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.349e-05/0.1555, allocations: 7.984 kB / 0.5906 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002597/0.1558, allocations: 113.6 kB / 0.5907 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.731e-06/0.1558, allocations: 0 / 0.5907 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.198e-05/0.1558, allocations: 4 kB / 0.5907 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.971e-06/0.1558, allocations: 0 / 0.5907 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000222/0.156, allocations: 83.88 kB / 0.5907 GB, free: 15.42 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005314/0.1566, allocations: 388.4 kB / 0.5911 GB, free: 14.99 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001296/0.1567, allocations: 46.55 kB / 0.5912 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001034/0.1568, allocations: 40.83 kB / 0.5912 GB, free: 14.89 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.561e-05/0.1568, allocations: 8 kB / 0.5912 GB, free: 14.88 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002311/0.1571, allocations: 105 kB / 0.5913 GB, free: 14.76 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.132e-06/0.1571, allocations: 4 kB / 0.5913 GB, free: 14.76 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0003976/0.1575, allocations: 133.4 kB / 0.5914 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.896e-05/0.1576, allocations: 85.05 kB / 0.5915 GB, free: 14.52 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002384/0.1578, allocations: 257 kB / 0.5918 GB, free: 14.26 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.496e-05/0.1578, allocations: 25.7 kB / 0.5918 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.876e-05/0.1579, allocations: 132 kB / 0.5919 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.702e-05/0.1579, allocations: 7.906 kB / 0.5919 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.168e-06/0.1579, allocations: 0 / 0.5919 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001063/0.1581, allocations: 326.8 kB / 0.5922 GB, free: 13.76 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001119/0.1582, allocations: 35.97 kB / 0.5923 GB, free: 13.72 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000119/0.1583, allocations: 51.41 kB / 0.5923 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001104/0.1584, allocations: 40 kB / 0.5924 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.1584, allocations: 3.938 kB / 0.5924 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000268/0.1587, allocations: 117.4 kB / 0.5925 GB, free: 13.5 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.55e-05/0.1587, allocations: 13.98 kB / 0.5925 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.1587, allocations: 4 kB / 0.5925 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.037e-06/0.1588, allocations: 0 / 0.5925 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001186/0.1589, allocations: 20.08 kB / 0.5925 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.232e-06/0.1589, allocations: 3.938 kB / 0.5925 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.965e-05/0.159, allocations: 19.89 kB / 0.5925 GB, free: 13.44 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.113e-06/0.159, allocations: 0 / 0.5925 GB, free: 13.44 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 9.359e-05/0.1591, allocations: 129.8 kB / 0.5927 GB, free: 13.3 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.355e-05/0.1591, allocations: 15.81 kB / 0.5927 GB, free: 13.29 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.546e-05/0.1592, allocations: 25.19 kB / 0.5927 GB, free: 13.26 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.1592, allocations: 4.281 kB / 0.5927 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.976e-06/0.1592, allocations: 0 / 0.5927 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.014e-06/0.1592, allocations: 0 / 0.5927 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001657/0.1594, allocations: 213.6 kB / 0.5929 GB, free: 13 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.614e-06/0.1594, allocations: 7.984 kB / 0.5929 GB, free: 12.99 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.229e-05/0.1595, allocations: 11.98 kB / 0.5929 GB, free: 12.98 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.893e-06/0.1595, allocations: 0 / 0.5929 GB, free: 12.98 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.448e-06/0.1595, allocations: 4 kB / 0.5929 GB, free: 12.97 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.604e-06/0.1595, allocations: 3.953 kB / 0.5929 GB, free: 12.97 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.1595, allocations: 4 kB / 0.5929 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002691/0.1598, allocations: 140.8 kB / 0.5931 GB, free: 12.81 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.034e-05/0.1599, allocations: 96.86 kB / 0.5932 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.054e-05/0.1599, allocations: 3.938 kB / 0.5932 GB, free: 12.69 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.53e-05/0.16, allocations: 19.98 kB / 0.5932 GB, free: 12.67 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.855e-05/0.16, allocations: 7.938 kB / 0.5932 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.991e-05/0.16, allocations: 4 kB / 0.5932 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001632/0.1602, allocations: 188.5 kB / 0.5934 GB, free: 12.48 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1602, allocations: 0 / 0.5934 GB, free: 12.48 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002182/0.1604, allocations: 27.91 kB / 0.5934 GB, free: 12.45 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.0006157/0.1611, allocations: 0.6745 MB / 0.5941 GB, free: 11.75 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002575/0.1613, allocations: 79.81 kB / 0.5941 GB, free: 11.67 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1613, allocations: 0 / 0.5941 GB, free: 11.67 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001095/0.1615, allocations: 40.16 kB / 0.5942 GB, free: 11.63 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002685/0.1617, allocations: 40.36 kB / 0.5942 GB, free: 11.59 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001404/0.1632, allocations: 0.9226 MB / 0.5951 GB, free: 10.62 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002717/0.1634, allocations: 0.7212 MB / 0.5958 GB, free: 9.871 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 6.363e-05/0.1635, allocations: 24.66 kB / 0.5958 GB, free: 9.848 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.492e-05/0.1636, allocations: 43.41 kB / 0.5959 GB, free: 9.805 MB / 0.4981 GB Notification: Performance of SimCode: time 2.3e-07/0.1636, allocations: 0 / 0.5959 GB, free: 9.805 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01262/0.1762, allocations: 3.211 MB / 0.599 GB, free: 6.75 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001646/0.1764, allocations: 182.1 kB / 0.5992 GB, free: 6.512 MB / 0.4981 GB 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-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: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-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: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_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