Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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(IBPSA.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="IBPSA_latest_IBPSA_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.0007229/0.0007228, allocations: 92.7 kB / 15.7 MB, free: 472 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007967/0.0007967, allocations: 171.8 kB / 16.58 MB, free: 6.848 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.181/1.181, allocations: 223.3 MB / 240.6 MB, free: 5.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6062/0.6062, allocations: 113.7 MB / 405.4 MB, free: 4.57 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002615/0.0002615, allocations: 8.969 kB / 493.1 MB, free: 8.555 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.1138, allocations: 77.12 MB / 0.5569 GB, free: 11.64 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.IO.Files.Examples.JSONWriter): time 0.00172/0.1156, allocations: 1.321 MB / 0.5582 GB, free: 10.31 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007793/0.1164, allocations: 0.5031 MB / 0.5587 GB, free: 9.805 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.962e-05/0.1165, allocations: 4 kB / 0.5587 GB, free: 9.801 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001485/0.1166, allocations: 23.86 kB / 0.5587 GB, free: 9.777 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002092/0.1169, allocations: 55.73 kB / 0.5588 GB, free: 9.723 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001332/0.117, allocations: 55.94 kB / 0.5588 GB, free: 9.668 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001732/0.1172, allocations: 111.6 kB / 0.5589 GB, free: 9.559 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000125/0.1173, allocations: 37.47 kB / 0.559 GB, free: 9.516 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000102/0.1174, allocations: 51.72 kB / 0.559 GB, free: 9.465 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.481e-05/0.1175, allocations: 59.69 kB / 0.5591 GB, free: 9.406 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.82e-05/0.1176, allocations: 0 / 0.5591 GB, free: 9.406 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.806e-05/0.1176, allocations: 12 kB / 0.5591 GB, free: 9.395 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 6.643e-05/0.1177, allocations: 31.91 kB / 0.5591 GB, free: 9.363 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 3.187e-05/0.1177, allocations: 45.58 kB / 0.5591 GB, free: 9.312 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000128/0.1179, allocations: 104 kB / 0.5592 GB, free: 9.211 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.1179, allocations: 4 kB / 0.5592 GB, free: 9.207 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.173e-06/0.1179, allocations: 0 / 0.5592 GB, free: 9.207 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.887e-06/0.1179, allocations: 0 / 0.5592 GB, free: 9.207 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.0005034/0.1184, allocations: 442.7 kB / 0.5597 GB, free: 8.727 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.361e-05/0.1184, allocations: 8.031 kB / 0.5597 GB, free: 8.719 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.126e-05/0.1185, allocations: 46.48 kB / 0.5597 GB, free: 8.664 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.783e-05/0.1185, allocations: 23.72 kB / 0.5597 GB, free: 8.641 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002057/0.1187, allocations: 223.7 kB / 0.56 GB, free: 8.379 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.049e-05/0.1188, allocations: 11.94 kB / 0.56 GB, free: 8.367 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.382e-05/0.1188, allocations: 7.984 kB / 0.56 GB, free: 8.359 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002423/0.119, allocations: 117.6 kB / 0.5601 GB, free: 8.238 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.712e-06/0.119, allocations: 0 / 0.5601 GB, free: 8.238 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.052e-05/0.1191, allocations: 0 / 0.5601 GB, free: 8.238 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.1191, allocations: 11.98 kB / 0.5601 GB, free: 8.227 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002005/0.1193, allocations: 79.88 kB / 0.5602 GB, free: 8.148 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004872/0.1198, allocations: 388.5 kB / 0.5605 GB, free: 7.719 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001161/0.1199, allocations: 50.5 kB / 0.5606 GB, free: 7.66 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.153e-05/0.12, allocations: 32.89 kB / 0.5606 GB, free: 7.625 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.363e-05/0.12, allocations: 0 / 0.5606 GB, free: 7.625 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002213/0.1202, allocations: 109.1 kB / 0.5607 GB, free: 7.5 MB / 430.1 MB Notification: Performance of pre-optimization done (n=3): time 1.042e-06/0.1203, allocations: 0 / 0.5607 GB, free: 7.5 MB / 430.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003687/0.1206, allocations: 145.4 kB / 0.5609 GB, free: 7.352 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.196e-05/0.1207, allocations: 77.11 kB / 0.5609 GB, free: 7.258 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002093/0.1209, allocations: 253 kB / 0.5612 GB, free: 7.004 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.792e-05/0.1209, allocations: 25.7 kB / 0.5612 GB, free: 6.973 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.801e-05/0.121, allocations: 140 kB / 0.5613 GB, free: 6.832 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.241e-05/0.121, allocations: 3.906 kB / 0.5613 GB, free: 6.828 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.627e-06/0.121, allocations: 0 / 0.5613 GB, free: 6.828 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.593e-05/0.1211, allocations: 326.8 kB / 0.5617 GB, free: 6.5 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.782e-05/0.1212, allocations: 31.97 kB / 0.5617 GB, free: 6.469 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001044/0.1213, allocations: 59.41 kB / 0.5617 GB, free: 6.398 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.768e-05/0.1214, allocations: 39.94 kB / 0.5618 GB, free: 6.359 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/0.1214, allocations: 0 / 0.5618 GB, free: 6.359 MB / 430.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002416/0.1217, allocations: 125.4 kB / 0.5619 GB, free: 6.23 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.235e-05/0.1217, allocations: 6.031 kB / 0.5619 GB, free: 6.227 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.1217, allocations: 0 / 0.5619 GB, free: 6.227 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.146e-05/0.1217, allocations: 4 kB / 0.5619 GB, free: 6.223 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.142e-05/0.1218, allocations: 11.98 kB / 0.5619 GB, free: 6.211 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.031e-06/0.1218, allocations: 4 kB / 0.5619 GB, free: 6.207 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.033e-05/0.1219, allocations: 20.02 kB / 0.5619 GB, free: 6.188 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.585e-06/0.1219, allocations: 7.953 kB / 0.562 GB, free: 6.18 MB / 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.64e-05/0.122, allocations: 125.8 kB / 0.5621 GB, free: 6.047 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.276e-05/0.1221, allocations: 23.72 kB / 0.5621 GB, free: 6.023 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.889e-05/0.1221, allocations: 17.23 kB / 0.5621 GB, free: 6.004 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.1221, allocations: 288 / 0.5621 GB, free: 6.004 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.885e-06/0.1221, allocations: 0 / 0.5621 GB, free: 6.004 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.974e-06/0.1221, allocations: 0 / 0.5621 GB, free: 6.004 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001497/0.1223, allocations: 221.5 kB / 0.5623 GB, free: 5.738 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.1223, allocations: 3.984 kB / 0.5623 GB, free: 5.734 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.367e-05/0.1224, allocations: 19.98 kB / 0.5623 GB, free: 5.715 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.1224, allocations: 3.938 kB / 0.5624 GB, free: 5.711 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.644e-06/0.1224, allocations: 3.984 kB / 0.5624 GB, free: 5.707 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.1224, allocations: 0 / 0.5624 GB, free: 5.707 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.033e-06/0.1224, allocations: 0 / 0.5624 GB, free: 5.707 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002474/0.1226, allocations: 144.8 kB / 0.5625 GB, free: 5.547 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.805e-05/0.1227, allocations: 100.8 kB / 0.5626 GB, free: 5.43 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.948e-05/0.1227, allocations: 0 / 0.5626 GB, free: 5.43 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.71e-05/0.1228, allocations: 19.98 kB / 0.5626 GB, free: 5.41 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.556e-05/0.1229, allocations: 4 kB / 0.5626 GB, free: 5.406 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.279e-05/0.1229, allocations: 7.984 kB / 0.5626 GB, free: 5.398 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001417/0.123, allocations: 180.5 kB / 0.5628 GB, free: 5.223 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.123, allocations: 0 / 0.5628 GB, free: 5.223 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0001988/0.1232, allocations: 24 kB / 0.5628 GB, free: 5.199 MB / 430.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.0005441/0.1238, allocations: 0.7019 MB / 0.5635 GB, free: 4.477 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0002346/0.124, allocations: 68 kB / 0.5636 GB, free: 4.41 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.124, allocations: 0 / 0.5636 GB, free: 4.41 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001003/0.1242, allocations: 39.91 kB / 0.5636 GB, free: 4.371 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002391/0.1244, allocations: 36.34 kB / 0.5636 GB, free: 4.34 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001241/0.1256, allocations: 0.9378 MB / 0.5646 GB, free: 3.348 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002422/0.1259, allocations: 0.7121 MB / 0.5652 GB, free: 2.609 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 6.426e-05/0.126, allocations: 28.64 kB / 0.5653 GB, free: 2.582 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7e-05/0.1261, allocations: 43.42 kB / 0.5653 GB, free: 2.539 MB / 430.1 MB Notification: Performance of SimCode: time 1.313e-06/0.1261, allocations: 0 / 0.5653 GB, free: 2.539 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01243/0.1385, allocations: 3.192 MB / 0.5684 GB, free: 15.51 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001424/0.1387, allocations: 187.7 kB / 0.5686 GB, free: 15.27 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/IBPSA 4.0.0-master/Resources/C-Sources" -c -o IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_JSONWriter.o IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_JSONWriter.c In file included from IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_JSONWriter.c:7: In file included from ./IBPSA_latest_IBPSA_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/IBPSA 4.0.0-master/Resources/C-Sources" -c -o IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_JSONWriter_functions.o IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_JSONWriter_functions.c In file included from IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_JSONWriter_functions.c:2: In file included from ./IBPSA_latest_IBPSA_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 IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_JSONWriter_functions.c:7: In file included from ./IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_JSONWriter_includes.h:5: In file included from /home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/Resources/C-Sources/jsonWriterInit.c:8: /home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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: *** [: IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_JSONWriter_functions.o] Error 1