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.001479/0.001479, allocations: 175 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7495/0.7495, allocations: 133.4 MB / 146.7 MB, free: 10.78 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.653/1.653, allocations: 221.3 MB / 400.4 MB, free: 5.805 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008177/0.0008177, allocations: 98.75 kB / 483.3 MB, free: 5.816 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 3.882e-05/3.895e-05, allocations: 6.688 kB / 0.5601 GB, free: 87.79 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1577/0.1577, allocations: 82.31 MB / 0.6405 GB, free: 7.707 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5785/0.7363, allocations: 113.2 MB / 0.751 GB, free: 11.87 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001677/0.7365, allocations: 76.55 kB / 0.7511 GB, free: 11.87 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.008614/0.7451, allocations: 3.326 MB / 0.7544 GB, free: 27.4 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.202e-06/0.7451, allocations: 0 / 0.7544 GB, free: 27.4 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 1.649e-05/0.7452, allocations: 3.844 kB / 0.7544 GB, free: 27.4 MB / 0.5105 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.0005096/0.7457, allocations: 446.4 kB / 0.7548 GB, free: 27.01 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.894e-05/0.7457, allocations: 7.688 kB / 0.7548 GB, free: 27.01 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.585e-05/0.7458, allocations: 41.97 kB / 0.7548 GB, free: 26.97 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.393e-05/0.7458, allocations: 23.41 kB / 0.7549 GB, free: 26.95 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002627/0.7461, allocations: 229.2 kB / 0.7551 GB, free: 26.74 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.778e-06/0.7461, allocations: 0 / 0.7551 GB, free: 26.74 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.366e-05/0.7462, allocations: 11.66 kB / 0.7551 GB, free: 26.73 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001732/0.7463, allocations: 87.48 kB / 0.7552 GB, free: 26.7 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.256e-06/0.7464, allocations: 0 / 0.7552 GB, free: 26.7 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.77e-05/0.7464, allocations: 0 / 0.7552 GB, free: 26.7 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.161e-06/0.7464, allocations: 3.875 kB / 0.7552 GB, free: 26.7 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.784e-05/0.7465, allocations: 37 kB / 0.7552 GB, free: 26.7 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005417/0.747, allocations: 394.1 kB / 0.7556 GB, free: 26.41 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 4.308e-05/0.7471, allocations: 22.2 kB / 0.7556 GB, free: 26.39 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.78e-05/0.7471, allocations: 12.11 kB / 0.7556 GB, free: 26.38 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 1.555e-05/0.7471, allocations: 6.109 kB / 0.7556 GB, free: 26.38 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001244/0.7473, allocations: 85.67 kB / 0.7557 GB, free: 26.31 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=3): time 1.232e-06/0.7473, allocations: 3.938 kB / 0.7557 GB, free: 26.3 MB / 0.5105 GB Notification: Performance of matching and sorting (n=3): time 0.00016/0.7474, allocations: 64.08 kB / 0.7558 GB, free: 26.27 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.677e-05/0.7475, allocations: 77.11 kB / 0.7559 GB, free: 26.17 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002031/0.7477, allocations: 223 kB / 0.7561 GB, free: 26.07 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 1.757e-05/0.7477, allocations: 25.7 kB / 0.7561 GB, free: 26.04 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 7.555e-05/0.7478, allocations: 128.3 kB / 0.7562 GB, free: 25.95 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 1.495e-05/0.7478, allocations: 15.22 kB / 0.7562 GB, free: 25.94 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.637e-06/0.7478, allocations: 0 / 0.7562 GB, free: 25.94 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001116/0.748, allocations: 331 kB / 0.7565 GB, free: 25.62 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.427e-05/0.748, allocations: 7.344 kB / 0.7565 GB, free: 25.62 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.993e-05/0.748, allocations: 33.61 kB / 0.7566 GB, free: 25.59 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.03e-05/0.7481, allocations: 19 kB / 0.7566 GB, free: 25.58 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.7481, allocations: 0 / 0.7566 GB, free: 25.58 MB / 0.5105 GB Notification: Performance of matching and sorting (n=3) (initialization): time 9.925e-05/0.7482, allocations: 77.16 kB / 0.7567 GB, free: 25.54 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.346e-05/0.7482, allocations: 11.67 kB / 0.7567 GB, free: 25.53 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.7482, allocations: 0 / 0.7567 GB, free: 25.53 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.349e-05/0.7482, allocations: 0 / 0.7567 GB, free: 25.53 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001124/0.7483, allocations: 14.27 kB / 0.7567 GB, free: 25.53 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.314e-06/0.7484, allocations: 2.906 kB / 0.7567 GB, free: 25.53 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.871e-05/0.7484, allocations: 17.86 kB / 0.7567 GB, free: 25.53 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.347e-06/0.7485, allocations: 3.844 kB / 0.7567 GB, free: 25.53 MB / 0.5105 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 () * 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 6.477e-05/0.7485, allocations: 104.9 kB / 0.7568 GB, free: 25.42 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.421e-05/0.7486, allocations: 22.88 kB / 0.7568 GB, free: 25.41 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.511e-05/0.7486, allocations: 21.52 kB / 0.7569 GB, free: 25.4 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.512e-06/0.7486, allocations: 0 / 0.7569 GB, free: 25.4 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.7486, allocations: 0 / 0.7569 GB, free: 25.4 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.025e-06/0.7486, allocations: 10.5 kB / 0.7569 GB, free: 25.39 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000147/0.7488, allocations: 210.4 kB / 0.7571 GB, free: 25.21 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.7488, allocations: 3.812 kB / 0.7571 GB, free: 25.21 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.09e-05/0.7489, allocations: 11.92 kB / 0.7571 GB, free: 25.21 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.414e-06/0.7489, allocations: 7.688 kB / 0.7571 GB, free: 25.2 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.624e-06/0.7489, allocations: 0 / 0.7571 GB, free: 25.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.7489, allocations: 6.766 kB / 0.7571 GB, free: 25.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.7489, allocations: 0 / 0.7571 GB, free: 25.2 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001053/0.749, allocations: 93.44 kB / 0.7572 GB, free: 25.12 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 6.052e-05/0.7491, allocations: 94.5 kB / 0.7573 GB, free: 25.02 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.261e-05/0.7491, allocations: 7.469 kB / 0.7573 GB, free: 25.02 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.856e-05/0.7492, allocations: 14.28 kB / 0.7573 GB, free: 25.02 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.111e-05/0.7493, allocations: 10.31 kB / 0.7573 GB, free: 25.02 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.049e-05/0.7493, allocations: 3.969 kB / 0.7573 GB, free: 25.02 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0001394/0.7494, allocations: 187.3 kB / 0.7575 GB, free: 24.93 MB / 0.5105 GB Notification: Performance of sort global known variables: time 7.21e-07/0.7495, allocations: 0 / 0.7575 GB, free: 24.93 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0001994/0.7497, allocations: 23.22 kB / 0.7575 GB, free: 24.93 MB / 0.5105 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 () * 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.0004891/0.7501, allocations: 0.6631 MB / 0.7582 GB, free: 24.3 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 9.804e-05/0.7503, allocations: 22.41 kB / 0.7582 GB, free: 24.3 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.7503, allocations: 2.859 kB / 0.7582 GB, free: 24.3 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 2.873e-05/0.7503, allocations: 10.62 kB / 0.7582 GB, free: 24.3 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000229/0.7505, allocations: 42.39 kB / 0.7582 GB, free: 24.29 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004742/0.751, allocations: 228.9 kB / 0.7585 GB, free: 24.16 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002939/0.7513, allocations: 0.7303 MB / 0.7592 GB, free: 23.46 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 6.529e-05/0.7514, allocations: 17.05 kB / 0.7592 GB, free: 23.45 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.942e-05/0.7515, allocations: 42.89 kB / 0.7592 GB, free: 23.45 MB / 0.5105 GB Notification: Performance of SimCode: time 3.1e-07/0.7515, allocations: 0 / 0.7592 GB, free: 23.45 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01504/0.7665, allocations: 3.199 MB / 0.7623 GB, free: 21.96 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001822/0.7668, allocations: 160.3 kB / 0.7625 GB, free: 21.73 MB / 0.5105 GB Error: Error building simulator. Build log: clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' "-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:111: ./gc/omc_gc.h:217:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:221: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 -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' "-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:217:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:221: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