Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiation.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiation,fileNamePrefix="Buildings_8_Buildings_HeatTransfer_Windows_BaseClasses_Examples_WindowRadiation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiation,fileNamePrefix="Buildings_8_Buildings_HeatTransfer_Windows_BaseClasses_Examples_WindowRadiation",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.001413/0.001413, allocations: 99.62 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.001761/0.001761, 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 3.2.3+maint.om/package.mo): time 3.008/3.008, allocations: 205.4 MB / 222.1 MB, free: 5.656 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 6.084/6.084, allocations: 292.6 MB / 0.5497 GB, free: 14.59 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001211/0.001212, allocations: 14.03 kB / 0.6737 GB, free: 26.33 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4747/0.476, allocations: 116.3 MB / 0.7872 GB, free: 11.86 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiation): time 0.01288/0.4889, allocations: 5.706 MB / 0.7928 GB, free: 6.121 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 1.447/1.936, allocations: 132 MB / 0.9217 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003454/1.939, allocations: 26.91 kB / 0.9217 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.011/1.95, allocations: 1.426 MB / 0.9231 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.008056/1.959, allocations: 0.9518 MB / 0.9241 GB, free: 5.059 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.00808/1.967, allocations: 0.9883 MB / 0.925 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.01005/1.977, allocations: 2.616 MB / 0.9276 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003591/1.98, allocations: 0.8868 MB / 0.9285 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006196/1.987, allocations: 1.238 MB / 0.9297 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004657/1.991, allocations: 1.013 MB / 0.9307 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.001471/1.993, allocations: 61.53 kB / 0.9307 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009838/2.003, allocations: 1.714 MB / 0.9324 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.008764/2.012, allocations: 2.838 MB / 0.9352 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.007056/2.019, allocations: 0.7654 MB / 0.9359 GB, free: 20.83 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.02822/2.047, allocations: 8.798 MB / 0.9445 GB, free: 19.78 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 9.197e-06/2.047, allocations: 0 / 0.9445 GB, free: 19.78 MB / 0.7325 GB Notification: Performance of FrontEnd: time 5.831e-06/2.047, allocations: 5.094 kB / 0.9445 GB, free: 19.77 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 0.0006863/2.048, allocations: 0 / 0.9445 GB, free: 19.77 MB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 362 * Number of variables: 362 Notification: Performance of Generate backend data structure: time 0.04927/2.097, allocations: 6.611 MB / 0.951 GB, free: 16.2 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 9.096e-05/2.097, allocations: 10.31 kB / 0.951 GB, free: 16.2 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001656/2.099, allocations: 214.8 kB / 0.9512 GB, free: 16.12 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01006/2.109, allocations: 0.5962 MB / 0.9518 GB, free: 15.81 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.4877/2.597, allocations: 255.5 MB / 1.201 GB, free: 1.414 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003632/2.597, allocations: 133.4 kB / 1.201 GB, free: 1.285 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001489/2.599, allocations: 180 kB / 1.202 GB, free: 1.109 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00679/2.606, allocations: 1.666 MB / 1.203 GB, free: 15.37 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.321e-05/2.606, allocations: 6.531 kB / 1.203 GB, free: 15.37 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002764/2.606, allocations: 60 kB / 1.203 GB, free: 15.31 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.327e-05/2.606, allocations: 36 kB / 1.203 GB, free: 15.27 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00603/2.612, allocations: 1.718 MB / 1.205 GB, free: 13.56 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1388/2.751, allocations: 69.58 MB / 1.273 GB, free: 7.965 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005257/2.757, allocations: 1.461 MB / 1.274 GB, free: 6.504 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001939/2.757, allocations: 36.94 kB / 1.274 GB, free: 6.477 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002709/2.76, allocations: 0.9364 MB / 1.275 GB, free: 5.523 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=105): time 6.702e-06/2.76, allocations: 0 / 1.275 GB, free: 5.523 MB / 0.9981 GB Notification: Performance of matching and sorting (n=105): time 0.01874/2.778, allocations: 3.112 MB / 1.278 GB, free: 2.363 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0005211/2.779, allocations: 346.5 kB / 1.279 GB, free: 1.977 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.703/4.482, allocations: 315.9 MB / 1.587 GB, free: 111.5 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.001171/4.484, allocations: 62.77 kB / 1.587 GB, free: 111.4 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.008997/4.493, allocations: 2.202 MB / 1.589 GB, free: 109.4 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001237/4.494, allocations: 354.2 kB / 1.59 GB, free: 109.1 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005602/4.495, allocations: 36.88 kB / 1.59 GB, free: 109.1 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0004894/4.495, allocations: 382.6 kB / 1.59 GB, free: 108.7 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003611/4.499, allocations: 1.315 MB / 1.591 GB, free: 107.4 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003924/4.503, allocations: 1.603 MB / 1.593 GB, free: 105.7 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004447/4.507, allocations: 1.63 MB / 1.595 GB, free: 104.1 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.413e-05/4.507, allocations: 3.781 kB / 1.595 GB, free: 104.1 MB / 0.9981 GB Notification: Performance of matching and sorting (n=231) (initialization): time 0.01815/4.525, allocations: 3.827 MB / 1.598 GB, free: 100.2 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 0.000378/4.526, allocations: 170.9 kB / 1.599 GB, free: 100.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.698e-05/4.526, allocations: 4 kB / 1.599 GB, free: 100.1 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009118/4.527, allocations: 92.06 kB / 1.599 GB, free: 99.97 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004106/4.531, allocations: 375.4 kB / 1.599 GB, free: 99.61 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002932/4.534, allocations: 1.533 MB / 1.6 GB, free: 97.94 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01012/4.544, allocations: 0.6303 MB / 1.601 GB, free: 97.32 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001068/4.545, allocations: 83.97 kB / 1.601 GB, free: 97.23 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (214): * Single equations (assignments): 212 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.008903/4.554, allocations: 2.138 MB / 1.603 GB, free: 95.08 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006426/4.561, allocations: 454 kB / 1.604 GB, free: 94.63 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01151/4.572, allocations: 2.893 MB / 1.606 GB, free: 91.75 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.77e-05/4.572, allocations: 8 kB / 1.607 GB, free: 91.75 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.424e-05/4.573, allocations: 7.984 kB / 1.607 GB, free: 91.74 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.596e-05/4.573, allocations: 3.984 kB / 1.607 GB, free: 91.73 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04322/4.616, allocations: 7.62 MB / 1.614 GB, free: 84.08 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.815e-05/4.616, allocations: 0 / 1.614 GB, free: 84.08 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001468/4.617, allocations: 179.7 kB / 1.614 GB, free: 83.9 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008745/4.618, allocations: 88.58 kB / 1.614 GB, free: 83.82 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003757/4.619, allocations: 35.98 kB / 1.614 GB, free: 83.78 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002945/4.622, allocations: 1.564 MB / 1.616 GB, free: 82.08 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/4.622, allocations: 0 / 1.616 GB, free: 82.08 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01453/4.636, allocations: 2.606 MB / 1.618 GB, free: 79.45 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01105/4.647, allocations: 1.763 MB / 1.62 GB, free: 77.66 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.007709/4.655, allocations: 28 kB / 1.62 GB, free: 77.63 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009582/4.665, allocations: 419.9 kB / 1.62 GB, free: 77.22 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000807/4.666, allocations: 87.8 kB / 1.621 GB, free: 77.14 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002917/4.666, allocations: 55.97 kB / 1.621 GB, free: 77.09 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 1.434/6.101, allocations: 251.6 MB / 1.866 GB, free: 248.1 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.434e-06/6.101, allocations: 1.062 kB / 1.866 GB, free: 248.1 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.01241/6.113, allocations: 1.323 MB / 1.868 GB, free: 246.9 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTim.tNext,weaDat.conTimMin.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (104): * Single equations (assignments): 100 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.01784/6.131, allocations: 3.971 MB / 1.871 GB, free: 243.5 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.008692/6.14, allocations: 3.852 MB / 1.875 GB, free: 239.6 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.106e-05/6.14, allocations: 0.8438 kB / 1.875 GB, free: 239.6 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.003061/6.143, allocations: 1.683 MB / 1.877 GB, free: 237.9 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008428/6.151, allocations: 0.5393 MB / 1.877 GB, free: 237.4 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05149/6.203, allocations: 17.55 MB / 1.895 GB, free: 219.5 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008455/6.212, allocations: 3.06 MB / 1.898 GB, free: 216.4 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.01/6.222, allocations: 1.67 MB / 1.899 GB, free: 214.7 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01046/6.232, allocations: 2.315 MB / 1.901 GB, free: 212.4 MB / 0.9981 GB Notification: Performance of SimCode: time 2.565e-06/6.232, allocations: 0 / 1.901 GB, free: 212.4 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4674/6.7, allocations: 210.2 MB / 2.107 GB, free: 3.484 MB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002692/6.7, allocations: 271.5 kB / 2.107 GB, free: 3.125 MB / 0.9981 GB 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/Buildings 8.1.4-maint.8.1.x/Resources/C-Sources" -c -o Buildings_8_Buildings_HeatTransfer_Windows_BaseClasses_Examples_WindowRadiation.o Buildings_8_Buildings_HeatTransfer_Windows_BaseClasses_Examples_WindowRadiation.c In file included from Buildings_8_Buildings_HeatTransfer_Windows_BaseClasses_Examples_WindowRadiation.c:7: In file included from ./Buildings_8_Buildings_HeatTransfer_Windows_BaseClasses_Examples_WindowRadiation_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/Buildings 8.1.4-maint.8.1.x/Resources/C-Sources" -c -o Buildings_8_Buildings_HeatTransfer_Windows_BaseClasses_Examples_WindowRadiation_functions.o Buildings_8_Buildings_HeatTransfer_Windows_BaseClasses_Examples_WindowRadiation_functions.c In file included from Buildings_8_Buildings_HeatTransfer_Windows_BaseClasses_Examples_WindowRadiation_functions.c:2: In file included from ./Buildings_8_Buildings_HeatTransfer_Windows_BaseClasses_Examples_WindowRadiation_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 Buildings_8_Buildings_HeatTransfer_Windows_BaseClasses_Examples_WindowRadiation_functions.c:7: In file included from ./Buildings_8_Buildings_HeatTransfer_Windows_BaseClasses_Examples_WindowRadiation_includes.h:4: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Resources/C-Sources/getTimeSpan.c:9:10: fatal error: 'ModelicaUtilities.h' file not found #include "ModelicaUtilities.h" ^~~~~~~~~~~~~~~~~~~~~ 2 warnings and 1 error generated. make: *** [: Buildings_8_Buildings_HeatTransfer_Windows_BaseClasses_Examples_WindowRadiation_functions.o] Error 1