Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic.conf.json Using package Buildings with version 7.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.3/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.3.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.3/package.mo) Running command: "" <> buildModelFMU(Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic,fileNamePrefix="Buildings_7_0_0_Buildings_HeatTransfer_Windows_BaseClasses_Examples_AbsorbedRadiationElectrochromic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.3/package.mo): time 0.01469/0.01469, allocations: 88.98 kB / 15.04 MB, free: 5.582 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.3.mo): time 0.001681/0.001681, allocations: 175.5 kB / 15.92 MB, free: 5.555 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.3/package.mo): time 2.129/2.129, allocations: 205.5 MB / 222.2 MB, free: 13.7 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/package.mo): time 2.35/2.35, allocations: 252.8 MB / 0.511 GB, free: 8.324 MB / 426.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004806/0.0004808, allocations: 19.17 kB / 0.6243 GB, free: 28.31 MB / 0.4948 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2409/0.2415, allocations: 106.2 MB / 0.7281 GB, free: 10.16 MB / 0.5573 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic): time 0.01007/0.2516, allocations: 4.883 MB / 0.7328 GB, free: 5.25 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.8502/1.102, allocations: 131.1 MB / 0.8608 GB, free: 4.797 MB / 0.6667 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001275/1.103, allocations: 22.56 kB / 0.8608 GB, free: 4.797 MB / 0.6667 GB Notification: Performance of NFTyping.typeComponents: time 0.005799/1.109, allocations: 1.303 MB / 0.8621 GB, free: 4.789 MB / 0.6667 GB Notification: Performance of NFTyping.typeBindings: time 0.002965/1.112, allocations: 0.6197 MB / 0.8627 GB, free: 4.781 MB / 0.6667 GB Notification: Performance of NFTyping.typeClassSections: time 0.003654/1.116, allocations: 0.7663 MB / 0.8635 GB, free: 4.762 MB / 0.6667 GB Notification: Performance of NFFlatten.flatten: time 0.003991/1.12, allocations: 1.779 MB / 0.8652 GB, free: 4.75 MB / 0.6667 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001527/1.121, allocations: 0.6936 MB / 0.8659 GB, free: 4.637 MB / 0.6667 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002415/1.124, allocations: 0.8509 MB / 0.8667 GB, free: 4.633 MB / 0.6667 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001998/1.126, allocations: 0.6684 MB / 0.8674 GB, free: 4.633 MB / 0.6667 GB Notification: Performance of NFPackage.collectConstants: time 0.0004979/1.126, allocations: 40.66 kB / 0.8674 GB, free: 4.633 MB / 0.6667 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004781/1.131, allocations: 1.662 MB / 0.869 GB, free: 4.629 MB / 0.6667 GB Notification: Performance of NFScalarize.scalarize: time 0.003221/1.134, allocations: 1.869 MB / 0.8709 GB, free: 4.629 MB / 0.6667 GB Notification: Performance of NFVerifyModel.verify: time 0.001789/1.136, allocations: 0.5598 MB / 0.8714 GB, free: 4.598 MB / 0.6667 GB Notification: Performance of NFConvertDAE.convert: time 0.01131/1.148, allocations: 6.134 MB / 0.8774 GB, free: 4.227 MB / 0.6667 GB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/1.148, allocations: 0 / 0.8774 GB, free: 4.227 MB / 0.6667 GB Notification: Performance of FrontEnd: time 2.515e-06/1.148, allocations: 3.938 kB / 0.8774 GB, free: 4.223 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 0.0002683/1.148, allocations: 0 / 0.8774 GB, free: 4.223 MB / 0.6667 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 309 * Number of variables: 309 Notification: Performance of Generate backend data structure: time 0.02035/1.168, allocations: 5.003 MB / 0.8823 GB, free: 18.15 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.105e-05/1.168, allocations: 8.875 kB / 0.8823 GB, free: 18.15 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006436/1.169, allocations: 185.2 kB / 0.8825 GB, free: 18.11 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003978/1.173, allocations: 461 kB / 0.8829 GB, free: 17.89 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.435/1.608, allocations: 307.4 MB / 1.183 GB, free: 1.957 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001647/1.608, allocations: 122.7 kB / 1.183 GB, free: 1.836 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004889/1.609, allocations: 176 kB / 1.183 GB, free: 1.664 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003708/1.613, allocations: 1.315 MB / 1.185 GB, free: 296 kB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.899e-05/1.613, allocations: 0 / 1.185 GB, free: 296 kB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001864/1.613, allocations: 48 kB / 1.185 GB, free: 248 kB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.792e-05/1.613, allocations: 32 kB / 1.185 GB, free: 216 kB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.6171/2.23, allocations: 1.412 MB / 1.186 GB, free: 374.2 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08122/2.311, allocations: 76.35 MB / 1.261 GB, free: 316 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002927/2.314, allocations: 1.144 MB / 1.262 GB, free: 314.9 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001306/2.314, allocations: 29 kB / 1.262 GB, free: 314.8 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001588/2.316, allocations: 0.6662 MB / 1.263 GB, free: 314.2 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=106): time 4.097e-06/2.316, allocations: 0 / 1.263 GB, free: 314.2 MB / 0.9167 GB Notification: Performance of matching and sorting (n=106): time 0.007436/2.324, allocations: 2.26 MB / 1.265 GB, free: 311.9 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002105/2.324, allocations: 346.2 kB / 1.265 GB, free: 311.5 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.291/3.614, allocations: 379.7 MB / 1.636 GB, free: 320.7 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 0.0006153/3.615, allocations: 71.62 kB / 1.636 GB, free: 320.6 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.002919/3.618, allocations: 1.564 MB / 1.637 GB, free: 319.3 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 0.000574/3.619, allocations: 357.9 kB / 1.638 GB, free: 319 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002008/3.619, allocations: 36 kB / 1.638 GB, free: 319 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0002294/3.619, allocations: 407.8 kB / 1.638 GB, free: 318.6 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002817/3.622, allocations: 1.162 MB / 1.639 GB, free: 317.6 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003503/3.626, allocations: 1.884 MB / 1.641 GB, free: 315.6 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003836/3.629, allocations: 1.581 MB / 1.643 GB, free: 314 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.494e-05/3.63, allocations: 5.281 kB / 1.643 GB, free: 314 MB / 0.9167 GB Notification: Performance of matching and sorting (n=278) (initialization): time 0.01123/3.641, allocations: 3.68 MB / 1.646 GB, free: 310.3 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002584/3.641, allocations: 185.6 kB / 1.646 GB, free: 310.1 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.459e-05/3.641, allocations: 20 kB / 1.646 GB, free: 310.1 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.388e-05/3.641, allocations: 36 kB / 1.647 GB, free: 310.1 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003351/3.645, allocations: 459.2 kB / 1.647 GB, free: 309.6 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.052e-05/3.645, allocations: 43.86 kB / 1.647 GB, free: 309.6 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005435/3.65, allocations: 0.5423 MB / 1.648 GB, free: 309.1 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007194/3.651, allocations: 104.8 kB / 1.648 GB, free: 309 MB / 0.9167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 96 * 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 (249): * Single equations (assignments): 248 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004502/3.655, allocations: 1.639 MB / 1.649 GB, free: 307.3 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002511/3.658, allocations: 339.4 kB / 1.65 GB, free: 307 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00626/3.664, allocations: 2.443 MB / 1.652 GB, free: 304.5 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.327e-05/3.664, allocations: 12 kB / 1.652 GB, free: 304.5 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.884e-06/3.664, allocations: 0 / 1.652 GB, free: 304.5 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.54e-05/3.664, allocations: 7.766 kB / 1.652 GB, free: 304.5 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01537/3.68, allocations: 5.636 MB / 1.657 GB, free: 298.8 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.825e-06/3.68, allocations: 0 / 1.657 GB, free: 298.8 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001222/3.681, allocations: 155.7 kB / 1.658 GB, free: 298.7 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.133e-05/3.681, allocations: 4 kB / 1.658 GB, free: 298.7 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000109/3.681, allocations: 33.17 kB / 1.658 GB, free: 298.6 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.995e-06/3.681, allocations: 4 kB / 1.658 GB, free: 298.6 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/3.681, allocations: 4 kB / 1.658 GB, free: 298.6 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006071/3.687, allocations: 2.274 MB / 1.66 GB, free: 296.3 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004017/3.691, allocations: 1.23 MB / 1.661 GB, free: 295.1 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002207/3.694, allocations: 28 kB / 1.661 GB, free: 295 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004301/3.698, allocations: 298.3 kB / 1.661 GB, free: 294.7 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003181/3.698, allocations: 64.91 kB / 1.661 GB, free: 294.7 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001498/3.698, allocations: 48.53 kB / 1.661 GB, free: 294.6 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.938/4.636, allocations: 305.4 MB / 1.96 GB, free: 360.8 MB / 0.9167 GB Notification: Performance of sort global known variables: time 9.11e-07/4.636, allocations: 0 / 1.96 GB, free: 360.8 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.007469/4.644, allocations: 1.161 MB / 1.961 GB, free: 360.7 MB / 0.9167 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 (90): * Single equations (assignments): 87 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01179/4.656, allocations: 3.665 MB / 1.964 GB, free: 359.4 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.007733/4.664, allocations: 4.031 MB / 1.968 GB, free: 357.7 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 9.127e-06/4.664, allocations: 1.094 kB / 1.968 GB, free: 357.7 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.003375/4.667, allocations: 1.962 MB / 1.97 GB, free: 356.7 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004637/4.672, allocations: 404 kB / 1.971 GB, free: 356.6 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03378/4.706, allocations: 26.77 MB / 1.997 GB, free: 332.5 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005107/4.711, allocations: 2.394 MB / 1.999 GB, free: 330.6 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.006051/4.717, allocations: 1.268 MB / 2 GB, free: 329.5 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005985/4.723, allocations: 1.702 MB / 2.002 GB, free: 328 MB / 0.9167 GB Notification: Performance of SimCode: time 1.733e-06/4.723, allocations: 0 / 2.002 GB, free: 328 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4/5.123, allocations: 185.9 MB / 2.184 GB, free: 145 MB / 0.9167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002211/5.123, allocations: 266.5 kB / 2.184 GB, free: 144.7 MB / 0.9167 GB Error: Error building simulator. Build log: clang -Os -fPIC -mfpmath=sse -fno-dollars-in-identifiers -I'/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/Resources/C-Sources" -c -o Buildings_7_0_0_Buildings_HeatTransfer_Windows_BaseClasses_Examples_AbsorbedRadiationElectrochromic.o Buildings_7_0_0_Buildings_HeatTransfer_Windows_BaseClasses_Examples_AbsorbedRadiationElectrochromic.c In file included from Buildings_7_0_0_Buildings_HeatTransfer_Windows_BaseClasses_Examples_AbsorbedRadiationElectrochromic.c:7: In file included from ./Buildings_7_0_0_Buildings_HeatTransfer_Windows_BaseClasses_Examples_AbsorbedRadiationElectrochromic_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 -mfpmath=sse -fno-dollars-in-identifiers -I'/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/Resources/C-Sources" -c -o Buildings_7_0_0_Buildings_HeatTransfer_Windows_BaseClasses_Examples_AbsorbedRadiationElectrochromic_functions.o Buildings_7_0_0_Buildings_HeatTransfer_Windows_BaseClasses_Examples_AbsorbedRadiationElectrochromic_functions.c In file included from Buildings_7_0_0_Buildings_HeatTransfer_Windows_BaseClasses_Examples_AbsorbedRadiationElectrochromic_functions.c:2: In file included from ./Buildings_7_0_0_Buildings_HeatTransfer_Windows_BaseClasses_Examples_AbsorbedRadiationElectrochromic_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_7_0_0_Buildings_HeatTransfer_Windows_BaseClasses_Examples_AbsorbedRadiationElectrochromic_functions.c:7: In file included from ./Buildings_7_0_0_Buildings_HeatTransfer_Windows_BaseClasses_Examples_AbsorbedRadiationElectrochromic_includes.h:4: In file included from /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/Resources/C-Sources/getTimeSpan.c:12: /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/Resources/C-Sources/getTimeSpan.h:11:10: fatal error: 'ModelicaUtilities.h' file not found #include ^~~~~~~~~~~~~~~~~~~~~ 2 warnings and 1 error generated. : recipe for target 'Buildings_7_0_0_Buildings_HeatTransfer_Windows_BaseClasses_Examples_AbsorbedRadiationElectrochromic_functions.o' failed make: *** [Buildings_7_0_0_Buildings_HeatTransfer_Windows_BaseClasses_Examples_AbsorbedRadiationElectrochromic_functions.o] Error 1