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/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_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/Complex 4.0.0+maint.om/package.mo): time 0.001054/0.001054, allocations: 174.9 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.7117/0.7117, allocations: 133.4 MB / 146.7 MB, free: 10.77 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.457/1.457, allocations: 221.3 MB / 400.4 MB, free: 5.852 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.0009133/0.0009131, allocations: 96.66 kB / 483.3 MB, free: 5.871 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 4.127e-05/4.142e-05, allocations: 2.281 kB / 0.5601 GB, free: 87.85 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1852/0.1853, allocations: 82.31 MB / 0.6405 GB, free: 7.727 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7212/0.9066, allocations: 113.2 MB / 0.751 GB, free: 12.09 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002394/0.9068, allocations: 75.05 kB / 0.7511 GB, free: 12.09 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.009834/0.9167, allocations: 3.33 MB / 0.7544 GB, free: 27.63 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.623e-06/0.9167, allocations: 0 / 0.7544 GB, free: 27.63 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 2.423e-05/0.9168, allocations: 3.75 kB / 0.7544 GB, free: 27.63 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.0006444/0.9174, allocations: 439.1 kB / 0.7548 GB, free: 27.24 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.989e-05/0.9175, allocations: 11.53 kB / 0.7548 GB, free: 27.24 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.941e-05/0.9176, allocations: 40.28 kB / 0.7548 GB, free: 27.2 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.007e-05/0.9176, allocations: 23.19 kB / 0.7549 GB, free: 27.18 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003413/0.918, allocations: 229.3 kB / 0.7551 GB, free: 26.97 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.493e-05/0.918, allocations: 2.875 kB / 0.7551 GB, free: 26.97 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.443e-05/0.918, allocations: 3.844 kB / 0.7551 GB, free: 26.97 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002182/0.9183, allocations: 90.14 kB / 0.7552 GB, free: 26.93 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.39e-05/0.9183, allocations: 0 / 0.7552 GB, free: 26.93 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.524e-05/0.9183, allocations: 4 kB / 0.7552 GB, free: 26.93 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.777e-06/0.9183, allocations: 7.781 kB / 0.7552 GB, free: 26.93 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.889e-05/0.9184, allocations: 33.84 kB / 0.7552 GB, free: 26.93 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006733/0.9191, allocations: 389.1 kB / 0.7556 GB, free: 26.64 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 5.002e-05/0.9192, allocations: 21.8 kB / 0.7556 GB, free: 26.62 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.822e-05/0.9193, allocations: 16.02 kB / 0.7556 GB, free: 26.61 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 2.305e-05/0.9193, allocations: 7.938 kB / 0.7556 GB, free: 26.61 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002262/0.9196, allocations: 84.31 kB / 0.7557 GB, free: 26.54 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=3): time 1.723e-06/0.9196, allocations: 4 kB / 0.7557 GB, free: 26.54 MB / 0.5105 GB Notification: Performance of matching and sorting (n=3): time 0.0002584/0.9199, allocations: 62.64 kB / 0.7558 GB, free: 26.5 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.478e-05/0.9199, allocations: 77.11 kB / 0.7558 GB, free: 26.4 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003488/0.9203, allocations: 221.2 kB / 0.7561 GB, free: 26.3 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.999e-05/0.9203, allocations: 25.7 kB / 0.7561 GB, free: 26.27 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 8.97e-05/0.9204, allocations: 134.1 kB / 0.7562 GB, free: 26.18 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 2.211e-05/0.9205, allocations: 10.8 kB / 0.7562 GB, free: 26.17 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.45e-06/0.9205, allocations: 0 / 0.7562 GB, free: 26.17 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001472/0.9207, allocations: 324.9 kB / 0.7565 GB, free: 25.86 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.646e-05/0.9207, allocations: 14.42 kB / 0.7565 GB, free: 25.86 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.696e-05/0.9208, allocations: 30.81 kB / 0.7566 GB, free: 25.82 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.065e-05/0.9208, allocations: 25.66 kB / 0.7566 GB, free: 25.81 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.9208, allocations: 0 / 0.7566 GB, free: 25.81 MB / 0.5105 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001979/0.921, allocations: 74.05 kB / 0.7567 GB, free: 25.77 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.445e-05/0.9211, allocations: 7.766 kB / 0.7567 GB, free: 25.76 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-06/0.9211, allocations: 6.141 kB / 0.7567 GB, free: 25.76 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.14e-05/0.9211, allocations: 0 / 0.7567 GB, free: 25.76 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001608/0.9213, allocations: 14.56 kB / 0.7567 GB, free: 25.76 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.926e-06/0.9213, allocations: 0 / 0.7567 GB, free: 25.76 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000152/0.9215, allocations: 17.23 kB / 0.7567 GB, free: 25.76 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.166e-05/0.9215, allocations: 4 kB / 0.7567 GB, free: 25.76 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 0.0001096/0.9216, allocations: 108.8 kB / 0.7568 GB, free: 25.65 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.256e-05/0.9217, allocations: 19.41 kB / 0.7568 GB, free: 25.64 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.634e-05/0.9217, allocations: 27.2 kB / 0.7569 GB, free: 25.63 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.9218, allocations: 0 / 0.7569 GB, free: 25.63 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.9218, allocations: 0 / 0.7569 GB, free: 25.63 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.9218, allocations: 0 / 0.7569 GB, free: 25.63 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002408/0.922, allocations: 217 kB / 0.7571 GB, free: 25.44 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.922, allocations: 0 / 0.7571 GB, free: 25.44 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001189/0.9222, allocations: 23.77 kB / 0.7571 GB, free: 25.43 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.017e-06/0.9222, allocations: 0 / 0.7571 GB, free: 25.43 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.035e-05/0.9222, allocations: 0 / 0.7571 GB, free: 25.43 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.459e-06/0.9222, allocations: 3.953 kB / 0.7571 GB, free: 25.43 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.9222, allocations: 6.062 kB / 0.7571 GB, free: 25.43 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001812/0.9224, allocations: 87.73 kB / 0.7572 GB, free: 25.36 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 8.343e-05/0.9225, allocations: 98.73 kB / 0.7573 GB, free: 25.25 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.097e-05/0.9226, allocations: 4 kB / 0.7573 GB, free: 25.25 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001235/0.9227, allocations: 12.38 kB / 0.7573 GB, free: 25.25 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.15e-05/0.9228, allocations: 10.14 kB / 0.7573 GB, free: 25.25 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.416e-05/0.9228, allocations: 9.844 kB / 0.7573 GB, free: 25.25 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0002497/0.9231, allocations: 177.1 kB / 0.7575 GB, free: 25.17 MB / 0.5105 GB Notification: Performance of sort global known variables: time 3.336e-06/0.9231, allocations: 0 / 0.7575 GB, free: 25.17 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.000409/0.9235, allocations: 24.53 kB / 0.7575 GB, free: 25.16 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.0008307/0.9243, allocations: 0.664 MB / 0.7582 GB, free: 24.53 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0001542/0.9245, allocations: 30.77 kB / 0.7582 GB, free: 24.52 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.9245, allocations: 0 / 0.7582 GB, free: 24.52 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 4.384e-05/0.9246, allocations: 11.56 kB / 0.7582 GB, free: 24.52 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003556/0.925, allocations: 39.55 kB / 0.7582 GB, free: 24.51 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007903/0.9258, allocations: 230.9 kB / 0.7585 GB, free: 24.34 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003622/0.9261, allocations: 0.7229 MB / 0.7592 GB, free: 23.62 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0001112/0.9263, allocations: 23.72 kB / 0.7592 GB, free: 23.61 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000104/0.9264, allocations: 44.72 kB / 0.7592 GB, free: 23.59 MB / 0.5105 GB Notification: Performance of SimCode: time 8.82e-07/0.9264, allocations: 0 / 0.7592 GB, free: 23.59 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02699/0.9534, allocations: 3.207 MB / 0.7624 GB, free: 22.06 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002894/0.9538, allocations: 140.5 kB / 0.7625 GB, free: 21.84 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_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: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_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: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_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-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_IDEAS_Utilities_IO_Files_Examples_JSONWriter_functions.o] Error 1