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.001243/0.001243, allocations: 100.3 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.002117/0.002117, 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.008/2.008, allocations: 223.2 MB / 239.9 MB, free: 5.457 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 1.117/1.117, allocations: 132.2 MB / 423.2 MB, free: 2.199 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004903/0.0004904, allocations: 11.94 kB / 0.5033 GB, free: 4.195 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.709/0.7096, allocations: 81.57 MB / 0.583 GB, free: 4.02 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.002122/0.7117, allocations: 1.314 MB / 0.5843 GB, free: 3.074 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009539/0.7127, allocations: 0.5054 MB / 0.5847 GB, free: 2.719 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.165e-05/0.7128, allocations: 5.469 kB / 0.5847 GB, free: 2.715 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000193/0.713, allocations: 24.84 kB / 0.5848 GB, free: 2.699 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002736/0.7133, allocations: 63.89 kB / 0.5848 GB, free: 2.66 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000165/0.7135, allocations: 49.16 kB / 0.5849 GB, free: 2.641 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002039/0.7137, allocations: 88.8 kB / 0.585 GB, free: 2.598 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001808/0.7139, allocations: 49.69 kB / 0.585 GB, free: 2.57 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001263/0.714, allocations: 38.62 kB / 0.585 GB, free: 2.555 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001032/0.7141, allocations: 47.17 kB / 0.5851 GB, free: 2.531 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 2.363e-05/0.7142, allocations: 3.469 kB / 0.5851 GB, free: 2.531 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.71e-05/0.7142, allocations: 9.047 kB / 0.5851 GB, free: 2.531 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 8.172e-05/0.7143, allocations: 38.31 kB / 0.5851 GB, free: 2.516 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 3.677e-05/0.7144, allocations: 40.55 kB / 0.5852 GB, free: 2.477 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002028/0.7146, allocations: 104.1 kB / 0.5853 GB, free: 2.449 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.936e-06/0.7146, allocations: 0 / 0.5853 GB, free: 2.449 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.7146, allocations: 4 kB / 0.5853 GB, free: 2.445 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.759e-06/0.7146, allocations: 0 / 0.5853 GB, free: 2.445 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.0005683/0.7152, allocations: 456.3 kB / 0.5857 GB, free: 2.023 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.891e-05/0.7152, allocations: 10.5 kB / 0.5857 GB, free: 2.023 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.042e-05/0.7153, allocations: 38.7 kB / 0.5858 GB, free: 1.98 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.525e-05/0.7153, allocations: 21.53 kB / 0.5858 GB, free: 1.969 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00026/0.7156, allocations: 232.8 kB / 0.586 GB, free: 1.734 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.198e-05/0.7156, allocations: 2.25 kB / 0.586 GB, free: 1.734 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.581e-05/0.7156, allocations: 7.938 kB / 0.586 GB, free: 1.73 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003195/0.716, allocations: 109.3 kB / 0.5861 GB, free: 1.684 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.338e-06/0.716, allocations: 0 / 0.5861 GB, free: 1.684 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.509e-05/0.716, allocations: 5.344 kB / 0.5861 GB, free: 1.68 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.145e-05/0.716, allocations: 5.875 kB / 0.5861 GB, free: 1.676 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002772/0.7163, allocations: 77.25 kB / 0.5862 GB, free: 1.664 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006821/0.717, allocations: 391.6 kB / 0.5866 GB, free: 1.344 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001656/0.7172, allocations: 54.48 kB / 0.5866 GB, free: 1.309 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.005e-05/0.7172, allocations: 8.609 kB / 0.5866 GB, free: 1.301 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002932/0.7175, allocations: 103.7 kB / 0.5867 GB, free: 1.227 MB / 430.1 MB Notification: Performance of pre-optimization done (n=3): time 1.323e-06/0.7175, allocations: 4 kB / 0.5867 GB, free: 1.223 MB / 430.1 MB Notification: Performance of matching and sorting (n=3): time 0.0005064/0.718, allocations: 138.6 kB / 0.5869 GB, free: 1.172 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.591e-05/0.7181, allocations: 82.53 kB / 0.587 GB, free: 1.074 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003132/0.7184, allocations: 253.7 kB / 0.5872 GB, free: 0.9258 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.821e-05/0.7184, allocations: 29.7 kB / 0.5872 GB, free: 0.8906 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.244e-05/0.7185, allocations: 126.7 kB / 0.5873 GB, free: 0.7773 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.945e-05/0.7185, allocations: 6.234 kB / 0.5874 GB, free: 0.7734 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.148e-06/0.7185, allocations: 0 / 0.5874 GB, free: 0.7734 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.618e-05/0.7186, allocations: 329.2 kB / 0.5877 GB, free: 464 kB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001338/0.7188, allocations: 35.8 kB / 0.5877 GB, free: 456 kB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000133/0.7189, allocations: 57.27 kB / 0.5878 GB, free: 416 kB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000133/0.7191, allocations: 32.12 kB / 0.5878 GB, free: 412 kB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.7191, allocations: 0.9844 kB / 0.5878 GB, free: 412 kB / 430.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000312/0.7194, allocations: 122.4 kB / 0.5879 GB, free: 352 kB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.769e-05/0.7194, allocations: 5.5 kB / 0.5879 GB, free: 352 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.7194, allocations: 4.875 kB / 0.5879 GB, free: 348 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.706e-05/0.7195, allocations: 2.203 kB / 0.5879 GB, free: 348 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001264/0.7196, allocations: 18.36 kB / 0.5879 GB, free: 344 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.853e-06/0.7196, allocations: 5.562 kB / 0.5879 GB, free: 340 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001067/0.7197, allocations: 22.86 kB / 0.588 GB, free: 332 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.568e-06/0.7197, allocations: 1.375 kB / 0.588 GB, free: 332 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 0.0001031/0.7199, allocations: 128.6 kB / 0.5881 GB, free: 208 kB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.071e-05/0.7199, allocations: 20.36 kB / 0.5881 GB, free: 196 kB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.385e-05/0.7199, allocations: 21.61 kB / 0.5881 GB, free: 180 kB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.7199, allocations: 1.344 kB / 0.5881 GB, free: 180 kB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.72, allocations: 0.75 kB / 0.5881 GB, free: 180 kB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.72, allocations: 0 / 0.5881 GB, free: 180 kB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002158/0.7202, allocations: 212.6 kB / 0.5883 GB, free: 15.97 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.7202, allocations: 1.5 kB / 0.5883 GB, free: 15.97 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.619e-05/0.7203, allocations: 17.95 kB / 0.5883 GB, free: 15.96 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.7203, allocations: 1.281 kB / 0.5883 GB, free: 15.96 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.279e-05/0.7203, allocations: 8.516 kB / 0.5884 GB, free: 15.96 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.35e-06/0.7203, allocations: 2.078 kB / 0.5884 GB, free: 15.96 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.7204, allocations: 3.938 kB / 0.5884 GB, free: 15.95 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004881/0.7208, allocations: 138.6 kB / 0.5885 GB, free: 15.87 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001019/0.721, allocations: 96.27 kB / 0.5886 GB, free: 15.76 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.458e-05/0.721, allocations: 5.312 kB / 0.5886 GB, free: 15.76 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001574/0.7212, allocations: 17.53 kB / 0.5886 GB, free: 15.75 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.661e-05/0.7212, allocations: 7.891 kB / 0.5886 GB, free: 15.75 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.314e-05/0.7213, allocations: 6.109 kB / 0.5886 GB, free: 15.75 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0002315/0.7215, allocations: 189.5 kB / 0.5888 GB, free: 15.64 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.7215, allocations: 0 / 0.5888 GB, free: 15.64 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002565/0.7218, allocations: 26.16 kB / 0.5888 GB, free: 15.63 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.0008811/0.7227, allocations: 0.688 MB / 0.5895 GB, free: 15.01 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0005097/0.7232, allocations: 74.86 kB / 0.5896 GB, free: 15 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.481e-06/0.7232, allocations: 1.062 kB / 0.5896 GB, free: 15 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001716/0.7234, allocations: 38.2 kB / 0.5896 GB, free: 14.99 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003096/0.7237, allocations: 40.88 kB / 0.5896 GB, free: 14.98 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002689/0.7264, allocations: 1.206 MB / 0.5908 GB, free: 14.13 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004622/0.7269, allocations: 0.7246 MB / 0.5915 GB, free: 13.43 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001658/0.7271, allocations: 14.45 kB / 0.5915 GB, free: 13.43 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001356/0.7272, allocations: 43.75 kB / 0.5916 GB, free: 13.4 MB / 446.1 MB Notification: Performance of SimCode: time 1.482e-06/0.7273, allocations: 4 kB / 0.5916 GB, free: 13.4 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03062/0.7579, allocations: 3.187 MB / 0.5947 GB, free: 13.01 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000378/0.7583, allocations: 173.1 kB / 0.5949 GB, free: 12.77 MB / 446.1 MB 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/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: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/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: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_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